🎉 WIN a Snapmaker U1 Printer! Enter FREE now

--debug

<level>
Progress & Debugging Orca SlicerBambu Studio

Set the log severity floor for the entire CLI run, with 0 (fatal) through 5 (trace) as named levels and any integer above 5 also mapping to trace; omitting the flag defaults to 2 (warning) via an explicit startup override, not the schema default of 1 (error), and there is no companion --logfile flag in Bambu Studio to redirect output to a file.

Details

Controls the minimum severity of log messages the slicer emits during a CLI run. The argument is a single integer, and the six named values map to standard log severity levels: 0 = fatal, 1 = error, 2 = warning, 3 = info, 4 = debug, 5 = trace. Setting --debug to a value installs a global severity filter; any message below that threshold is silently discarded, never written. Values of 5 and above all map to trace — the implementation uses a default branch in its level-to-severity switch, so no integer is out of range and none produces an error.

When --debug is absent entirely, the CLI defaults to 2 (warning). This is set explicitly in the startup code path — not derived from the option's declared schema default of 1 — so "no flag" and "--debug 1" produce different output: the former shows warnings and above, the latter shows only errors and fatals. Level 2 is appropriate for routine automation. Level 3 (info) adds slice-progress milestones and file-load confirmation. Levels 4 and 5 add internal engine diagnostics and are useful when a slice fails unexpectedly or produces wrong output and you need to trace which config keys were applied, which plates were processed, and where the engine diverged.

--debug controls verbosity only; it does not govern where log output is written. The output destination is determined by whatever log sink the slicer has registered, and in CLI mode no explicit console or file sink is configured by the startup code. In practice, log output goes to wherever the default log sink directs it; the source does not make this explicit.

Examples

Warnings and above
--debug 2

Watch out for

  • The CLI's effective default when `--debug` is omitted is `2` (warning), not `1` (error) as the option schema would suggest. The startup code overrides the schema default explicitly.
  • Values of `5` and above all map to trace; the switch has no explicit `case 5` — both `5` and any higher integer fall through to the `default` branch. There is no out-of-range error.
  • There is no `--logfile` flag in Bambu Studio. If you need to capture verbose CLI output, redirect the process output at the shell level rather than relying on a slicer-provided file-redirect flag.

Related flags

Sign up for free today

No credit card required. Connect unlimited printers and get production automation running in minutes.