Sublime Forum

Sth about the gdb in sublime text 3

#1

“settings”:
{
“sublimegdb_workingdir”: “${folder:${project_path:contains.cc}}”,
“sublimegdb_commandline”: “gdb --interpreter=mi ./contains”,
}

I find the settings in a website and I enter it into SublimeGDB->Settings User.But when I try to save this,it appears an error message showing like this:
Error trying to parse settings: Unexpected trailing characters in Packages\User\SublimeGDB.sublime-settings:1:15.
And I am new about this,so what can i do to solve this problem? Thanks a lot.

0 Likes

#2

Wild guess: remove the last ,

"settings": { "sublimegdb_workingdir": "${folder:${project_path:contains.cc}}", "sublimegdb_commandline": "gdb --interpreter=mi ./contains" }

0 Likes

#3

[quote=“Clams”]Wild guess: remove the last ,

"settings": { "sublimegdb_workingdir": "${folder:${project_path:contains.cc}}", "sublimegdb_commandline": "gdb --interpreter=mi ./contains" }[/quote]

ok,in fact,I’ve tried this,but failed.Then,I tried like this:
{
“settings”:
{
“sublimegdb_workingdir”: “${folder:${project_path:contains.cc}}”,
“sublimegdb_commandline”: “gdb --interpreter=mi ./contains”
}
}
…I find it works…but I mean I can save it,but when i press f5 to debug,it appears an error message:you have not configured the plugin correctly,the default configuration file and your user configuration file will open in a new window.
…I am so depressed…I find sublime text3 is such a beautiful and useful one…But I just can not figure it out…:frowning:

0 Likes