SWI-Prolog Did You Know Did you know? SWI-Prolog has a Graphic Debugger Search Documentation:
Conditional compilation and program transformation