digitalmars.D.announce - code-debug 0.3.0 released (GDB for vscode)
- WebFreak001 (12/12) Feb 09 2016 I recently started with a GDB extension for debugging D code in
- Joel (3/16) Feb 09 2016 I don't understand the 'ext install debug' is that linux only.
- Mike Parker (10/12) Feb 09 2016 Inside Visual Studio Code, press F1 and start typing the command.
- Joel (2/15) Feb 09 2016 Thanks Mike. But now what?
- WebFreak001 (3/4) Feb 10 2016 when you have installed the extension, you can create the debug
- Joel (16/20) Feb 10 2016 I've looked at the read me, but it seems different on my OSX
- WebFreak001 (4/17) Feb 10 2016 Thats correct. Just change the target to your actual executable
- Joel (3/20) Feb 10 2016 It says 'Debug adapter process has terminated unexpectedly' on my
- Daniel Kozak via Digitalmars-d-announce (3/4) Feb 10 2016 How can I install it? Where I should put this command?
- Daniel Kozak (4/9) Feb 10 2016 OK I found it :). I cant just put ext install debug and hit enter
I recently started with a GDB extension for debugging D code in visual studio code and now its in a pretty ready state supporting most things GDB can do, covering nearly everything the vscode UI allows me to do. It supports debugging, attaching to processes & gdbserver and debugging over SSH + X11 forwarding. I've used it quite a lot now and it works great with D on linux. I will add more debuggers in the future (also lldb and others that support MI command syntax). If you have visual studio code, just run `ext install debug` and follow the instructions in the README Source code for those of you who are interested: https://github.com/WebFreak001/code-debug
Feb 09 2016
On Tuesday, 9 February 2016 at 22:31:37 UTC, WebFreak001 wrote:I recently started with a GDB extension for debugging D code in visual studio code and now its in a pretty ready state supporting most things GDB can do, covering nearly everything the vscode UI allows me to do. It supports debugging, attaching to processes & gdbserver and debugging over SSH + X11 forwarding. I've used it quite a lot now and it works great with D on linux. I will add more debuggers in the future (also lldb and others that support MI command syntax). If you have visual studio code, just run `ext install debug` and follow the instructions in the README Source code for those of you who are interested: https://github.com/WebFreak001/code-debugI don't understand the 'ext install debug' is that linux only. How would I get the extension to work on OSX?
Feb 09 2016
On Wednesday, 10 February 2016 at 05:09:28 UTC, Joel wrote:I don't understand the 'ext install debug' is that linux only. How would I get the extension to work on OSX?Inside Visual Studio Code, press F1 and start typing the command. Actually, it doesn't let you execute the command directly. Once you start typing 'ext' you'll see several options in the drop down menu that begin 'Extensions:'. Select 'Extensions: Install Extension'. It will take a second or two to prepare the extensions list. Whatever you've typed in the text field will change to 'ext install'. Just append 'debug' to that and you'll be able to select the Debug extension from the list (or simply press return).
Feb 09 2016
On Wednesday, 10 February 2016 at 05:42:21 UTC, Mike Parker wrote:On Wednesday, 10 February 2016 at 05:09:28 UTC, Joel wrote:Thanks Mike. But now what?I don't understand the 'ext install debug' is that linux only. How would I get the extension to work on OSX?Inside Visual Studio Code, press F1 and start typing the command. Actually, it doesn't let you execute the command directly. Once you start typing 'ext' you'll see several options in the drop down menu that begin 'Extensions:'. Select 'Extensions: Install Extension'. It will take a second or two to prepare the extensions list. Whatever you've typed in the text field will change to 'ext install'. Just append 'debug' to that and you'll be able to select the Debug extension from the list (or simply press return).
Feb 09 2016
On Wednesday, 10 February 2016 at 06:51:43 UTC, Joel wrote:Thanks Mike. But now what?when you have installed the extension, you can create the debug config as described in the README
Feb 10 2016
On Wednesday, 10 February 2016 at 13:04:43 UTC, WebFreak001 wrote:On Wednesday, 10 February 2016 at 06:51:43 UTC, Joel wrote:I've looked at the read me, but it seems different on my OSX version. I get this with the debug gear button: { "version": "0.2.0", "configurations": [ { "name": "Debug", "type": "gdb", "request": "launch", "target": "./output", "cwd": "${workspaceRoot}" } ] }Thanks Mike. But now what?when you have installed the extension, you can create the debug config as described in the README
Feb 10 2016
On Wednesday, 10 February 2016 at 21:57:49 UTC, Joel wrote:I get this with the debug gear button: { "version": "0.2.0", "configurations": [ { "name": "Debug", "type": "gdb", "request": "launch", "target": "./output", "cwd": "${workspaceRoot}" } ] }Thats correct. Just change the target to your actual executable and you could debug. If you want to build it before debugging, create a build task and add a preLaunchTask to the config
Feb 10 2016
On Thursday, 11 February 2016 at 00:34:57 UTC, WebFreak001 wrote:On Wednesday, 10 February 2016 at 21:57:49 UTC, Joel wrote:It says 'Debug adapter process has terminated unexpectedly' on my OSX machine.I get this with the debug gear button: { "version": "0.2.0", "configurations": [ { "name": "Debug", "type": "gdb", "request": "launch", "target": "./output", "cwd": "${workspaceRoot}" } ] }Thats correct. Just change the target to your actual executable and you could debug. If you want to build it before debugging, create a build task and add a preLaunchTask to the config
Feb 10 2016
Dne 9.2.2016 v 23:31 WebFreak001 via Digitalmars-d-announce napsal(a):ext install debugHow can I install it? Where I should put this command? ext install debug
Feb 10 2016
On Wednesday, 10 February 2016 at 14:09:43 UTC, Daniel Kozak wrote:Dne 9.2.2016 v 23:31 WebFreak001 via Digitalmars-d-announce napsal(a):OK I found it :). I cant just put ext install debug and hit enter (this will install debugger for chrome)ext install debugHow can I install it? Where I should put this command? ext install debug
Feb 10 2016