We would like all functions to have the ability to present debug messages to the user. If it's a gcode_macro the command will return debug messages via DEBUG=[0|1] or if the global DEBUG flag has been set. All macros will also pass their DEBUG param down to the next macros if we are only debugging a single macro.
Delayed macros can only be debugged via the global debug flag.
Motivation and Context
Debugging is a good thing
How has this been tested?
Screenshots (if appropriate):
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist:
[ ] I have read the CONTRIBUTING document.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
We would like all functions to have the ability to present debug messages to the user. If it's a
gcode_macro
the command will return debug messages viaDEBUG=[0|1]
or if the global DEBUG flag has been set. All macros will also pass their DEBUG param down to the next macros if we are only debugging a single macro.Delayed macros can only be debugged via the global debug flag.
Motivation and Context
Debugging is a good thing
How has this been tested?
Screenshots (if appropriate):
Types of changes
Checklist: