SWI-Prolog Did You Know Did you know? print_term/2 can print large terms in readable format Search Documentation:
Predicate dde_current_connection/2