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.
精彩评论