Replies: 1 comment
-
The C/C++ (cpptools) debugger doesn’t populate the Variables view with all globals. What works well
then expand it and use Set Value on the pointee.
This prints every global known to GDB. To narrow it down by prefix:
You can also search your ELF offline:
is a good balance for stepping/inspection on embedded targets. Avoid
Notes for embedded (OpenOCD/J-Link/FreeRTOS)
TL;DR |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
My setup:
Am using C/C++ for Visual Studio Code (version 1.25.3) and OpenOCD (0.12.0) and JLink for debugging and am enabling the debugging using launch configs and setup commands. Attaching my configs here:
When pausing the debugger, I could see the local variables and registers but could not see global variables. I tried showGlobalVariables: true, doesnt worked. I could track a sepcific variable by adding it to watch, but I need to view all the global variables like we do for locals. Is there any command to enable this?
Beta Was this translation helpful? Give feedback.
All reactions