pike.git/
CHANGES
Branch:
Tag:
Non-build tags
All tags
No tags
2017-06-28
2017-06-28 11:54:43 by Stephen R. van den Berg <srb@cuci.nl>
2d3025c8164f6b24fc707d7e6ec7f6aef7e0e761 (
31
lines) (+
30
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
Document Debug.Peek feature.
80:
during the same transaction. Flush out unseen error messages upon connection close to stderr.
+
o Debug.Peek
+
+
Allows for interactive debugging and live data structure inspection
+
in both single- and multi-threaded programs.
+
+
Example:
+
In the program you'd like to inspect, insert the following one-liner:
+
Debug.Peek("/tmp/test.pike");
+
+
Then start the program and keep it running.
+
Next you create a /tmp/test.pike with the following content:
+
void create() {
+
werror("Only once per modification of test.pike\n");
+
}
+
+
int main() {
+
werror("This will run every iteration\n");
+
werror("By returning 1 here, we disable the stacktrace dumps\n");
+
return 0;
+
}
+
+
void destroy() {
+
werror("destroy() runs just as often as create()\n");
+
}
+
+
Whenever you edit /tmp/test.pike, it will automatically reload
+
the file.
+
Bug fixes ---------