| Did you know ... | Search Documentation: | 
|  | Predicate get_prolog_backtrace/2 | 
backtrace_goal_depth, set to 3 initially, showing the
goal and toplevel of any argument.Clause+PC or as a location term that
does not use clause references, allowing the exception to
be printed safely in a different context.| Frame | - is the frame to start from. See prolog_current_frame/1. | 
| MaxDepth | - defines the maximum number of frames returned. | 
get_prolog_backtrace(MaxDepth, Backtrace,
[frame(Frame)]).