I’m encountering a very vague problem.
Whenever I attempt to attach GDB to Rack in order to debug, I get the following error:
ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". During startup program exited with code 0xc0000135.
The program 'C:\SDKs\Rack\Rack.exe' has exited with code 0 (0x00000000).
I am attempting to start an instance of Rack compiled from source and started in developer mode, and all of this works fine, so long as I don’t attempt to launch with debug.
My tasks.json code for debug looks as follows:
{
"label": "Build application without stripping symbols and add to Rack plugin folder",
"type": "shell",
"command": "make ARGS=\"no-strip\" install",
"options": {
"cwd": "${workspaceRoot}",
"env":{
"PATH": "C:/msys64/usr/bin/;C:/msys64/mingw64/bin",
"RACK_DIR": "C:/SDKs/Rack-SDK/"
}
},
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["absolute"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
},
The “no-strip” line causes plugin.mk to skip stripping when building.
My launch task looks as follows:
{
"name": "Launch Debug",
"type": "cppdbg",
"request": "launch",
"program": "C:/SDKs/Rack/Rack.exe",
"args": ["-d"],
"stopAtEntry": false,
"cwd": "C:/SDKs/Rack/",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe",
"preLaunchTask": "Build application without stripping symbols and add to Rack plugin folder",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true,
}
]
}
For reference: “C:/SDKs/Rack/” is the Rack sourcecode and build, while “C:/SDKs/Rack-SDK/” is the Rack SDK. My workspace is “C:/SDKs/Rack-SDK/TestPlugin”.
When encountering this, Rack produces no log file, and even turning on logging for gdb gives me absolutely nothing. Extensive google searches also gives me nothing.
My environment successfully builds the tutorial plugin, the Fundamental library, and Rack itself, so I’m pretty confident that all of the underlying programs and dependencies are functioning correctly.
However, this one has me completly stumped. I have no idea where to look for potential errors.
I have some feeling that it might be a path problem somehow, but I have no idea how to figure out how or where.
The PC is running Windows 11 Pro.
Has anyone encountered anything similar?