<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: View local class static/constant values in Eclipse ABAP debugger in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-local-class-static-constant-values-in-eclipse-abap-debugger/m-p/12342791#M1992249</link>
    <description>&lt;P&gt;Hello Matthew,&lt;/P&gt;&lt;P&gt;If the current debugger cursor is inside the global class you can simply use lcl_test=&amp;gt;static_attribute.&lt;/P&gt;&lt;P&gt;If the current debugger cursor is outside of the class,  it's more complicated, you have to put the classes' program name in brackets in front:&lt;/P&gt;&lt;P&gt;(CL_YOUR_CLASS=================CP)lcl_test=&amp;gt;static_attribute&lt;/P&gt;&lt;P&gt;Note that "CP" is always on position 31/32. &lt;/P&gt;&lt;P&gt;This notation can always be used to access program global variables both in the debugger, and also also using a dynamic assign statement in abap code.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stratos&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 12:26:20 GMT</pubDate>
    <dc:creator>efstratios_tsantilis</dc:creator>
    <dc:date>2021-02-04T12:26:20Z</dc:date>
    <item>
      <title>View local class static/constant values in Eclipse ABAP debugger</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-local-class-static-constant-values-in-eclipse-abap-debugger/m-p/12342787#M1992245</link>
      <description>&lt;P&gt;I have a custom class with a local class. My local class has static attributes but I never have an instance outside of the class. (It does a lot of instantiation within the class, and then stores the results in a static table - it's complicated, and on reflection, not the best design - in my defence, it's stuff I wrote quite a while ago ).&lt;/P&gt;
  &lt;P&gt;How can I view the values of the static attributes of a local class?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 15:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-local-class-static-constant-values-in-eclipse-abap-debugger/m-p/12342787#M1992245</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-01-29T15:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: View local class static/constant values in Eclipse ABAP debugger</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-local-class-static-constant-values-in-eclipse-abap-debugger/m-p/12342788#M1992246</link>
      <description>&lt;P&gt;For a global class I'd reply something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[variable]= cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So I'd imagine that for a local class it would be like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[variable]= lcl_test=&amp;gt;static_attribute&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But that makes me think I don't understand your question correctly..&lt;/P&gt;&lt;P&gt;And if it considers a PRIVATE/PROTECTED method, you can of course only use it within the local class. So if you need it in another class, make them friends, or provide a getter-method.&lt;/P&gt;&lt;P&gt;[Update]&lt;/P&gt;&lt;P&gt;Anyway, after re-reading the question again, I realized my mistake :). So I opened my eclipse debugger..&lt;/P&gt;&lt;P&gt;There is the "&amp;lt;enter_variable&amp;gt;" option in the tab Variables.  After entering "lcl_test=&amp;gt;static_attribute", I saw it's contents. Mind you, if this is a private attribute, you'll have to be 'in the class' to get the value, if not I got 'undefined'.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 16:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-local-class-static-constant-values-in-eclipse-abap-debugger/m-p/12342788#M1992246</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2021-01-29T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: View local class static/constant values in Eclipse ABAP debugger</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-local-class-static-constant-values-in-eclipse-abap-debugger/m-p/12342789#M1992247</link>
      <description>&lt;P&gt;I don't understand your question. It's possible to see their contents as Patrick explained. Do you mean you'd like to see the list of all static attributes, as it is the case for an instance?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 19:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-local-class-static-constant-values-in-eclipse-abap-debugger/m-p/12342789#M1992247</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-29T19:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: View local class static/constant values in Eclipse ABAP debugger</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-local-class-static-constant-values-in-eclipse-abap-debugger/m-p/12342790#M1992248</link>
      <description>&lt;P&gt;In ADT debugger, I can even see the values of private static attributes from outside the local class!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 19:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-local-class-static-constant-values-in-eclipse-abap-debugger/m-p/12342790#M1992248</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-01-29T19:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: View local class static/constant values in Eclipse ABAP debugger</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-local-class-static-constant-values-in-eclipse-abap-debugger/m-p/12342791#M1992249</link>
      <description>&lt;P&gt;Hello Matthew,&lt;/P&gt;&lt;P&gt;If the current debugger cursor is inside the global class you can simply use lcl_test=&amp;gt;static_attribute.&lt;/P&gt;&lt;P&gt;If the current debugger cursor is outside of the class,  it's more complicated, you have to put the classes' program name in brackets in front:&lt;/P&gt;&lt;P&gt;(CL_YOUR_CLASS=================CP)lcl_test=&amp;gt;static_attribute&lt;/P&gt;&lt;P&gt;Note that "CP" is always on position 31/32. &lt;/P&gt;&lt;P&gt;This notation can always be used to access program global variables both in the debugger, and also also using a dynamic assign statement in abap code.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stratos&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 12:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-local-class-static-constant-values-in-eclipse-abap-debugger/m-p/12342791#M1992249</guid>
      <dc:creator>efstratios_tsantilis</dc:creator>
      <dc:date>2021-02-04T12:26:20Z</dc:date>
    </item>
  </channel>
</rss>

