The PDT lets you use all the built-in tracing facilities of SWI-Prolog. The SWI-Prolog tracer is invoked by calling
trace before the goal you want to trace. For instance, if you want to trace the execution of p(X,Y,Z) you call:
?- trace, p(X,Y,Z).
What you get as a result of such a call depends on the enabled tracing mode:
|GUI Tracer (recommended, enabled by default)||Console Tracing|
The GUI tracer is enabled / disabled by using the menu in the Prolog Console Toolbar.
Alternatively, the GUI tracer is enabled / disabled by typing
noguitracer in the Prolog Console: