gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > MappyVM Source Code Debugging

#273 - regularkid - Sun Jan 05, 2003 8:31 pm

I'm currently using MappyVM because it has some really great debugging features (i can view sprites, backgrounds, palettes, step through the game, and most importantly use Mappy's console feature (printfs are my favorite for debugging)!) Anyways, I can't seem to figure out how to get the source code thing working. Supposedly you can step through code but whenever I bring up that window, it's just blank. Anyone know how to use this feature? Just curious. Thanks!
_________________
- RegularKid

#274 - AnthC - Sun Jan 05, 2003 8:44 pm

Hi (assuming you are using gcc)
Use the -g option with your compiles.
When you link also make an ELF file, and load this into Mappy, rather than selecting your normal .GBA ROM.
Then click on any file to see the source.

#277 - Costis - Sun Jan 05, 2003 9:03 pm

Hi,

You must also have all your source code files from your project in the same directory as the .elf file as well because actual source code is not included in .elf files.

Costis

#279 - regularkid - Sun Jan 05, 2003 9:17 pm

Sweet! Thanks!
_________________
- RegularKid