#debug in vscode? halp

1 messages · Page 1 of 1 (latest)

winter cove
#

I am trying to make an audio plugin and as such have to test what happens when it gets loaded by an external process and stuff. I understand I should be able to "attach" to a program and then set a breakpoint and expect the debugger to work or something. I don't know if I'm even doing it right but so far when I click debug the program doesn't even build. It says it can't find the file.

the file I am trying to run is in ../src, while the build.zig is in ..
so I think that might be part of the problem? but I don't understand what I could even change to influence this. the whole vscode "json" settings are a mystery to me and I don't get how it works or what's happening along the way so I have no idea where to start

instead of helping you could just send somebody to erase me from existence and that would probably be a mercy. but I promise I actually know how to make cool things and I'm just out of my wheelhouse with this "IDE" (it's totally not integrated since i don't know how to use it)

slate acorn
#

i've had relatively good experience with codelldb, but tbh vscode's debugger integration is pretty annoying to set up just in general ^^'

#

it may be easier to just use an external debugger

harsh lantern
winter cove
#

should I just switch to C? It seems like a pretty free language where jank doesn't matter for purposes like audio plugins

uncut mason
#

IIRC you're building a CLAP plugin, so it might be easier to build/debug using the example CLAP host, then you can step through CLAp into the plugin. Much easier to use a debug version of the host when debugging dynamic-linked code.

winter cove
#

oh they have that? that sounds helpful
I still have no clue how to do any of that
I have to like... build the host first?
then what?

uncut mason
#

if your not familiar with using a debugger, better to start with building and debugging a simple console program example before jumping into debugging ru-time loaded plugins.

winter cove
#

well I can't even do that because it says the files aren't found for building it

#

it builds when I call zig build

#

but I call in vscode and it said it can't find src/main.zig