- LuzineDebug
- Tools
- Stack trace formatter
Stack trace formatter: find the line in your code
Formats a stack trace (JS, Python, PHP, Java, .NET, Go), separates your code from libraries and points to the line to open first. Everything happens in your browser.
What the formatter does
- It recognises the format (V8/Node, Firefox, Python, PHP/Laravel, Java/Kotlin, .NET, Go, Ruby) and extracts function, file and line from each frame.
- It marks as library what comes from
node_modules,vendor,site-packages, the JDK, the framework or the runtime, and folds those frames. - It points to the frame of your code to open first and isolates “Caused by” and chained exceptions.
Frequently asked questions
Which line of a stack trace should I start with?
With the first line that points to your code, not to a library. In JavaScript, PHP, Java and C# the most recent frame is at the top; in Python it is at the bottom (“most recent call last”). The tool finds it and shows it first.
What does “Caused by” mean in a Java trace?
The exception shown at the top wraps another one. The real cause is the last “Caused by”: that is where to look. “… 12 more” means the following frames are the same as in the exception above.
Is my trace sent anywhere?
No, parsing runs in your browser. A trace may contain paths, user names or data: review the cleaned version before sharing it.
Errors this tool helps solve
Fix "TypeError: x is not a function" in JavaScript
You are calling with () a value that is not a function: here data.map does not exist because data is not an array (often an object…
JavaScript & Node.js Beginner 10 min Uncaught ReferenceError: $ is not definedFix "ReferenceError: x is not defined" ($, require, process, window)
The name you use does not exist in any reachable scope: a variable never declared, a script not loaded yet (jQuery $), a Node.js g…
JavaScript & Node.js Beginner 10 min ResizeObserver loop completed with undelivered notifications.Fix "ResizeObserver loop completed with undelivered notifications"
A ResizeObserver callback changed the size of an observed element during the same frame, and the browser postponed the remaining n…
Web, HTML & CSS Intermediate 10 min Error: Call to a member function update() on nullFix "Call to a member function … on null" in PHP and Laravel
You are calling a method (->update()) on a variable that is null. In Laravel it is almost always a query that found nothing (first…
PHP & Laravel Beginner 10 min error: subprocess-exited-with-errorFix "error: subprocess-exited-with-error" and "Failed building wheel" with pip
pip did not find a prebuilt wheel for your Python version, OS or CPU, so it tried to compile the package from source and the build…
Python Intermediate 20 min Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.length()"…Fix "java.lang.NullPointerException: Cannot invoke … because … is null" in Java
You call a method or read a field on a reference that is null. Since Java 14, the message tells you exactly which expression was n…
Java, Kotlin & .NET Beginner 10 min FAILURE: Build failed with an exception.Fix "Could not resolve all files for configuration" and "Could not find" in Gradle
Gradle could not find a dependency in any of the declared repositories. Check that the group:name:version coordinates really exist…
Java, Kotlin & .NET Intermediate 15 min Exception in thread "main" java.lang.OutOfMemoryError: Java heap spaceFix "java.lang.OutOfMemoryError: Java heap space" (and GC overhead limit exceeded)
The JVM has no room left in its heap to create an object. If the need is legitimate, raise the maximum size with -Xmx (or org.grad…
Java, Kotlin & .NET Advanced 30 minOther tools
Error finder
Paste an error message or a log: the tool recognises the error and opens the right fix.
JSON validator
Validate, format and minify JSON, with the exact line and column of the error.
Regex tester
Test a regular expression live: highlighted matches, groups, replacement.
JWT decoder
Decode a JWT: header, payload, readable expiry dates and whether the token has expired.
HTTP status codes
All the common HTTP codes (401, 403, 404, 419, 429, 500, 502…): meaning, causes and what to do.
Text diff
Compare two versions line by line: additions, deletions, invisible whitespace.
Base64 & URL encoder
Encode and decode Base64 (standard and URL-safe), URL, HTML entities and Unicode escapes, with proper UTF-8 handling.
Hash generator
Computes MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC of a text or file, and compares with an expected hash.
Timestamp converter
Converts a Unix timestamp (seconds, milliseconds, microseconds) to a readable date in any time zone, and back.
Cron explainer
Turns a cron expression into a plain sentence, lists the next runs and flags the traps (day of month AND day of week, time zone).
YAML validator
Validates YAML (docker-compose, GitHub Actions, Kubernetes), shows the faulty line and tabs, and converts it to JSON.
Chmod calculator
Tick the permissions and get 755 or rwxr-xr-x (and back), with the ready-to-copy command and safe presets by use case.
cURL converter
Paste a cURL command (DevTools “Copy as cURL”): get the fetch, axios, Node, PHP (Laravel Http or curl) or Python requests code.