Hi all,
I’m trying to debug my plugin using VSCode and Rack-SDK.
But for some reasons, it doesn’t work.
I’m using msys64, make (gcc) and gdb.
Here’s my VSCode settings:
tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "build vcv rack plugin",
"type": "shell",
"command": "make install",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "C:\\Program Files\\VCV\\Rack\\Rack.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/../..",
"environment": [{ "name" : "PATH", "value" : "${workspaceFolder}/../../dep/bin;C:/msys64/mingw64/bin;${env.PATH}" }],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"logging": {
//"trace": true,
//"traceResponse": true
"engineLogging": true
},
"preLaunchTask": "build vcv rack plugin"
},
{
"name": "(gdb) Attach",
"type": "cppdbg",
"request": "attach",
"program": "C:\\Program Files\\VCV\\Rack\\Rack.exe",
"processId": "${command:pickProcess}",
"MIMode": "gdb",
"miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe",
"preLaunchTask": "build vcv rack plugin"
}
]
}
When I run the Debug (F5), it correctly make install the plug, attach gdb and run Rack.exe (where I can load my plug).
But if I place a breakpoint in the middle of ::step() function, its not triggered.
What’s wrong? How do you do this?
Thanks