M111 - Debug Level

hosts Report and optionally set the debug flags.


Marlin has several debug bits that can be set, in combination, to help configure, troubleshoot, and debug the firmware. Add up the debug bits you need:

Mask Name Description
1 ECHO Echo all commands sent to the parser.
2 INFO Print extra informational messages.
4 ERRORS Print extra error messages.
8 DRYRUN Don’t extrude, don’t save leveling data, etc.
16 COMMUNICATION Not currently used.
32 LEVELING Detailed messages for homing, probing, and leveling. (Requires DEBUG_LEVELING_FEATURE.)
64 Reserved Reserved for future usage
128 Reserved Reserved for future usage


M111 [S<flags>]



Debug flag bits