sublimetext - sublimegdb 不能停在断点

标签 sublimetext

我在 sublime text 2 中安装了 sublimeGDB,我的设置是正确的。
然后我在一行中按 F9 来设置断点。当我按F5运行时,我发现我的程序不能停在断点处,程序运行完毕。
下面显示的信息是“GDB session 结束”。 GDB View 仅在 0.5 秒内出现,然后消失。

最佳答案

您必须通过添加 -g 来编译包含调试信息的可执行文件。默认情况下,Sublime Text C++ 构建系统不会添加 GDB 命令行的选项。查询 this回答更多详细信息如何做到这一点。

关于sublimetext - sublimegdb 不能停在断点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18962474/

相关文章:

regex - Sublime Text : Regex to convert Uppercase to Title Case?

ftp - Sublime Text 3 中的 SFTP 不起作用

scheme - Sublime Text 2 with MIT Scheme

ant - 在 Sublime Text 2 中使用 Ant

python - 在 Sublime Text 3 插件中获取当前行

sublimetext - 如何刷新Sublime Text 3工作区配色方案?

debugging - Sublime Text 3和Web Inspector插件

configuration - 像 Sublime Text 一样配置 PHPStorm 的 Keymap

sublimetext - 用 Emmet 反向展开

sublimetext3 - Sublime 3 : Ctrl-c triggers even if no text is selected,在剪贴板中放置文本