Skip to content

Commit

Permalink
docs: add execution trace to README
Browse files Browse the repository at this point in the history
  • Loading branch information
obycode committed May 24, 2022
1 parent 0620df4 commit e8bf86e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,14 @@ Then at the REPL prompt, debug any expression:
At the debug prompt, use any of the commands described above, or use `help` to get the full help documentation.
#### Execution Trace
When in the console (`clarinet console`), the `::trace <expr>` command allows developers to execute an expression and print a trace of the execution, which can be very helpful for identifying problems with the contract.
This trace shows all function calls, both internal calls to private functions, and contract calls to other contracts. For each call, the parameters and return value are shown in the trace. Any events that are emitted are also shown in the trace.
![execution trace](docs/images/trace.png)
## Contributing
We welcome contributions to Clarinet! The following sections provide information on how to contribute.
Expand Down
Binary file added docs/images/trace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e8bf86e

Please sign in to comment.