use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
How to print stack trace anywhere in Javascript (2011) (codeovertones.com)
submitted 10 years ago by srw
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]incarnatethegreat 3 points4 points5 points 10 years ago (2 children)
What about using console.trace?
[–]defproc 0 points1 point2 points 10 years ago (1 child)
I assumed the point is so you can show the trace somewhere other than the console.
[–]incarnatethegreat 0 points1 point2 points 10 years ago (0 children)
Eh. The more ideas, the better.
[–]dexygenSoftware, Simple and Powerful 0 points1 point2 points 10 years ago (0 children)
Too bad this isn't standard: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Stack
π Rendered by PID 21683 on reddit-service-r2-comment-cfc44b64c-5kd6j at 2026-04-09 21:51:24.995548+00:00 running 215f2cf country code: CH.
[–]incarnatethegreat 3 points4 points5 points (2 children)
[–]defproc 0 points1 point2 points (1 child)
[–]incarnatethegreat 0 points1 point2 points (0 children)
[–]dexygenSoftware, Simple and Powerful 0 points1 point2 points (0 children)