I’m trying to debug Rack plugins in VS Code on Mac OS. I have a problem launching Rack when debugging, it gives “launch: program ‘Rack’ does not exist” error and doesn’t launch Rack. I tried using “/Applications/Rack” but it doesn’t help. You can find my launch.json below:
Hi @swatinogi , it didn’t work with the Rack.app binary I downloaded and gave the error. I then downloaded VCV source code and compiled it which gave me a Rack executable file. When I used that it works.
Now my breakpoint doesn’t work, Rack runs in debugger but no break. It says “Module containing this breakpoint has not yet loaded or the breakpoint address could not be obtained.” Any ideas?
That message usually means that the binary file that’s running, is not the one that the debugger is expecting. Possibly Rack is finding and loading the dll from a directory other than the one you building in.
I suspect submarine is correct, you aren’t loading the version of the plugin that you are building. It looks from the configuration that you are “adding plugin to the rack plugin folder”, but when you build your plugin to run in your own debug version of Rack there is no extra stop to add/install your plugin. Rack just finds it.
The folder structure for this is Rack/plugins/. Are you set up this way?
When Rack is launched while debugging it loads the plugins from “”/Users/tolgainci/Documents/Rack/plugins-v1" folder where I copy them with make install.
Are you saying Rack should load the plugins from “/Users/tolgainci/Documents/Rack/Rack-1/Rack/plugins/” that is my build folder instead? If so how can I achieve this?
I discovered something:
When I run Rack by double clicking, or by triggering it within VS Code like this “/Users/tolgainci/Documents/Rack/Rack-1/Rack/Rack” it loads the plugins folder from "“/Users/tolgainci/Documents/Rack/plugins-v1”
When I execute “make run” in the terminal from Rack source directory “/Users/tolgainci/Documents/Rack/Rack-1/Rack/” it correctly loads the plugins from ““/Users/tolgainci/Documents/Rack/Rack-1/Rack/plugins” directory.
So I guess I need this make run behavior in VS code debugging