thinkyhead

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

Usage

M111 [S<flags>]

Argument Description
[S<flags>]

Debug flag bits

Examples

Enable extra messages

M111 S38 ; LEVELING, ERRORS, INFO

Enable dry-run mode

M111 S8

Enable everything except dry-run mode

M111 S247 ; 255 - 8

Disable previously set extra debugging output.

M111 S0