开发者

gdb local variables in a function

开发者 https://www.devze.com 2023-02-15 04:12 出处:网络
Is there a way in gdb to check the local variables of a member function and also the class priva开发者_如何学JAVAte members. Sometimes, I need to know which variables are local to the function and whi

Is there a way in gdb to check the local variables of a member function and also the class priva开发者_如何学JAVAte members. Sometimes, I need to know which variables are local to the function and which ones are class variables.

Best, Umut


info local

will print the values of all local variables (see info args if you also want function parameters)

print *this

will show the member variables.

0

精彩评论

暂无评论...
验证码 换一张
取 消