add optional offset argument to callStackGet()

Description

callStackGet() returns the stack trace, but many times if we use it from within an error handling function or framework, then those methods are added to the stack trace.

An optional offset argument (default 0, meaning start at the beginning) will allow to skip the first #offset# calls from the stack trace.

Also add optional argument maxFrames to limit the number of frames to return, with a default of 0 which means all frames.

Fixed

Assignee

Igal Sapir

Reporter

Igal Sapir

Labels

None

Fix versions

Priority

New