Closed Bug 1326714 Opened 7 years ago Closed 5 years ago

Debugger always highlights the 1st line during debugging, if script src was deleted

Categories

(DevTools :: Debugger, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: arni2033, Unassigned)

Details

Attachments

(1 file)

>>>   My Info:   Win7_64, Nightly 49, 32bit, ID 20160526082509
STR_1:
1. Open url [1]
2. Open debugger
3. Prettify the script
4. Add breaking on "click" event
5. Click on page
6. Click "Step in" several times to debug the script

AR:  Debugger always highlights the 1st line as current
ER:  Debugger should highlight the actual line during debugging


[1]
data:text/html,<script src="data:text/javascript,
onclick=function(){F()};
function F(){console.log(G())};
function G(){return window.val};
window.val=3;
"></script>
<script>
document.querySelector('script').removeAttribute('src');
</script>
No longer blocks: 1277113
Component: Untriaged → Developer Tools: Canvas Debugger
Component: Developer Tools: Canvas Debugger → Developer Tools: Debugger
Prettify is not always successful for this case. Please provide a working version if you think it may be a regression.
Has STR: --- → yes
Can't reproduce because I can't prettify this, which is slightly concerning but not quite surprising as this is quite a convoluted example.

To help investigate the issue of the first line being highlighted if a script is deleted, it would be helpful to have an example that doesn't confuse the debugger and can actually be prettified.
Severity: normal → minor
Status: NEW → UNCONFIRMED
Ever confirmed: false
Priority: -- → P5
Product: Firefox → DevTools

THis was fixed.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: