Debug in VSCode with Rack-SDK?

@flowstate Sure: my Rack checkout is in C:\src\Rack\Rack, with the executable at C:\src\Rack\Rack\Rack.exe. My launch.vs.json is in C:\src\Rack\Rack\.vs and looks like this:

{
    "version": "0.2.1",
    "defaults": {},
    "configurations": [
        {
            "type": "cppdbg",
            "name": "Rack.exe",
            "project": "Rack.exe",
            "cwd": "${workspaceRoot}",
            "program": "${debugInfo.target}",
            "MIMode": "gdb",
            "miDebuggerPath": "${env.MINGW_PREFIX}\\bin\\gdb.exe",
            /*"externalConsole": true,*/
            "args": [
                "-d"
            ]
        }
    ]
}

One thing to beware of: the default .gitignore for Rack includes Rack.exe, which prevents Visual Studio from showing it in Solution Explorer. It took me a while to figure out why I couldn’t see it!

1 Like