【问题标题】:SublimeGDB: No symbol table is loadedSublime GDB:未加载符号表
【发布时间】:2017-04-04 03:31:25
【问题描述】:

我在设置 sublimegdb 时遇到问题。我总是收到错误消息:

"没有加载符号表。使用\"file\"命令。"

我的用户设置似乎有问题:

{
    "workingdir": "/home/name/workspace/project",

    "commandline": "gdb --interpreter=mi ./main" 
}

这似乎是一个超级愚蠢且容易解决的问题,但我就是不明白......

谢谢!

【问题讨论】:

    标签: debugging gdb sublimetext2


    【解决方案1】:

    -----已解决-----

    我刚刚错过了更改我的构建系统并忘记将用于调试的参数 -g 添加到 gcc。

    我的项目设置

     {
    "settings":
         {
              "sublimegdb_workingdir": "${folder:${file}}",
    
              "sublimegdb_arguments": "",
    
              "sublimegdb_commandline": "gdb --interpreter=mi --args ./${file_base_name}"
         }
    }
    

    C 构建系统

     {
    "cmd" : ["gcc -g $file_name -o ${file_base_name} && ./${file_base_name}"],
    "selector" : "source.c",
    "shell": true,
    "working_dir" : "$file_path"
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-06-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-04
      相关资源
      最近更新 更多