Sublime Forum

Cannot set up sublime gdb

#1

Hi there, I am new to this forum :wink: (also sorry for my grammar but I am not English)
I have been trying to make sublime gdb work for the last week, but unfortunately with no results…
I think that I have configured the project settings file properly, here they are:
{
“folders”:
{
“path”: “/home/[…]/fifteen”
},
“settings”:
{
“sublimegdb_commandline”: “gdb –interpreter=mi ./fifteen”,
“sublimegdb_workingdir”: “${folder:${project_path:fifteen}}”
}
}
The problem is that when I press F5 I get this message in the console:
Running: gdb –interpreter=mi ./fifteen
In directory: [my directory]
error: The directory given does not exist: [my directory]

Now what is even more strange is that Sublime GDB uses the path and directory given in the SublimeGDB User Settings file and not the ones in the project settings (the project settings file seems not to work at all). I tried to find out where I am wrong but I can’t figure it out.
Please help me
Thanks

0 Likes

#2

I’ve been using SublimeGDB on Ubuntu for a while now and really like it. I also had some trial and error before it worked. I can’t remember what issues I had, but some things worth mentioning are:

  • Use: gdb --interpreter=mi –args ./fifteen. Not entirely sure if that is required, but I use that and then also use sublimegdb_arguments for the app arguments.
  • Try setting it up with absolute paths first. If that works, the issue will be with the ${} substitutions
0 Likes