Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse/CDT/MinGW/GDB Watching objects while debugging

When I debug C++ app in Visual Studio, I can watch all object's fields when I point a cursor on it or add it to "Watch". Can I do the same in Eclipse/CDT?

like image 792
michaeluskov Avatar asked Jun 27 '26 02:06

michaeluskov


1 Answers

Yes. During debugging, in the Debug Perspective, on the Variables tab, you can click on any variable in scope and look at it's fields. You can then right click on it and add it as a watch variable and it will show up on the Expressions tab where you can see all of it's fields as well.

like image 111
bit7 Avatar answered Jun 28 '26 15:06

bit7



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!