mirror of
https://github.com/pret/pokeemerald.git
synced 2026-04-24 23:28:16 -05:00
Updated Debugging using printf (markdown)
parent
8534abf62b
commit
bfedaa6c8a
|
|
@ -44,6 +44,10 @@ Since `AGBPrintf` is not widely supported by emulators it is recommended to use
|
|||
|
||||
In order to view our logs, we'll need to use the [mGBA](https://mgba.io/) emulator. Open the log viewer by going to the "Tools" menu and selecting "View Logs...". Make sure the log level checkboxes for INFO, WARNING, ERROR are checked and run your game until it hits a `DebugPrintf` statement.
|
||||
|
||||
On newer versions of mgba you may want to disable some of the verbose logging to actually see your output over the rest of the log spam. Go to `Tools->Settings->Logging` and disable whatever is spamming your log:
|
||||
|
||||

|
||||
|
||||
## 5. Configuration
|
||||
|
||||
Apart from enabling debugging you can also change the `LOG_HANDLER` and the `PRETTY_PRINT_HANDLER`. See the comments in `include/config.h`. Note that when using LIBC as your `PRETTY_PRINT_HANDLER` it was discovered that the devkitPro libc does not link well against it and it does not support the `%S` format extension.
|
||||
Loading…
Reference in New Issue
Block a user