To setup debugging for Dlang programs on Windows with VsCode follow these steps:
- make sure you have the D Programming Language (code-d) (VsCode extension) installed
- make sure you have the C/C++ extension pack (VsCode extension) installed
- create a
.vscode
folder at the root of your Odin project - copy the
launch.json
andtasks.json
into it - in the
launch.json
at line:"program": "./my-app.exe",
changemy-app.exe
to your executable name (look in thedub.json
under name). - click on the debug tab in VsCode, then click on the debug button at the top (or press F5)