W3cubDocs

/Pony

Debug package

Provides facilities to create output to either STDOUT or STDERR that will only appear when the platform is debug configured. To create a binary with debug configured, pass the -d flag to ponyc when compiling e.g.:

ponyc -d

Example code

actor Main
  new create(env: Env) =>
    Debug.out("This will only be seen when configured for debug info")
    env.out.print("This will always be seen")

Public Types

© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/debug--index