Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: add targets for Debug builds #461

Open
tobiasvl opened this issue Oct 18, 2022 · 1 comment
Open

Makefile: add targets for Debug builds #461

tobiasvl opened this issue Oct 18, 2022 · 1 comment

Comments

@tobiasvl
Copy link
Collaborator

Would it perhaps be useful to add debug targets to the Makefile, so they're easy to build?

It could perhaps have the most useful subset of debug functionality enabled, instead of everything; for example, only enable debug modes 1 and 3 (2 is less useful).

Not sure about giving the debug save file a name that starts with a single space (" DBUG"?) so Marin can be used for text debugging (mostly useful for translators). If so, the starting room should perhaps be made into a variable and configured to be different from the Rooster statue, otherwise the file can't be used for anything but text debugging.

https://tcrf.net/The_Legend_of_Zelda:_Link%27s_Awakening_(Game_Boy)#Debug_Utilities

@kemenaran
Copy link
Collaborator

Sure, a debug target could be a good idea.

It is already possible to build a debug ROM by defining the ENABLE_DEBUG_1 constant, like this:

$ make ASFLAGS='--define ENABLE_DEBUG_1'

But a make debug could be nice (even if it only builds the EN 1.0 rom, that's already something)

@kemenaran kemenaran changed the title Debug build targets Makefile: add targets for Debug builds Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants