Skip to contentSlop Block

no-debug-output

Warning

Remove debug output: println!/dbg!, console.log/debugger, print/debugPrint, or System.out/printStackTrace.

fn run() {	println!("starting");Replace this print with a tracing macro}
fn run() {	let value = dbg!(compute());Replace this print with a tracing macro}
// ast-grep-ignore: no-debug-output-rust

How to fix

tracing::debug! and the other levels respect the subscriber's filters.