不设断点暂停 gdb
当我在 Xcode 中调试程序时,我可以在调试器控制台中暂停执行。有什么办法可以从命令行使用 gdb 来做到这一点吗?
我想这样做,以便在程序启动后可以修改断点。
When I am debugging a program in Xcode, I can pause execution in there debugger console. Is there any way to do this using gdb from the command line?
I'd like to do this so I can modify breakpoints after the program has started.
您只需按 Ctrl+C 即可执行您要求的操作,尽管它可能并不总是有效(请参阅下面的评论)。
You can just press Ctrl+C and will be able to do what you ask, although it might not always work (see comments below).