• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

10.5 library(threadutil): Interactive thread utilities
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Multithreaded applications
        • library(threadutil): Interactive thread utilities
          • threads/0
          • join_threads/0
          • with_stopped_threads/2
          • thread_has_console/0
          • attach_console/0
          • attach_console/1
          • tspy/1
          • tspy/2
          • tdebug/0
          • tdebug/1
          • tnodebug/0
          • tnodebug/1
          • tbacktrace/1
          • tbacktrace/2
          • tprofile/1
          • thread_alias/1
    • Packages
Availability::- use_module(library(threadutil)).(can be autoloaded)
Source[det]tbacktrace(+Thread)
[det]tbacktrace(+Thread, +Options)
Print a backtrace for Thread to the stream user_error of the calling thread. This is achieved by inserting an interrupt into Thread using call_in_thread/2. Options:
depth(+MaxFrames)
Number of stack frames to show. Default is the current Prolog flag backtrace_depth or 20.

Other options are passed to get_prolog_backtrace/3.

bug
call_in_thread/2 may not process the event.
ClioPatria (version V3.1.1-59-g7b9a7a3)