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.
我已经尝试过kdbg nameoftheexecutable- 虽然 kdbg start 但它完全是空的。而且也没有输出。
kdbg nameoftheexecutable
只是为了获得更多信息,./nameoftheexecutable我可以获得预期的输出,并且切割器似乎工作得很好。
./nameoftheexecutable
在 Linux 上,这会自动运行,不需要特殊设置。
你编译了-g吗?
-g
万一您真的需要选择特定的 GDB 进行调试,请按照以下步骤操作: