It can be challenging to identify the root cause of a JavaScript error, especially if your browser is running minified code. If the StackTrace isn't pointing to a specific line of code causing an error, use this process to trace an issue back to its root in an unminified file.
Keep in mind that you can expedite this process by uploading a Source Map.
-
Open the issue's Developer tab. The minified file should be listed in the Stacktrace section.
[stacktrace]
-
Copy the file URL, and paste it in a new browser tab.
- Download the JavaScript and CSS Code Beautifier extension in the Chrome web store.
- Return to Noibu and copy the function name. It should be highlighted in blue above the file URL.
- Note: This field may not point to a clear function. If this is the case, examine the error message and try to extract a keyword.
- Note: This field may not point to a clear function. If this is the case, examine the error message and try to extract a keyword.
- Locate the function in the minified file.
- Return to the tab with the file and extension enabled, and press Beautify Now.
- Hit Cmd+F or Ctrl+F, and search for the function name.
- Compare the minified file to your non-minified files to locate the root of the problem.
- Return to the tab with the file and extension enabled, and press Beautify Now.
Learn more about Error Signatures.