debug.hlp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. The DEBUG Package: MLG/ 2 January 1982
  2. ------------------
  3. PSL has some built-in debugging functions, but for a more powerful set
  4. one must load a debug package (Load Debug; in RLISP, (Load Debug) in
  5. LISP). It is described in the manual. This is a brief introduction
  6. to some of the functions in the supplementary Debug package; for more
  7. information on built-in functions do Help Mini-Trace; in RLISP [(Help
  8. MiniTrace) in LISP].
  9. [This help-file needs a LOT of work!]
  10. The following functions (all EXPRs) are defined:
  11. (they each redefine the functions, saving an old definition)
  12. (TR F1 ... Fn) Cause TRace message to be printed on entry to
  13. and exit from calls to the functions F1 ... Fn.
  14. (UNTR F1 ... Fn) Restore original definition. Does UNTRST
  15. automatically if necessary.
  16. (TRST F1 ... Fn) This traces interpreted functions to a deeper
  17. level by redeining the body of the function so
  18. that all assignments made with SETQ are printed.
  19. Calling TRST automatically also calls TR.
  20. (UNTRST F1 ... Fn) Restores the original definition.
  21. In addition, the following macros are available in the resident
  22. MiniTrace package.
  23. (BR F1 ... Fn) Cause BREAK on entry and on EXIT from function,
  24. permitting arguments and results to be examined
  25. and modified.
  26. (UNBR F1 ... Fn) Restore original definitions of the functions
  27. F1 ... Fn.
  28. Fluids:
  29. -------
  30. TrSpace!* Controls indentation, may need to be reset to 0
  31. in "funny" cases.
  32. !*NoTrArgs Set to T to suppress printing of arguments of
  33. traced functions.