AndreaOrru / LaiNES

Cycle-accurate NES emulator in ~1000 lines of code
BSD 2-Clause "Simplified" License
1.49k stars 115 forks source link

Debugger #20

Open kraln opened 7 years ago

kraln commented 7 years ago

It would be quite nice (especially for development of the emulator, but also for development of homebrew and/or examining commercial games) for some amount of debugging capability. I could imagine, variously:

Etc. ( example: http://www.fceux.com/web/assets/debugging_environment_1900px.png )

I don't know if this aligns with the goals of the project or not.

AndreaOrru commented 7 years ago

This would be beautiful and I'd love to work on it.

kraln commented 7 years ago

Interesting thread on NESDev forum about the need for an open source emulator that runs nicely in *nix/osx and has a good debugger: http://forums.nesdev.com/viewtopic.php?f=5&t=14728

kraln commented 7 years ago

How do you feel about brining in Rose ( https://github.com/freeors/Rose ) or Agar ( http://libagar.org/ ) for the UI for the debugger and other pieces?

AndreaOrru commented 7 years ago

I really like Agar.

We could try to reimplement the current GUI using that, to start with.

kraln commented 7 years ago

We should support symbolic debugging as well, with the same format as FCEUX http://www.fceux.com/web/help/fceux.html?NLFilesFormat.html

kraln commented 7 years ago

I had some fights with Agar, and Nanogui. They ... are messy. All of these frameworks assume that SDL is being used in GL mode, which requires a bit of massaging. I think that IMGUI might actually be the best choice here (example: https://github.com/ocornut/imgui/blob/master/examples/sdl_opengl2_example/main.cpp )

AndreaOrru commented 7 years ago

Can't comment on any of them. However, the more minimal, the better.