https://github.com/sofish/stacktrace.js
record js stack trace
https://github.com/sofish/stacktrace.js
Last synced: over 1 year ago
JSON representation
record js stack trace
- Host: GitHub
- URL: https://github.com/sofish/stacktrace.js
- Owner: sofish
- Created: 2012-12-18T07:27:59.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-12-18T07:29:22.000Z (over 13 years ago)
- Last Synced: 2025-04-23T16:04:34.614Z (over 1 year ago)
- Language: JavaScript
- Size: 90.8 KB
- Stars: 52
- Watchers: 11
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## usage:
__1.__ Embeb __stacktrace.js__ file before the end of the `head` tag.
```html
```
__2.__ Then, you can get an array everywhere whatever(whenever) u wnat. it named `ErrorTrace`.
```js
alert(ErrorTrace.join('\n\n'));
```
__3.__ if a `url` is specific, the error will automaticlly sent to the url using a `post` method.