A friend and I tried to use Insight/GDB, but ran into exactly the same problems. I repeated this with similar success in both Windows with Cygwin and on Ubuntu Linux.
I tried cross-compiling GDB for ARM as per the instructions, but could not get GDB to connect to the emulator (it would recognize that there was a program to connect to, but reported that the protocol had been violated). Although VBA says that it supports GDB debugging, I have been completely unable to get it working. VBA lacks the ability to set breakpoints, and since it steps forward at the level of frames rather than instructions I'm unable to see how the code is executing when I actually need it to. Although many of the emulators I've found have some support for debugging, nothing I've found so far has been helpful.Īs a background, as of now I have tried to use the Visual Boy Advance built-in features to do debugging, but they aren't particularly useful for what I'm trying to do. As part of the work I've been doing to answer this question about the technical workings of a glitch in Pokémon Red, I've been looking for a way to use a standard debugger to debug a Game Boy ROM.