summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-03-08 17:05:39 +0100
committerJo-Philipp Wich <jo@mein.io>2021-03-08 17:11:49 +0100
commitc433a31360612dfd5b263cea5afa8e2c8fbcca5b (patch)
tree60c65fcd080a576118982dbce5fe095ebf0c4d42 /README.md
parent9ad9afb24d90cee643c35e254de0b1c734e44940 (diff)
README.md: document trace() function
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 527505a..d09ff27 100644
--- a/README.md
+++ b/README.md
@@ -1047,3 +1047,16 @@ system(["/usr/bin/date", "+%s"]); // prints the UNIX timestamp to stdou
// Apply a timeout
system("sleep 3 && echo 'Success'", 1000); // returns -9
```
+
+#### 6.53. `trace(level)`
+
+Enables or disables VM opcode tracing. When invoked with a positive non-zero
+level, opcode tracing is enabled and debug information is printed to stderr
+as the program is executed.
+
+Invoking `trace()` with zero as argument will turn off opcode tracing.
+
+Right now, any positive non-zero value will enable tracing while future
+implementation might provide different different verbosity levels or treat
+the level argument as bit mask to enable or disable individual debug
+elements.