debugging in vs code on Windows

Arjan arjan at ask.me.to
Tue Oct 17 08:38:20 UTC 2017


On Tuesday, 17 October 2017 at 03:10:52 UTC, Dmitry wrote:
> On Tuesday, 17 October 2017 at 02:32:49 UTC, Domain wrote:
>> Can you share your tasks.json and launch.json?
>
> tasks.json - I don't have this file.
> launch.json:
> {
>     "version": "0.2.0",
>     "configurations": [
>
>         {
>             "name": "(Windows) Launch",
>             "type": "cppvsdbg",
>             "request": "launch",
>             "program": "${workspaceRoot}\\parser.exe",
>             "args": [],
>             "stopAtEntry": false,
>             "cwd": "${workspaceRoot}",
>             "environment": [],
>             "externalConsole": true
>         }
>     ]
> }
>
> Also I have changed preferences:
> "debug.allowBreakpointsEverywhere": true,
>
> Status bar:
> x86_64 debug dmd

Before this will work, one must install the Microsoft C/C++ Addin 
i.e. ms-vscode.cpptools.
Start debugging and select the C++ debugger.


More information about the Digitalmars-d-learn mailing list