To setup debugging for Odin programs on Windows with VsCode follow these steps:
- 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 - click on the debug tab in VsCode, then click on the debug button at the top (or press F5)
Note: if you want to use a starter template which also sets up a tracking allocator which tracks and reports memory leaks you can use: https://github.com/RednibCoding/Odin-Starter
Q: When I start debugging, I get the following error popup: Configured debug type 'cppvsdbg' is not supported.
A: Make sure you have the C/C++ extension pack installed. If it is already installed, try reinstalling it.
Ive been trying to solve this issue for a while and havent had any luck. When running my code i get the following error, and was wondering if you had any knowledge in how to fix it. If I was to run 'odin run .' in the terminal however, my code will run, so im quite unsure of the discrepency here. Thanks in advance.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.