Check the Bug hunting toolbox.
SWI-Prolog Debugger FSA.pdf (682.7 KB)
How to get X-windows working with WSL 2 for things such as gtrace
Don’t forget the source code on GitHub
test_gtrace.pl
gui_tracer.pl
Be warned that the Discourse search does not return results in hidden sections such as personal notes in this post.