Home Download Buy Blog Forum Support

Sublime Text 3 build 3047 with SublimeGDB

Sublime Text 3 build 3047 with SublimeGDB

Postby kaustubhb on Wed Sep 11, 2013 8:15 am

Has anyone been able to get SublimeGDB to work with ST3, build 3047 x64?
I am running Win 7 64 bit
I get the following error on trying to launch debugger

Traceback (most recent call last):
File "X/subprocess.py", line 1090, in _execute_child
NotADirectoryError: [WinError 267] The directory name is invalid

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\SublimeText3\sublime_plugin.py", line 526, in run_
return self.run()
File "sublimegdb in C:\Users\kaubansa\AppData\Roaming\Sublime Text 3\Installed Packages\SublimeGDB.sublime-package", line 1572, in run
File "X/subprocess.py", line 818, in __init__
File "X/subprocess.py", line 1096, in _execute_child
NotADirectoryError: [WinError 267] The directory name is invalid
kaustubhb
 
Posts: 1
Joined: Wed Sep 11, 2013 8:10 am

Re: Sublime Text 3 build 3047 with SublimeGDB

Postby jstoppa on Sat Dec 07, 2013 12:14 pm

have you managed to get it working?

I'm getting a similar error:
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 526, in run_
return self.run()
File "sublimegdb in /Users/testuser/Library/Application Support/Sublime Text 3/Installed Packages/SublimeGDB.sublime-package", line 1597, in run
File "X/subprocess.py", line 818, in __init__
File "X/subprocess.py", line 1416, in _execute_child
NotADirectoryError: [Errno 20] Not a directory


Let me know
Thanks
jstoppa
 
Posts: 2
Joined: Sat Dec 07, 2013 12:08 pm

Re: Sublime Text 3 build 3047 with SublimeGDB

Postby subhaze on Sun Dec 08, 2013 1:39 am

You should post that on the plugin's issue tracker... https://github.com/quarnster/SublimeGDB ... state=open
subhaze
 
Posts: 229
Joined: Tue Apr 09, 2013 3:22 am

Re: Sublime Text 3 build 3047 with SublimeGDB

Postby jstoppa on Tue Dec 10, 2013 10:25 pm

Hi subhaze,

Thanks for your reply.

I finally managed to make it work, it was mainly my lack of understanding how the whole plugin works.

I was doing the following wrong:

1) I was building the C++ code without using the -g parameter, basically by running the Cmd + B. I then built the file by using the command
g++ myfile.cpp -g -o myfile

2) The settings in the sublime-project was wrong, my final setting looks like this:
Code: Select all
"settings":
   {
      "sublimegdb_commandline": "gdb --interpreter=mi ./myfile",
      "sublimegdb_workingdir": "${folder:${project_path:myfile}}",
      "sublimegdb_exec_cmd": "-exec-run",
      "tab_size": 8,
      "sublimegdb_i_know_how_to_use_gdb_thank_you_very_much": true
   }

It was particularly important to set the flag sublimegdb_i_know_how_to_use_gdb_thank_you_very_much to true, otherwise I keep getting annoying pop ups

I hope this helps someone else trying to set up sublimegdb

Juan
jstoppa
 
Posts: 2
Joined: Sat Dec 07, 2013 12:08 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 21 guests