10.5.1 Debugging threads
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Multithreaded applications
        • Thread support library(threadutil)
          • Debugging threads
            • attach_console/0
            • tdebug/1
            • tdebug/0
            • tnodebug/1
            • tnodebug/0
            • tspy/2
            • tspy/1
    • Packages
Availability::- use_module(library(threadutil)).(can be autoloaded)
Sourcetspy(:Spec, +ThreadId)
Set a spy point as spy/1 and enable the thread for debugging using tdebug/1. Note that a spy point is a global flag on a predicate that is visible from all threads. Spy points are honoured in all threads that are in debug mode and ignored in threads that are in nodebug mode.