开发者

gdb local variables in a function

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜