backtrace_goal_depth
, set to 2
initially, showing the
goal and toplevel of any argument.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)])
.