Skip to main content
DevTools24

堆栈跟踪美化器

解析和格式化来自 JavaScript、Python、Java 和 Go 的堆栈跟踪。提取文件路径和行号。

Supported Formats:
  • • JavaScript/Node.js (V8 format)
  • • Firefox/Safari stack traces
  • • Python tracebacks
  • • Java stack traces
  • • Go panic stack traces

Stack Traces - 技术详情

Stack traces show the call stack at the point where an error occurred. Each frame includes the function name, file path, and line number. Different languages have different formats: JavaScript uses 'at', Python uses 'File', Java uses 'at package.Class.method'.

命令行替代方案

// JavaScript stack trace\nError: Something went wrong\n    at doSomething (app.js:10:5)\n    at main (app.js:20:3)