Thanks Rob. :) A debugger is definitely a valuable tool when staring at your code doesn't yield any results. It does feel a bit like cheating though, like using reference books to solve a crossword puzzle rather than just what's between your ears. :lol: Btw, do you know if the MAME debugger can be i...
CRASH BUG FIXED!! :D Playing with MAME's debugger I could see the program counter was shooting off into BASIC rom when the game crashed. But I could also see using a memory window onto my Sprite data structure that all of the associated sprite pointers looked fine. So I started a trace just before a...
Thanks guys. Some great advice there. :D Spamming registers, addresses etc. to the screen is a technique I do use a lot along with disabling whole sections of code to corner a bug. In fact this is usually enough and on this occasion has enabled me to focus my search on one area of specific interest....
So if you were trying to find the code which executed immediately prior to a crash would you use the `trace' command or maybe `tracelog' to track the pc register?
Hi everyone. I'm trying to track down an occasional crash bug in my game code. The problem is it's quite hard to reproduce and when the game does freeze it's not obvious why? It seems likely that under certain conditions a pointer is being corrupted but to narrow the search I'm thinking it might be ...