<?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: Debugger collapses expanded struct at breakpoint in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debugger-collapses-expanded-struct-at-breakpoint/m-p/199999#M7520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! You have found another hidden treasure in Eclipse/MCU10 :-).&lt;/P&gt;&lt;P&gt;I have missed that setting, and indeed it works as expected (to show variables in hexadecimal by default):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="hexadecimal.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118873iCB049C1EEC007D82/image-size/large?v=v2&amp;amp;px=999" role="button" title="hexadecimal.png" alt="hexadecimal.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then my variables are shown in hexadecimal:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="variables in hex.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118874i6F11D2B20E3AE229/image-size/large?v=v2&amp;amp;px=999" role="button" title="variables in hex.png" alt="variables in hex.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;really cool! :-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2012 07:43:23 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2012-10-01T07:43:23Z</dc:date>
    <item>
      <title>Debugger collapses expanded struct at breakpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debugger-collapses-expanded-struct-at-breakpoint/m-p/199996#M7517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In CW10.x when I have set a breakpoint, and expanded a struct variable in the variables window, CW will often collapse the struct view when I run to the repeated breakpoint in a loop at the same spot. This is obviously a major time waste to have to expand what is often a complex structure to look at a nested variable.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Is there anyway to prevent this from happening; it doesn't seem to do it all the time, but most of the time.&lt;/P&gt;&lt;P&gt;2) I have to set the variable display format to hex everytime I load the program for each variable. Is there a persistent setting in the debugger that allows the default format to be hex?&lt;/P&gt;&lt;P&gt;3) often the variables window will go blank when I leave a breakpoint andn it remains that way until I click on it; then usually the variables are all collapsed again.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I think should happen is the variables window should stay exactly as it is until it is changed. It should be a trivial excersise for the developers to keep a list of the properties of the variables being viewed in the debugger, and restore these properties to the variables window when a breakpoint is hit.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This constant collapsing and clearing the contents in the variables window is like trying to read a book in a wind storm with the pages blowing back and forth. No one would do that, but we forced into this situation with the debugger.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway around these issues. Thanks for the help.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 01:48:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debugger-collapses-expanded-struct-at-breakpoint/m-p/199996#M7517</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2012-09-25T01:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger collapses expanded struct at breakpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debugger-collapses-expanded-struct-at-breakpoint/m-p/199997#M7518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About 1) I have not noticed this. It might be because I already switched to MCU10.3, and that might be something which has been improved in that new eclipse version (10.3 uses eclipse 3.7 while MCU10.2 uses 3.6).&lt;/P&gt;&lt;P&gt;Maybe you can find a reproducible case, or at least isolate the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About 2) I'm not aware that this is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About 3) Eclipse shows the global variables of the current module (where the program counter is). So if the module/source you stop has no global variables, the global variables list will be empty. How to change this to your needs, see this article:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.wordpress.com/2012/07/04/debugging-global-variables/" title="http://mcuoneclipse.wordpress.com/2012/07/04/debugging-global-variables/"&gt;http://mcuoneclipse.wordpress.com/2012/07/04/debugging-global-variables/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2012 19:15:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debugger-collapses-expanded-struct-at-breakpoint/m-p/199997#M7518</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-09-29T19:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger collapses expanded struct at breakpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debugger-collapses-expanded-struct-at-breakpoint/m-p/199998#M7519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On question number 2, I assume you want all global variables values to be displayed as hexadecimal value per default.&lt;/P&gt;&lt;P&gt;Am I right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is what you are looking for:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Select &lt;EM&gt;&lt;STRONG&gt;Windows&lt;/STRONG&gt;&lt;/EM&gt; &amp;gt; &lt;EM&gt;&lt;STRONG&gt;Preferences&lt;/STRONG&gt;&lt;/EM&gt;. The &lt;STRONG&gt;&lt;EM&gt;Preferences&lt;/EM&gt;&lt;/STRONG&gt; dialog opens up.&lt;/LI&gt;&lt;LI&gt;Switch to the &lt;EM&gt;&lt;STRONG&gt;C/C++&lt;/STRONG&gt;&lt;/EM&gt; &amp;gt; &lt;STRONG&gt;&lt;EM&gt;Debug&lt;/EM&gt;&lt;/STRONG&gt; page&lt;/LI&gt;&lt;LI&gt;Change &lt;STRONG&gt;Default variable format&lt;/STRONG&gt; to &lt;EM&gt;Hexadecimal&lt;/EM&gt;.&lt;BR /&gt;Note that you can also adjust default format for displaying Expression or register values there.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 07:12:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debugger-collapses-expanded-struct-at-breakpoint/m-p/199998#M7519</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-10-01T07:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger collapses expanded struct at breakpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debugger-collapses-expanded-struct-at-breakpoint/m-p/199999#M7520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! You have found another hidden treasure in Eclipse/MCU10 :-).&lt;/P&gt;&lt;P&gt;I have missed that setting, and indeed it works as expected (to show variables in hexadecimal by default):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="hexadecimal.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118873iCB049C1EEC007D82/image-size/large?v=v2&amp;amp;px=999" role="button" title="hexadecimal.png" alt="hexadecimal.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then my variables are shown in hexadecimal:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="variables in hex.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118874i6F11D2B20E3AE229/image-size/large?v=v2&amp;amp;px=999" role="button" title="variables in hex.png" alt="variables in hex.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;really cool! :-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 07:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debugger-collapses-expanded-struct-at-breakpoint/m-p/199999#M7520</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-10-01T07:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger collapses expanded struct at breakpoint</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debugger-collapses-expanded-struct-at-breakpoint/m-p/200000#M7521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Catherine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you... being able to set the variable state persistently, will save a lot of time and from been driven to distraction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will put together a screen capture of the collapsing variable display problem. I believe is&amp;nbsp; happening is that the debugger steps out of the current scope of the variable, then later re-enters and because the debugger knows only the current state of the variable and knows not the variable it once knew. It is not persistent because the scope changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would submit that this a simplistist implementation in the world of debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All that the debugger needs to do to solve this problem, is to build a structure in its code space of the variables listed in the debug window, add the scope of the variable to the breakpoint list and other attributes/properties as fields of the object, check this list when a breakpoint is hit, then return the state of the variables in the display it to the last state when the last property of the variable was viewed/changed. Collapsed, not collapsed, hex, natural... , etc. If if can be done by a person manually, it should be trivial to generate a script, or programatically call up the properties of the variable by parsing the properties table at any given state of the debugger when it stops and displays in the debug window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for responding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 17:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Debugger-collapses-expanded-struct-at-breakpoint/m-p/200000#M7521</guid>
      <dc:creator>Cdn_aye</dc:creator>
      <dc:date>2012-10-01T17:10:27Z</dc:date>
    </item>
  </channel>
</rss>

