Debugger doesn't scroll to the right line when clicking errors in the console

NEW
Unassigned

Status

()

Firefox
Developer Tools: Debugger
P2
normal
6 months ago
4 months ago

People

(Reporter: bz, Unassigned)

Tracking

unspecified
Points:
---

Firefox Tracking Flags

(firefox-esr52 fix-optional)

Details

Attachments

(2 attachments)

BUILD: 2017-07-21 Mac Nightly.

STEPS TO REPRODUCE:

1)  Load the testcase I'm about to attach in a clean profile.
2)  Cmd+Option+K to open the console.
3)  Click the link on the "ReferenceError" line (linking to line 1201 of the JS file).

ACTUAL RESULTS: Debugger opens, loads JS file, does NOT scroll to the line.

EXPECTED RESULTS: Scroll to the line and select it.  This works fine with the old debugger frontend.

ADDITIONAL INFORMATION: If the debugger is already open when loading the testcase, then scrolling to the line does work, but it doesn't get highlighted (unlike with the old debugger frontend).

This bug makes debugging errors really annoying.
I'm getting the correct behaviour when I click the console error a second time.  i.e. once the debugger is open and has the file loaded.

But on first / fresh load it doesn't work correctly.

Comment 5

6 months ago
This fixes the issue with scrolling to the correct location: https://github.com/devtools-html/debugger.html/pull/3431

There's a secondary question of showing view-source or the debugger. This question is server side as the debugger server needs to get the source synchronously when asked.

Updated

4 months ago
Severity: major → normal
Priority: -- → P2

Comment 6

4 months ago
I tested it and am still seeing the issue where the debugger does not scroll to the correct line

Updated

4 months ago
status-firefox-esr52: --- → fix-optional
You need to log in before you can comment on or make changes to this bug.