Function Error.getStackTrace
Get a stack trace when an error occurs.
-
Syntax
String Error.getStackTrace(Function f , Error e , Number v )
Provides a stack trace when an error is thrown. Note that Safari on Windows does not provide a way for creating a stack trace. -
Parameters
Function f- The function which raised the error
Error e- The error object which was thrown
Number v- The verbosity of the stack trace report. Only relevant for IE
Verbosity: 0 - Only function names are reported in trace
Verbosity: 1 - Arguments name:value pairs and function body of anonymous functions
Verbosity: 2 - Function body of non-anonymous functions as well
Verbosity: 3 - Enumeration of unknown arguments
Verbosity: 4 - Include native functions in enumeration og objects (a lot of info)
- Return value A string describing the stacktrace if available.
-
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
This function has dependencies and will not work stand-alone. Use the download button above instead of copy/paste.
