[det]tbacktrace(+Thread)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_depthor 20.
Other options are passed to get_prolog_backtrace/3.
- bug
- call_in_thread/2 may not process the event.