[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.
- Introduced in 8.1.21 (👉8dae7f0) tbacktrace/1,2: print the stack of another thread in the console for debugging purposes.