Print out variable content like graphical debugger does?

I’m using: SWI-Prolog version 8.0.2.

One of the many great features of the graphical debugger is the formatted variable dump. I’m referring to the pop-up window you see when you double-click on a variable in the variable pane, so you can see the variable’s contents in full. Is there a way to print out a variable from code that will be formatted just like the debugger’s pop-up window?

Look at print_term/2.

1 Like