Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Watch static variables
#1
Hello,

I'm using EB with EBlink on Win10x64.
If i debug a program, the watch window can't display variables which are "static" (non-static work of course). Is there a way to display static variables in the watch window?

mfg
Reply
#2
Hi,

I think you are meaning the opposite, static are always possible to show. Don't you?

For live variables, the variable should be static because if the variable is placed on stack (local) it only exist during the time that that stack frame consists.

Could you explain a bit more what you mean?
Reply
#3
Pls look at attached screenshot. Only non-static vars are shown.
Debug-Build, no optimization.

mfg


Attached Files Thumbnail(s)
   
Reply
#4
Strange, it has something to do with GDB. The answers are coming from GDB.
I always use static just to get them watched for sure.

Somehow it is not known by GDB.

   
Reply
#5
Thumbs Up 
Im only using original EB. I didn't change compiler, debugger etc. (Win7 and Win10, STM32 Nucleo)

mfg

EDIT:
Found out, LTO was actived for debug build. After disabling it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)