简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM