Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 662 Bytes

Tracing.md

File metadata and controls

19 lines (14 loc) · 662 Bytes
imports

module Plutarch.Docs.Tracing () where 
import Plutarch.Prelude ()

Tracing

You can use the functions ptrace, ptraceError, ptraceIfFalse, ptraceIfTrue (from Plutarch.Trace or Plutarch.Prelude) for tracing. These behave similarly to the ones you're used to from PlutusTx.

If you have the development flag for plutarch turned on - you'll see the trace messages appear in the trace log during script evaluation. When not in development mode - these functions basically do nothing.