NO

Author Topic: Debug with version 6: how to get the value of static variables  (Read 3799 times)

henrin

  • Guest
Debug with version 6: how to get the value of static variables
« on: November 11, 2009, 10:02:27 PM »
When debugging with v.5, once halted (step-by-step or beakpoint), if you move the mouse in the source code window, you get the value of variables.

Two folders - local and global - show the variables. Static variables appear in the global folder: that is normal.

But with v.6, I can't get static variables in any way :
- mouse cursor on the variable,
- global or local folder
- watch

What is hapenning ?

JohnF

  • Guest
Re: Debug with version 6: how to get the value of static variables
« Reply #1 on: November 12, 2009, 08:28:44 AM »
Yes it's unfortunate - when debugging you could temporarily make the variable global.

John

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Debug with version 6: how to get the value of static variables
« Reply #2 on: November 12, 2009, 08:58:50 AM »
When debugging with v.5, once halted (step-by-step or beakpoint), if you move the mouse in the source code window, you get the value of variables.

Two folders - local and global - show the variables. Static variables appear in the global folder: that is normal.

But with v.6, I can't get static variables in any way :
- mouse cursor on the variable,
- global or local folder
- watch

What is hapenning ?

It seems to be a problem from the compiler. If you compile a program with static variables with the v.5 compiler, you can see the static variables also in the v.6 debugger.
If you compile with the v.6 compiler, the only way to find the content of a static variable is to look in disassembly view (right click in the debugger source window and select it) where the variable is stored and look to in the memory view.
best regards
 Alex ;)