Trigger trace after hitting semi-colon from console window?

I’m using: SWI-Prolog version 8.0.2.

Sometimes when I’m iterating through solutions in the console using the semi-colon key (’;’), I’d like to trigger the graphical debugger (i.e. - trigger a trace), right after I hit the semi-colon key, but before the solution is calculated. In other words, as if there were some magic other key that if pressed, fetched the next solution with trace on.

Is there a way to do this? I find myself iterating through solutions sometimes and at one particular solution, wanting to trace.

Yes, press t. In general, you can press h at the prompt to see what options are available.

3 Likes