Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Live view variable debug
Live view variable debug [message #1750757] Wed, 28 December 2016 08:03 Go to next message
Giulio Dalla Vecchia is currently offline Giulio Dalla VecchiaFriend
Messages: 1
Registered: December 2016
Location: Schio (VI)
Junior Member
Hi,

I have to ask a question to you. I'm developing applications for STM32 (GCC - J-Link).
When I go in debug view, is there a way to show global variables in real time, while the microcontroller is running? For me it's an essential thing.

Thanks a lot!

Best regards,
Giulio
Re: Live view variable debug [message #1750873 is a reply to message #1750757] Fri, 30 December 2016 13:40 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
In general, the debugger Variables view only shows variables in the top stack frame. You can add a global variable in the Expressions view.. Can be tedious if you want to see a lot of them. You can also hover over a variable to see its value.

Re: Live view variable debug [message #1751006 is a reply to message #1750873] Tue, 03 January 2017 15:26 Go to previous messageGo to next message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 416
Registered: June 2014
Senior Member
"When I go in debug view, is there a way to show global variables in real time, while the microcontroller is running? For me it's an essential thing."

AFAIK this is not supported with standard GDB, therefore not supported by CDT. Some vendors have extensions for this type of stuff. Have you tried to be in touch with your vendor? If it is supported in GDB, then it could be added to CDT, a bug report/feature request with details on how GDB supports it would be the way to start: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=CDT

Re: Live view variable debug [message #1754069 is a reply to message #1750873] Tue, 14 February 2017 10:38 Go to previous messageGo to next message
Kevin Bain is currently offline Kevin BainFriend
Messages: 1
Registered: February 2017
Junior Member
Hi I am also having trouble seeing live variables while debugging.
See the print screen attached.
When I hover I get the same info as I do with the editor.
I can place Breakpoints at will.
The expressions window shows ERROR: Target not available
I can see how to add a value to the (x)= variables window, the buttons are grayed.
I am programing a STM32L053 USB demo board and a STM32L051xx custom board.

I have a few other issues but this is my A1.
Thanks
Kev
Re: Live view variable debug [message #1755787 is a reply to message #1754069] Wed, 08 March 2017 08:34 Go to previous message
Alex Freidin is currently offline Alex FreidinFriend
Messages: 32
Registered: July 2009
Member
The Expressions view shows this error when the target is not suspended, i.e. running. It will show the variables once the target is suspended and if the variables are in scope or global.
Previous Topic:C++ Debug on Windows with MinGW is a total bust: no stop at breakpoints, no console output
Next Topic:Compile for 32bit ARM target on 64bit Ubuntu
Goto Forum:
  


Current Time: Sun Sep 22 23:17:02 GMT 2024

Powered by FUDForum. Page generated in 0.03880 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top