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:

  • 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.)

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