Closed Bug 961404 Opened 6 years ago Closed 6 years ago

line in console does not match line shown in debugger for some large JS files

Categories

(DevTools :: Debugger, defect)

x86_64
All
defect
Not set

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 952127

People

(Reporter: desiradaniel2007, Unassigned)

Details

Attachments

(2 files)

Web console errors in some large JS source files do not take you to the actual source of the error.

As a test case, please run web/viewser.js in my PDF.js fork https://github.com/dannydes/seniorreader.js. The issue does not seem to occur in Chromium.

Please let me know if you need any more tests, as I have encountered the bug before but cannot remember where. Apart from that, thanks for the awesomeness Firefox devtools are becoming!
I opened the PDF.js online demo from http://mozilla.github.io/pdf.js/web/viewer.html and what I see is that there is a message in the web console from viewer.js:3109. When I click the link to the debugger I see line 3109 in the editor (though not highlighted), but it's the automatically prettified source of viewer.js, not the one with the console.log statement.

Is that what you see in your fork? Does the pretty-print icon appear depressed, and does clicking it bring you back to the original source with console.log at 3109? If so, we need to tune the heuristics of automatic pretty-printing.
Component: Developer Tools → Developer Tools: Debugger
Attached image console.png
Attached image debugger.png
Matching line.

Test performed on latest UX builds after enabling pretty-print.
This looks the same as bug 952127.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 952127
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.