B Hackers corner

This appendix describes a number of predicates which enable the Prolog user to inspect the Prolog environment and manipulate (or even redefine) the debugger. They can be used as entry points for experiments with debugging tools for Prolog. The predicates described here should be handled with some care as it is easy to corrupt the consistency of the Prolog system by misusing them.

Section Index

B.1 Examining the Environment Stack
B.2 Intercepting the Tracer
B.3 Adding context to errors: prolog_exception_hook
B.4 Hooks using the exception predicate
B.5 Hooks for integrating libraries
B.6 Hooks for loading files
B.7 Readline Interaction