Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在gdb中,到达断点后,我想列出当前上下文中的所有变量,而不是显式地给每个变量名称?有没有办法实现这一点?
你想要info locals。或者,如果您得到回溯,bt full.
info locals
bt full
您可以使用该命令附加info locals到断点。commands
commands