I'm starting to get serious about the debugging features in my emu so that I can.... well.... debug my emu. Focusing on the tracer right now. I find that when scouring trace logs, I often want to log things other than just the instructions that are executing.
So I came up with an idea to have a user-configurable formatting string that the trace logger uses.
The idea would go something like this...
Example format string:
Example output:
The gimmick is, with custom tags like that, I could easily add them for all sorts of stuff, like RAM locations, ppu/apu/mapper registers, etc. It would be super useful for me. Would probably be useful for hackers/homebrewers too.
Do any emus out there already do something like this?
So I came up with an idea to have a user-configurable formatting string that the trace logger uses.
The idea would go something like this...
Example format string:
Code:
{c.pc}: <{trace}> {c.a} {c.x} {c.y} [{c.flags}] {c.sp} - {p.line}:{p.dot}
Example output:
Code:
F95B: <91 00 STA ($00),Y [0138=FF]> 00 01 38 [...I..] FD - 123:210
The gimmick is, with custom tags like that, I could easily add them for all sorts of stuff, like RAM locations, ppu/apu/mapper registers, etc. It would be super useful for me. Would probably be useful for hackers/homebrewers too.
Do any emus out there already do something like this?