Branch: Tag:

2017-06-28

2017-06-28 11:54:43 by Stephen R. van den Berg <srb@cuci.nl>

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   ---------