effect-io-ai

Package: effect
Module: Console

Console.trace

Writes the current stack trace to the console to show how the current point in the code was reached.

Example (Writing stack traces)

import { Console, Effect } from "effect"

const program = Effect.gen(function*() {
  yield* Console.trace("Debug trace point")
  yield* Console.trace("Function call:", { functionName: "processData" })
})

Signature

declare const trace: (...args: ReadonlyArray<any>) => Effect.Effect<void>

Source

Since v2.0.0