Did you know ... Search Documentation:
PL_prolog_debug()