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