【问题标题】:Sublime Text: SublimeGDB doesn't stop at the breakpointSublime Text:SublimeGDB 不会在断点处停止
【发布时间】:2015-09-06 17:49:36
【问题描述】:

这是一个与sublimegdb can not stop in the breakpoint 类似的问题,但没有人回答这个问题,所以我决定提出一个新问题。

我刚刚在我的 sublime text 3 中安装了 sublimeGDB 插件,并按 F9 成功设置了断点。当我按 F5 运行时,程序并没有在断点处停止——它刚刚完成运行,而 GDB 视图显示了大约 0.5 秒然后消失了。

这是我的控制台视图中的一些输出:

Will write debug info to file: stdout
Running: gdb --interpreter=mi ./ex8
In directory: //Users//jimmy/workspace
Process: <subprocess.Popen object at 0x1037a1110>
pty: 41, tty: None, name: /var/folders/m2/7h27qgr17v1bqyphh7wq6tpw0000gn/T/tmpnvs3afgdb_stdout: broken pipe
GDB session ended
gdb_stderr: /bin/sh: gdb: command not found
gdb_stderr: broken pipe

【问题讨论】:

  • 显而易见的问题:你的系统上安装了 gdb 吗?

标签: debugging gdb sublimetext3 sublimetext sublime-text-plugin


【解决方案1】:

gdb_stderr: /bin/sh: gdb: command not found

上面写着:sublime 运行了/bin/sh,并要求它运行gdb,但是在PATH 上没有找到名为gdb 的程序。

必须是:

  • 您的系统上根本没有安装 GDB,或者
  • 它安装在某个地方,但它不在 sublime 调用 /bin/sh 的任何 PATH 上。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-07-20
    • 2019-04-29
    • 2012-07-15
    • 2011-05-22
    • 2011-04-30
    • 1970-01-01
    • 2011-08-14
    相关资源
    最近更新 更多