Closed Bug 1033331 Opened 11 years ago Closed 11 years ago

DebuggerView.setEditorLocation: Add a way to go to non-prettified source line in prettified source

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1045237

People

(Reporter: miker, Unassigned)

Details

At the moment we use: DebuggerView.setEditorLocation(uri, line, {noDebug: true}).then(() => { ... } To open a url in the debugger. If line comes from a non-prettified source and the source has since been prettified we still go to the old source line. It would be great if we had the option to correct the line number for prettified files. Something like: DebuggerView.setEditorLocation(uri, line, {noDebug: true, correctLineIfPretty:true}).then(() => { ... }
I guess that when the prettify button is clicked we could also go to the line containing the code at the cursor position.
Where are you getting these locations? Why aren't they source mapped before they are sent across the RDP? We shouldn't ever have non-source mapped locations on the client if we are using source maps. At least, we shouldn't once bug 670002 is fixed.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.