Back to the Gcode Dictionary
M111: Set Debug Level
- Pnn Debug module number
- Sn Debug on (S1), off (S0)
- M111 P1 S1 ; enable debugging for module 1
Enable or disable debugging features for the module number specified by the P parameter. M111 without parameters lists all the modules, their numbers, and whether debugging is enabl d for each..
Note, print quality may be affected when debug output is enabled because of the volume of data sent to USB. Debug output should normally be used only for debugging firmware, or when instructed to help with diagnosis of particular issues.
The details of what debugging information is output when debugging is enabled varies from one firmware revision to another, so it is not specified here.