Closed Bug 1175911 Opened 9 years ago Closed 5 years ago

Jumping to event handler source from "Inspector" tab doesn't jump to correct line when "Debugger" source is prettified

Categories

(DevTools :: Debugger, defect, P3)

40 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1578752

People

(Reporter: david.nonamedguy, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150511103818

Steps to reproduce:

Inspected DOM element and clicked on the little "ev" button to jump to see the event handler source. And then pressed the "Open in debugger" button. To note that the debugger has the "Prettify" button toggled on.


Actual results:

After pressing the "Open in debugger" button, it mistook the line it should have jumped to. For instance, the event handler code is effectively at line 10 (source is minified), but because I've pressed the "Prettify" button on the "Debugger" view, it jumps to line 10, while the real "prettified" code for the event handler is at line 100.


Expected results:

In the anecdotal example explained above, it should have jumped to line 100 (because the source is prettified) instead of line 10.
Component: Untriaged → Developer Tools
Maybe dupe of bug 952127 or bug 1045237.
Component: Developer Tools → Developer Tools: Debugger
Product: Firefox → DevTools
Priority: -- → P3
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.