DevTools Logo

Stack Trace Prettifier

Stack Trace Prettifier

Turn raw traces from five runtimes into a clean, deduplicated table or Markdown.

Runs in your browser
Try an example

Raw trace

Cleaned frames

No trace pasted yet

Load an example to see the parser in action.

Examples

Node TypeError

Input
at getUser (/app/src/users.js:42:18) + node:internal frame
Output
2 rows, internal frame hidden by default

Application frames appear first and the runtime frame is filtered.

5000 recursive frames

Input
5,001 identical V8 frames
Output
1 row with ×5000

The table stays readable while the original depth is preserved.

Java Caused by

Input
Exception + Caused by chain
Output
Frames tagged with their cause section

Nested exceptions remain distinguishable after cleanup.

About this tool

Stack Trace Prettifier turns a raw error trace into a readable table you can paste into a ticket. It recognizes Node/V8, SpiderMonkey and JavaScriptCore, Python tracebacks, Java stack traces with Caused by chains, and Go goroutine dumps.

Each frame is parsed into a function name, file, line and column where available, then classified as application code, a dependency or a runtime internal. Paths under node_modules, site-packages, vendor and GOROOT are treated as dependencies; node: modules, java.base, Python stdlib paths and V8 runtime frames are treated as internal.

Consecutive identical frames — the signature of recursive calls — collapse into one row with a multiplier badge. Short repeating cycles are detected as well. Filters hide internal or dependency frames, or show application frames only, while the header keeps the original count.

Three exports share the same frame list: a numbered Markdown list, a Markdown table with kind badges and a cleaned plain-text trace. Everything runs in the browser tab; the pasted trace is never uploaded and minified frames are not resolved.

What this tool does not do

  • Five grammar families are supported; traces from other runtimes fall back to an explanatory error state.
  • Source maps, symbolication and DWARF resolution are out of scope; locations are shown exactly as pasted.
  • Cycle detection covers short repeating tails; complex mutual recursion may only collapse consecutive duplicates.
  • Custom ignore patterns are simplified globs, not full regular expressions.
  • No trace is persisted or uploaded; reloading the page clears the input.

How to use this tool

  1. Paste a trace

    Drop a Node, Python, Java, Go or browser trace into the box, or load one of the bundled examples.

  2. Confirm the grammar

    The detected runtime appears above the table. Unknown formats produce an explanation rather than a blank result.

  3. Filter frames

    Hide internals, hide dependencies or switch to app-only mode. Add comma-separated ignore patterns such as /generated/*.ts.

  4. Find the root cause

    The root-cause card highlights the first application frame (last for Python tracebacks), which is usually the line to investigate.

  5. Copy an export

    Switch between Frames, Markdown and Plain text, then copy or download stack-trace.md for your issue report.

Use cases

Bug reports

Paste a Markdown table into GitHub or Jira so reviewers see the relevant frames first.

Support triage

Strip customer-specific dependency paths and isolate the application frame that failed.

Standup summaries

Turn a long production trace into a few readable lines without losing the error header.

Recursion diagnosis

Spot repeated frames instantly when a stack-overflow error hides the real call pattern.

Recognized frame shapes

RuntimeExample frame
Node / V8at fn (/app/a.js:12:8)
SpiderMonkey / JSCfn@https://site/app.js:3:9
PythonFile "/app/main.py", line 8, in run
Javaat com.app.Main.run(Main.java:24)
Gopkg.fn(0x4) + tab-indented /app/main.go:19

Java Caused by sections are preserved on their frames; recursion counts are shown in the × column and in Markdown exports.

Common mistakes

Mistake:Expecting source maps to be applied.

Fix:This tool formats frames only; minified locations stay minified. Resolve them with a source-map tool first.

Mistake:Hiding every dependency by default.

Fix:Hide dependencies is off initially because third-party frames are often the cause; toggle it when you need a narrower view.

Mistake:Reading the first frame as the root cause.

Fix:For V8 and Java the first application frame is usually relevant; for Python tracebacks the last application frame is highlighted.

Mistake:Pasting several traces at once.

Fix:Paste one trace per pass — the grammar detector expects one error header, and mixed traces can confuse frame counts.

Mistake:Assuming ignore patterns are full regexes.

Fix:They are simple glob-ish patterns: * matches within a path segment, ** matches across segments, ? matches one character.

Frequently asked questions

Which runtimes are detected automatically?

Node and V8 traces, SpiderMonkey and JavaScriptCore traces, Python tracebacks, Java stack traces (including Caused by chains) and Go goroutine dumps. The detector scores the first 40 non-empty lines against each grammar and shows the detected runtime above the table.

How is recursion collapsed?

Consecutive frames with the same function, file and line become one row with a ×count badge, so 5,000 recursive calls take one line. Short A,B,A,B cycles at the end of a trace are also detected and merged. Turn off cycle detection only if you need every repeated row preserved.

What counts as an internal frame?

Paths with node: internals, internal/, V8 runtime frames, java.base, Python stdlib locations, GOROOT and similar runtime markers. Dependencies are a separate kind: node_modules, site-packages, vendor, .m2, target/classes and gopkg.in. Internal frames are hidden by default; dependency frames are shown by default.

Are async and await frames handled?

Yes. V8 async frames keep their async prefix in the function name, and standalone async lines are associated with the following frame. The cleaned table shows them alongside synchronous frames.

Does it resolve minified code?

No. The tool formats and classifies the frames it receives; it does not apply source maps or fetch source files. Resolve minified stacks with a source-map tool first, then paste the readable trace here.

Which export should I use for an issue report?

Markdown is usually best: the list format resembles a cleaned stack while the table adds kind badges and recursion counts. Plain text keeps the familiar 'at fn (file:line:col)' shape for teams that prefer code blocks.

Can I ignore project-specific paths?

Yes. Enter comma-separated patterns in the Ignore patterns field. Patterns support * within a path segment, ** across segments and ? for a single character; matching frames are classified as internal and hidden when Hide internal is on.

Is my trace uploaded anywhere?

No. Parsing, filtering and export generation happen entirely in your browser tab. Nothing is sent to a server and the text is not saved after you leave the page.

References & standards