sublimetext3 - Sublime 3 的 Sublime GDB 不工作 : You have not configured the plugin correctly

标签 sublimetext3

我已经用谷歌搜索了这个问题,但没有看到任何有用的建议。我的理解是默认设置应该可以工作;我看不到任何有关强制修改默认设置的信息。

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/

相关文章:

sublimetext3 - 如何更改 Sublime Text 3 中 Rust 基元类型的字体样式?

javascript - Sublime Text 3 中的 JS 与 Node.js 构建系统

bash - 在不打开空白窗口的情况下从命令行打开 Sublime 项目

javascript - 在 Sublime Text 中运行选定的代码

macos - 在 macOS 中从终端打开 Sublime Text

python - sublime 3 jinja2荧光笔的使用方法

r - 将 R 与 Sublime Text 3.2 集成

macos - Sublime Emmet 不会扩大冲突

syntax-highlighting - 无法覆盖 sublime text 3 中的语法突出显示

sublimetext3 - 如何在Sublime Text 3中禁用拼写检查?