debugging in vs code on Windows

evilrat evilrat666 at gmail.com
Sat Oct 14 10:15:53 UTC 2017


On Saturday, 14 October 2017 at 07:40:31 UTC, piotrklos wrote:
> On Friday, 13 October 2017 at 17:04:00 UTC, kerdemdemir wrote:
>> On Friday, 13 October 2017 at 12:55:09 UTC, piotrklos wrote:
>>> (...)
>>
>> I am using VisualD(https://github.com/dlang/visuald/releases) 
>> with vs2015 community version(free) and I can debug. I highly 
>> recommend it if you haven't tried yet. Those options like "-g"
>>  is presented to you with interfaces. Forexample "-g" is 
>> automatically is being added if you are selecting debug 
>> builds(like Debug DMD or Debug LDC).
>
> I will consider that, but I really like VS Code because I often 
> switch between Linux and Windows machine, so I can have the 
> same thing on both.
>
> Does VisualD play well with dub?

Only "dub generate visuald"

As for VS Code you need code-d extension, MS C++ extension in 
order to debug, and webfreak's NativeDebug extension to be able 
to click to set breakpoint on lines(only for that). Then under 
the debug pallette configure MS VS debugger and hit run from 
there. That's it.


More information about the Digitalmars-d-learn mailing list