我在谷歌上搜索了这个问题,但没有看到任何有用的建议。我的理解是默认设置应该有效;我看不到任何有关对默认设置进行强制修改的信息。
You have not configured the plugin correctly, the default configuration file and your user configuration file will open in a new window
Run Code Online (Sandbox Code Playgroud)
当我尝试打开调试器时,它会打开用户设置(一个空文件)和 sublimeGDB 设置文件,这似乎是默认设置。https://github.com/quarnster/SublimeGDB上的设置教程没有提到需要修改任何文件,只有在您想更改首选项时才可以这样做。
另外,我不明白以下说明:
Open up the default settings via the command palette and begin typing GDB and select the default.
Run Code Online (Sandbox Code Playgroud)
当我打开命令面板时,当我输入 GDB 时没有“默认”选项,只有一个 SublimeGDB 功能列表(所有这些都会导致标题错误)
我安装了带有包控制的 SublimeGDB。
如果您查看您的SublimeGDB.sublime-settings并阅读一些属性,您可以看到它们的值设置为"notset"
作为最低限度,您必须设置这些:
"workingdir": "${folder:${file}}",
"commandline": "gdb --interpreter=mi --args ./${file_base_name}",
"env": {"DISPLAY": ":100"},
Run Code Online (Sandbox Code Playgroud)
工作目录是当前打开文件的目录。
这将启动名为您当前打开的文件的可执行文件(不带扩展名)
还有许多其他设置和选项。
您需要阅读并学习如何配置它们以满足您的需求。
| 归档时间: |
|
| 查看次数: |
3425 次 |
| 最近记录: |