Open taquitos opened 4 years ago
Hi there, sorry for such a long time without a response. I didn't see this notification come through. Since initially posting this I know that mGBA has had it's GDB implementation working in recent versions. Unfortunately I'm unable to test this out on a Mac right now as I'm locked out of my office until the University re-opens for business in September, so I'm not going to be much help on this one, perhaps you could post your launch.json and task.json files to see what you have configured in them.
I'm having a ~related issue, though for me it's not crashing, it just fails to do anything interesting. It launches mGBA to a white screen and the debugger never gets any symbols. Unfortunately I'm pretty clueless about how gdb and VSCode are supposed to interact so my debugger-debugging abilities are slim to none.
I also noticed VSCode logging an error related to tasks.json:
Error: the description can't be converted into a problem matcher:
{
"background": {
"activeOnStart": true,
"beginsPattern": "^.*debuggerReady.*$",
"endsPattern": "^.*debuggerReady.*$"
}
}
I'm not sure if those things are related.
My tasks.json is unmodified except for the mGBA path.
If I run mGBA without -g
, it shows the test pattern, but if I run with -g
, I just get a white screen.
Solved it.
The basic problem you've been dealing with for Mac support is you need to use open /Applications/mGBA.app --args -g blah.gba
instead of calling into the MacOS/mGBA
binary. Doing this causes the system to open the app using the GUI app launching mechanism instead of tying it to your terminal's stdout/stderr.
My changes are here, you're welcome to pull them in. Everything seems to work with no hacks. https://github.com/irskep/gbatest/tree/master/.vscode
I also fixed some path casing issues and addressed the VSCode schema error.
Noice! I'll give it a shot over the next couple of days. Thank you for looking into it!
Ok, just gave it a go with your fork, works perfectly.
I was able to adjust various params in the
launch.json
to point to the right places, and when I launch I get mGBA that just sits there. I went ahead and pressed the stop button in VSCode, and relaunched (like the README instructs) but it never connects.Do you think mGBA still doesn't do remote debugging and the real problem is I need to get
mGBA 0.6.1
to work?Crash output (if you have any ideas here, QtOpenGL (5.14 - 5.14.2))