Can't seem to get the debugger running
Question
I am following the contribution guide and trying to set up the debugger, however I am running bun run --inspect=ws://localhost:6499/ dev spawn and opencode is launching in that terminal, but I can't attach to it, because it's not running on the port (lsof -i :6499 -S is blank)
Can someone help me properly get the debugger working? I'm using Webstorm on linux, thanks.
you should be able to specify which port it spawns on.
Tbh I haven't used the debugger before that was added by a contributor who uses it otherwise I'd try to help more here
Yeah that's what specifying the '6499' is supposed to do, I don't know where it's defaulting to, or if its even enabling debugging at all. I want to contribute/fork this project, but I don't know how I can really develop for it if debugging is going to be a pain.
Did you try the --port flag?
I've tried it with bun run dev -- --port=6499 and I've managed to get opencode running on the port, however I still don't have a clue how to access the debugger, its seems its just the --inspect flag is the problem, no debug.bun.sh popup or anything just straight to opencode in the terminal.
If I get a chance Ill try to properly setup a debugger, I normally just log to file
OK thanks, I'll work with that way for now