Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Improve debugging #4

Open
networkfusion opened this issue Sep 1, 2016 · 1 comment
Open

Improve debugging #4

networkfusion opened this issue Sep 1, 2016 · 1 comment
Milestone

Comments

@networkfusion
Copy link
Owner

To ease debugging, the solution should use a debugging macro in the makefile rather than only a flag contained in the code. debug.h and ifdef's should then be used so that debug code is removed when a release is created. see http://stackoverflow.com/questions/1440468/set-debugging-macro-conditionally-with-make and http://stackoverflow.com/questions/1079832/how-can-i-configure-my-makefile-for-debug-and-release-builds

Also it should be possible to support debugging over USB in some way.

@networkfusion
Copy link
Owner Author

this article provides a good overview of how to do it properly: http://stackoverflow.com/questions/1644868/c-define-macro-for-debug-printing

USB redirect could be done by providing an additional case statement 'D' and an escape key. the USB rom loader would have to take this into account.

@networkfusion networkfusion modified the milestone: 0.8.6.1.1 Sep 9, 2016
@networkfusion networkfusion modified the milestones: 0.1.8.6.1.3, 0.2.0 Oct 27, 2017
bbsan2k pushed a commit to bbsan2k/altra64 that referenced this issue Sep 9, 2022
bbsan2k pushed a commit to bbsan2k/altra64 that referenced this issue Sep 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant