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

Error Handler, MD Shell: Console scrolling #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vladikcomper
Copy link
Owner

This PR implements basic console scrolling when pressing D-Pad. This should be extremely useful if screen content doesn't fit vertically (e.g. backtrace is too long).

TODO

  • Add Console.SetXYScroll macro;
  • Add Console.VSync macro (maybe squeeze it in here?);
  • Code size optimizations if feasible;
  • Scrolling in MD Shell and Console.Run;

This only affects internally-used debug macros (external __FSTRING_* is unaffected). This is because all format symbols are underscored in this version.
- Extended Console state to include scrolling and VRAM/HSRAM/VSRAM data;
- As a side effect, `Console.Clear` can be used in subdebuggers (e.g. backtrace, address registers); it was previously hardcoded to clear primary debugger's console only;
- Major extension and refactoring of `ErrorHandler_PagesController` to support scrolling;
- Init joypads in `ErrorHandler_ClearConsole`.
@vladikcomper vladikcomper added this to the MD-Debugger 2.6 milestone Oct 12, 2024
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

Successfully merging this pull request may close these issues.

1 participant