devkitpro
Debugging with Visualboy Advance and Insight
create shortcut In order to connect Insight to Visualboy advance you need the SDL version of VBA which can be found in the downloads section. Please note that versions of VBA later than 1.7.1 appear to have trouble with the gdb interface and are next to useless for this purpose.

While it is perfectly acceptable to run the emulator from a command line with the appropriate parameters it is more convenient to set up a shortcut for ease of use. To do this right click on vba.exe and select Create Shortcut from the pop up menu that appears which should look similar to the picture on the right. This should create a file in the same directory called "Shortcut to vba.exe" that should now be edited to provide the parameters that set up a listening port for Insight/Gdb.

edit shortcut Right click on the shortcut and click properties, you should see a dialog box like that shown on the left. In the Target box add -Gtcp at the end of the line, you can also add -2 as has been done here - this doubles the size of the vba window so the display is 480x384 instead of the standard 240x160.

When you double click the newly created shortcut you should now see a dosbox like the one shown below.

vba startup

Now start arm-elf-insight and load the ELF file you wish to debug. Click File->Target Settings and you'll see a dialogue box like the one below, you may need to click the arrow next to "More Options" in order to see the entire dialog. Select Remote/TCP in the target box, type localhost in the Hostname box and 55555 in the Port box.

insight target settings

The screenshot here shows one of the examples being debugged

insight target settings