| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 23 Dec 2025 01:15:24 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100620175711
location: https://web.archive.org/web/20100620175711/https://github.com/emwendelin/javascript-stacktrace
server-timing: captures_list;dur=1.150417, exclusion.robots;dur=0.106747, exclusion.robots.policy;dur=0.088916, esindex;dur=0.015722, cdx.remote;dur=24.590425, LoadShardBlock;dur=169.285745, PetaboxLoader3.datanode;dur=55.321962, PetaboxLoader3.resolve;dur=68.239624
x-app-server: wwwb-app214-dc8
x-ts: 302
x-tr: 249
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app214; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Tue, 23 Dec 2025 01:15:25 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 20 Jun 2010 17:57:11 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "cf9fbcf9f09231992342d788f65fe7fd"
x-archive-orig-x-runtime: 54ms
x-archive-orig-content-length: 25622
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 20 Jun 2010 17:57:11 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_16_20100620130350_crawl101-c/51_16_20100620175558_crawl101.arc.gz
server-timing: captures_list;dur=0.606419, exclusion.robots;dur=0.023138, exclusion.robots.policy;dur=0.009960, esindex;dur=0.012368, cdx.remote;dur=6.064129, LoadShardBlock;dur=274.392146, PetaboxLoader3.datanode;dur=195.532103, PetaboxLoader3.resolve;dur=158.228647, load_resource;dur=131.850301
x-app-server: wwwb-app214-dc8
x-ts: 200
x-tr: 479
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
emwendelin's javascript-stacktrace at master - GitHub
emwendelin / javascript-stacktrace
- Source
- Commits
- Network (4)
- Issues (2)
- Downloads (2)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
| name | age | message | |
|---|---|---|---|
| |
LICENSE.txt | Tue Jan 26 22:44:44 -0800 2010 | Fixed behavior for Opera [emwendelin] |
| |
README.md | Mon May 17 07:31:43 -0700 2010 | Fixing typos [emwendelin] |
| |
qunit.css | Fri Jan 22 14:12:57 -0800 2010 | Updated to jQuery 1.4 and QUnit [emwendelin] |
| |
qunit.js | Fri Jan 22 14:12:57 -0800 2010 | Updated to jQuery 1.4 and QUnit [emwendelin] |
| |
stacktrace-bookmarklet.js | Sat May 29 10:52:54 -0700 2010 | Adding close link [emwendelin] |
| |
stacktrace.js | Sat May 29 11:34:54 -0700 2010 | Minor code cleanup and additional documentation [emwendelin] |
| |
test-stacktrace.html | Tue Jan 26 22:49:30 -0800 2010 | Removing jQuery since new QUnit makes it unnece... [emwendelin] |
| |
test-stacktrace.js | Mon Feb 01 11:07:54 -0800 2010 | Updated Chrome tests and adapted to new mode me... [emwendelin] |
README.md
What is Javascript Stacktrace?
A Javascript tool that allows you to debug your Javascript by giving you a stack trace of function calls leading to an error (or any condition you specify)
How do I use Javascript Stacktrace?
Just include stacktrace.js file on your page, and call it like so:
<script type="text/javascript" src="path/to/stacktrace.js" />
<script type="text/javascript">
... your code ...
if (errorCondition) {
var trace = printStackTrace();
//Output however you want!
alert(trace.join('\n\n'));
}
... more code of yours ...
</script>
New! bookmarklet available on the project home page.
You can also pass in your own Error to get a stacktrace:
<script type="text/javascript">
var lastError;
try {
// error producing code
} catch(e) {
lastError = e;
// do something else with error
}
// Returns stacktrace from lastError!
printStackTrace({e: lastError});
</script>
Some people recommend just assigning it to window.onerror:
window.onerror = function() {
alert(printStackTrace().join('\n\n'));
}
What browsers does Javascript Stacktrace support?
It is currently tested and working on:
- Firefox (and Iceweasel) 0.9+
- Google Chrome 1+
- Safari 3.0+
- IE 5.5+
- Konqueror 3.5+
- Flock 1.0+
- SeaMonkey 1.0+
- K-Meleon 1.5.3+
- Epiphany 2.28.0+
- Iceape 1.1+
Working (readable, valid stack trace) but not perfectly tested on:
- Opera 7+

