trace

object trace extends TraceSyntax

Exposes the

 trace("question") { op } 

syntax.

Traced operations will print indented messages if enabled. Tracing depends on Config.tracingEnabled and dotty.tools.dotc.config.ScalaSettings.Ylog. Tracing can be forced by replacing trace with trace.force or trace.log (see below).

trace("question") { op } }}}

Traced operations will print indented messages if enabled. Tracing depends on Config.tracingEnabled and dotty.tools.dotc.config.ScalaSettings.Ylog. Tracing can be forced by replacing trace with trace.force or trace.log (see below).

class Object
trait Matchable
class Any
trace.type

Type members

Classlikes

object force extends TraceSyntax
object log extends TraceSyntax

Value members

Concrete methods

inline def isEnabled: Boolean

Inherited methods

inline def apply[T](inline question: String)(inline op: T)(using Context): T
Inherited from:
TraceSyntax
inline def apply[T](inline question: String, inline show: Boolean)(inline op: T)(using Context): T
Inherited from:
TraceSyntax
inline def apply[T](inline question: String, inline printer: Printer)(inline op: T)(using Context): T
Inherited from:
TraceSyntax
inline def apply[T](inline question: String, inline printer: Printer, inline show: Boolean)(inline op: T)(using Context): T
Inherited from:
TraceSyntax
inline def apply[T, U >: T](inline question: String, inline printer: Printer, inline showOp: U => String)(inline op: T)(using Context): T
Inherited from:
TraceSyntax
inline def conditionally[TC](inline cond: Boolean, inline question: String, inline show: Boolean)(inline op: TC)(using Context): TC
Inherited from:
TraceSyntax
inline def onDebug[TD](inline question: String)(inline op: TD)(using Context): TD
Inherited from:
TraceSyntax