SWI-Prolog Did You Know Did you know? don't use format/2 to print debug messages Search Documentation:
PL_abort_hook()