You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-18Lines changed: 20 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,8 @@ Generate, parse and enhance JavaScript stack traces in all browsers
5
5
6
6
Debug and profile your JavaScript with a [stack trace](http://en.wikipedia.org/wiki/Stack_trace) of function calls leading to an error (or any condition you specify).
7
7
8
-
stacktrace.js uses browsers' `Error.stack` mechanism to generate stack traces, parses them, enhances them with
9
-
[source maps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/) and uses
8
+
stacktrace.js uses browsers' `Error.stack` mechanism to generate stack traces, parses them, enhances them with
9
+
[source maps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/) and uses
Generate a backtrace from invocation point, then parse and enhance it.
82
82
83
83
**(Optional) options: Object**
84
-
**filter: Function([StackFrame](https://github.com/stacktracejs/stackframe) => Boolean)* - Only include stack entries matching for which `filter` returns `true`
84
+
**filter: Function([StackFrame](https://github.com/stacktracejs/stackframe) => Boolean)* - Only include stack entries matching for which `filter` returns `true`
Given an Error object, use [error-stack-parser](https://github.com/stacktracejs/error-stack-parser)
90
90
to parse it and enhance location information with [stacktrace-gps](https://github.com/stacktracejs/stacktrace-gps).
91
-
91
+
92
92
**error: Error**
93
93
94
94
**(Optional) options: Object**
95
95
**filter: Function([StackFrame](https://github.com/stacktracejs/stackframe) => Boolean)* - Only include stack entries matching for which `filter` returns `true`
Use [stack-generator](https://github.com/stacktracejs/stack-generator) to generate a backtrace by walking the `arguments.callee.caller` chain.
101
101
102
102
**(Optional) options: Object**
103
103
**filter: Function([StackFrame](https://github.com/stacktracejs/stackframe) => Boolean)* - Only include stack entries matching for which `filter` returns `true`
0 commit comments