Xo is experimental. The source code is not public yet; it will be soon. Read the release notes
Menu · XO0901

Docs

XO0901: `dbg(...)` left in code

warning · reported by the vet

Reported by xo vet as a warning. dbg(expr) prints the expression source and its Debug value and returns the value, which is useful while debugging but noise in committed code; xo build --ci rejects it. Remove the call and keep the expression, or log through std/log if the output is meant to stay. See core 11.4.

Example

fn area(w: Int, h: Int) -> Int {
  dbg(w * h)
}

Fix

fn area(w: Int, h: Int) -> Int {
  w * h
}

Run xo explain XO0901 for this text in a terminal, or see section 10.6 of the specification.