This section describes various tools and techniques to help finding bugs in XPCE/Prolog code. Most of the tracing is done in the hosting Prolog language. XPCE provides additional tools for tracing the execution of certain methods, breaking on the implementation of a Prolog-defined method, finding and inspecting objects.