# Print out variable content like graphical debugger does?

**URL:** <https://swi-prolog.discourse.group/t/print-out-variable-content-like-graphical-debugger-does/918>\
**Category:** Help!\
**Created:** [July 4, 2019, 2:45am UTC](https://swi-prolog.discourse.group/t/print-out-variable-content-like-graphical-debugger-does/918 "2019-07-04T02:45:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prodog](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@prodog](https://swi-prolog.discourse.group/u/prodog)\
**Post date:** [July 4, 2019, 2:45am UTC](https://swi-prolog.discourse.group/t/print-out-variable-content-like-graphical-debugger-does/918/1 "2019-07-04T02:45:11Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![swi](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@swi](https://swi-prolog.discourse.group/u/swi)\
**Post date:** [July 4, 2019, 3:02am UTC](https://swi-prolog.discourse.group/t/print-out-variable-content-like-graphical-debugger-does/918/2 "2019-07-04T03:02:05Z")

</div>

Look at [print\_term/2](https://www.swi-prolog.org/pldoc/doc_for?object=prolog_pretty_print%3Aprint_term/2).
