Skip to content

Commit

Permalink
Add debug.md (#490)
Browse files Browse the repository at this point in the history
* Add debug.md

* Update exercises/shared/.docs/debug.md

* Update exercises/shared/.docs/debug.md

---------

Co-authored-by: Jeremy Walker <jez.walker@gmail.com>
  • Loading branch information
israelss and iHiD authored Jun 7, 2024
1 parent 041d742 commit b321e3a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions exercises/shared/.docs/debug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Debug

When a test fails, a message is displayed describing what went wrong and for which input.
You can inspect arbitrary values in your program by passing them to the `debug` method (available at `exercism/test_runner`).
This will capture the values and show you the output.


```gleam
import exercism/test_runner.{ debug }
let value: String = "test"
debug("The value is " <> value)
```

0 comments on commit b321e3a

Please sign in to comment.