Thread overview
code-debug 0.6.0 released (GDB & LLDB for vscode)
Mar 06, 2016
WebFreak001
Mar 06, 2016
extrawurst
Mar 07, 2016
Guillaume Piolat
Mar 08, 2016
Manu
Mar 08, 2016
ZombineDev
Mar 10, 2016
WebFreak001
Mar 08, 2016
Rory McGuire
March 06, 2016
I just released version 0.6.0 of my debug extension for visual studio code. It works really well for debugging D code and I also use it everytime I debug my D code. It's still not completely finished but it supports lots of features now. If you want to debug your code in vscode just install the extension with

ext install gdb

The name of the extension is "Debug" but "gdb" is more specific for finding it

LLDB is freshly added so be sure to report bugs to the github repository. :)

github: https://github.com/WebFreak001/code-debug
vscode: https://marketplace.visualstudio.com/items?itemName=webfreak.debug
March 06, 2016
On Sunday, 6 March 2016 at 11:25:30 UTC, WebFreak001 wrote:
> I just released version 0.6.0 of my debug extension for visual studio code. It works really well for debugging D code and I also use it everytime I debug my D code. It's still not completely finished but it supports lots of features now. If you want to debug your code in vscode just install the extension with
>
> ext install gdb
>
> The name of the extension is "Debug" but "gdb" is more specific for finding it
>
> LLDB is freshly added so be sure to report bugs to the github repository. :)
>
> github: https://github.com/WebFreak001/code-debug
> vscode: https://marketplace.visualstudio.com/items?itemName=webfreak.debug

Great stuff, especially LLDB - if now only code-d would work for osx :P

--Stephan
March 07, 2016
On Sunday, 6 March 2016 at 11:25:30 UTC, WebFreak001 wrote:
> I just released version 0.6.0 of my debug extension for visual studio code. It works really well for debugging D code and I also use it everytime I debug my D code. It's still not completely finished but it supports lots of features now. If you want to debug your code in vscode just install the extension with
>
> ext install gdb
>
> The name of the extension is "Debug" but "gdb" is more specific for finding it
>
> LLDB is freshly added so be sure to report bugs to the github repository. :)
>
> github: https://github.com/WebFreak001/code-debug
> vscode: https://marketplace.visualstudio.com/items?itemName=webfreak.debug

Very interesting, thanks!
March 08, 2016
On 6 March 2016 at 21:25, WebFreak001 via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> wrote:
> I just released version 0.6.0 of my debug extension for visual studio code. It works really well for debugging D code and I also use it everytime I debug my D code. It's still not completely finished but it supports lots of features now. If you want to debug your code in vscode just install the extension with
>
> ext install gdb
>
> The name of the extension is "Debug" but "gdb" is more specific for finding it
>
> LLDB is freshly added so be sure to report bugs to the github repository. :)
>
> github: https://github.com/WebFreak001/code-debug
> vscode: https://marketplace.visualstudio.com/items?itemName=webfreak.debug

Cool, I'll give this a crack.

I've tried out code-d, but it only seems to do anything useful with dub.
None of my projects use dub. Every project I have combines C/C++/D,
and dub is an insufficient build system.
I can configure vscode projects to invoke my builds, but code-d
doesn't have any project metadata to work with in that context.
Can you work code-d to get its necessary working state from explicit
variables in the vscode project file?
March 08, 2016
On Tue, Mar 8, 2016 at 2:23 AM, Manu via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> wrote:
>
> On 6 March 2016 at 21:25, WebFreak001 via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> wrote:
> > I just released version 0.6.0 of my debug extension for visual studio code. It works really well for debugging D code and I also use it everytime I debug my D code. It's still not completely finished but it supports lots of features now. If you want to debug your code in vscode just install the extension with
> >
> > ext install gdb
> >
> > The name of the extension is "Debug" but "gdb" is more specific for finding it
> >
> > LLDB is freshly added so be sure to report bugs to the github repository. :)
> >
> > github: https://github.com/WebFreak001/code-debug
> > vscode: https://marketplace.visualstudio.com/items?itemName=webfreak.debug
>
> Cool, I'll give this a crack.
>
> I've tried out code-d, but it only seems to do anything useful with dub.
> None of my projects use dub. Every project I have combines C/C++/D,
> and dub is an insufficient build system.
> I can configure vscode projects to invoke my builds, but code-d
> doesn't have any project metadata to work with in that context.
> Can you work code-d to get its necessary working state from explicit
> variables in the vscode project file?


Hi Manu,

Have you checked out these dub commands?
preBuildCommands string[] A list of shell commands that is executed
always before the project is built
postBuildCommands string[] A list of shell commands that is executed
always after the project is built

R
March 08, 2016
On Tuesday, 8 March 2016 at 00:23:55 UTC, Manu wrote:
> On 6 March 2016 at 21:25, WebFreak001 via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> wrote:
>> [...]
>
> Cool, I'll give this a crack.
>
> I've tried out code-d, but it only seems to do anything useful with dub.
> None of my projects use dub. Every project I have combines C/C++/D,
> and dub is an insufficient build system.
> I can configure vscode projects to invoke my builds, but code-d
> doesn't have any project metadata to work with in that context.
> Can you work code-d to get its necessary working state from explicit
> variables in the vscode project file?

It should be fairly simple to write a dummy dub.json file that specifies your .d files. You don't even have to use it as a build system - just for IDE project management.
March 10, 2016
On Tuesday, 8 March 2016 at 00:23:55 UTC, Manu wrote:
> I've tried out code-d, but it only seems to do anything useful with dub.
> None of my projects use dub. Every project I have combines C/C++/D,
> and dub is an insufficient build system.
> I can configure vscode projects to invoke my builds, but code-d
> doesn't have any project metadata to work with in that context.
> Can you work code-d to get its necessary working state from explicit
> variables in the vscode project file?

If you use some other common build system you can include it into workspace-d as alternative backend and code-d will be able to use it by just changing a few lines

Otherwise just do what the others said and add pre/postLaunchScripts

Might aswell add a custom format just for the IDE containing just the file informations or implement visualD, monoD and all those other IDE formats