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.
我正在调试多线程代码,我只想知道是否已经到达了一行而没有停止,但我不想开始到处添加打印语句。
这可能吗?谢谢!
您可以使用“commands”命令将命令附加到 gdb 中的断点。这些命令之一可以是“继续”。
您可能正在寻找跟踪点。它们在不停止执行的情况下捕获变量值。