New issue
Advanced search Search tips

Issue 809266 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Feb 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Breakpoints don't hit on some pages

Reported by dig...@hotmail.com, Feb 5 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Steps to reproduce the problem:
1. Install VS Code (I don't know how to reproduce this with Chrome DevTools)
2. Open the attached web page
3. Set breakpoints on line 5 and 6
4. Launch Chrome with the options already present on the launch.json file ("breakOnLoad": true, "breakOnLoadStrategy": "regex", are necessary to reproduce this issue)

What is the expected behavior?
The program should pause on line 5 when it hits the breakpoint

What went wrong?
The program skipped the breakpoint on line 5, and paused on line 6 instead

Did this work before? N/A 

Chrome version: 63.0.3239.132  Channel: stable
OS Version: 10.0
Flash Version: 

You can also see this behavior if you replace app.js with alternativ app.js in that case if you put breakpoints on all these lines:
var x = Math.random() + Math.random() + Math.random(); // Breakpoint doesn't hit here
var y = Math.random() + Math.random() + Math.random() + x; // Breakpoint doesn't hit here
print2("Boo!"); // Breakpoint doesn't hit here
print2("Hello world!"); // Breakpoint hits here

So the first 3 breakpoints are not actually hit.
 
BugRepro.zip
21.1 KB Download

Comment 1 by dig...@hotmail.com, Feb 5 2018

I attached vscode-chrome-debug - crdp.txt with the CRDP protocol dump.
Labels: Needs-Triage-M63
Owner: kozy@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 4 by dig...@hotmail.com, Feb 6 2018

This was my fault, I didn't fully understand how breakpoints work. I was assuming that a breakpoint on line 0 column 0 would stop when each script started to execute, but that is not true for scripts that start with a function declaration.
Closing issue.

Comment 5 by kozy@chromium.org, Feb 15 2018

Status: WontFix (was: Assigned)

Sign in to add a comment