Skip to content

Commit dc65c9f

Browse files
authored
Add debug hints to show up in online editor (#614)
1 parent a394c3a commit dc65c9f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

exercises/shared/.docs/debug.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Debug
2+
3+
When a test fails, a message is displayed describing what went wrong and for which input.
4+
5+
Printing values and contents of variables can also help with understanding what happens.
6+
PHP can print values using:
7+
8+
- `echo 'Debug message';` to output a string of your choice
9+
- `var_dump($variable);` to get more insight into a value, e.g. the type PHP sees

0 commit comments

Comments
 (0)