debugger-frame-number

debugger-frame-number is a compiled Lisp function in `debug.el'.

(debugger-frame-number &optional SKIP-BASE)

Return number of frames in backtrace before the one point points at.