New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 692897 link

Starred by 7 users

Issue metadata

Status: Assigned
Owner:
Last visit 29 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Breakpoints are broken when one source is loaded by several iframes

Reported by hardh...@gmail.com, Feb 16 2017

Issue description

Chrome Version       : 56.0.2924.87
OS Version: 10.0
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari 5: OK
  Firefox 4.x: OK
     IE 7/8/9: OK

What steps will reproduce the problem?
1. Open any website with your js files
2. Open developer tools, navigate to Sources section and place a breakpoint in any of the file which will run on page load.
3. Refresh the page, the breakpoints list is empties on refresh.

What is the expected result?
The breakpoints should be retained and should stop at the breakpoint for debugging.

What happens instead of that?
The list of breakpoints is emptied.

Please provide any additional information below. Attach a screenshot if
possible.
The breakpoints are hit only if there is no refresh. If there is any code which will run without refresh, breakpoints there are hit.

UserAgentString: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36



 
Labels: Needs-Triage-M56

Comment 2 by hardh...@gmail.com, Feb 17 2017

I've tried to uninstall and reinstall too.
It works for the first time. Subsequent tries reproduce the issue. Haven't been able to debug and is a big problem for developers :(
Cc: krajshree@chromium.org
Components: Platform>DevTools
Labels: Needs-Feedback
Unable to reproduce the issue on Win-10 using chrome reported version #56.0.2924.87 and latest canary #58.0.3014.0.

Attached a screen cast for reference.

Following are the steps followed to reproduce the issue.
------------
1. Opened google search page.
2. Opened developer tools, navigated to Sources section and placed few breakpoints in a .js file.
3. Refreshed the page.
4. Observed that breakpoints retained and stopped at the breakpoint for debugging.

hardhikm@ - Could you please verify the screencast and please let us know if anything missed from our side.

Also could you please check this issue on latest canary #58.0.3014.0 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.

Thanks...!!
692897.mp4
5.9 MB View Download

Comment 4 by hardh...@gmail.com, Feb 17 2017

Thank you Rajshree for the investigation.

I am able to put breakpoints and debug on sites other than the ones hosted in my own machine.

Comment 5 by l...@chromium.org, Feb 17 2017

Owner: kozyatinskiy@chromium.org
Thank you for your report.  Could you please help us investigate by sending a small file to reproduce the behavior?  If you have a sample file/folder of code that you are willing to share, it would go a long way to help us investigate.

Comment 6 Deleted

I am having the same issue which I first noticed yesterday, despite it working just fine for the last year. 

It is also only happening for local files, the breakpoints in functions etc won't stick after a refresh. 

Setting a "first time parsing" breakpoint in global scope seems to pause execution on refresh at the appropriate line, but the breakpoint won't be listed under "breakpoints" and refreshing again leads to no pausing.


I thought I was going crazy because I couldn't find any similar issues when searching online, it's a huge relief to see someone else reporting the same issue here, it's not just me.


I am using Google Chrome Version 56.0.2924.87 on Windows 8.1 Enterprise x64


I tried reproducing this in a minimal way.

Adding a non-existent sourceMap seems to cause the breakpoints to clear on a refresh.

Look at the two attached files. Set a breakpoint on the local JS file, and notice that it is gone when you refresh.

If you remove the 
//# sourceMappingURL=/path/to/file.js.map
from the breakpoints_lost.js file then the breakpoints will remain on a refresh.

breakpoints_lost.html
202 bytes View Download
breakpoints_lost.js
104 bytes View Download
Unable to reproduce in 

Version 58.0.3019.0 (Official Build) canary (64-bit)

I tried both my breakpoints_lost.html/js example AND my real world scenario in the canary version above, and everything is working properly. The breakpoints remain after a refresh in both.

So it seems to have been fixed in canary at least.



I am also seeing this issue, but only on some pages. See attached gif.

OS: Windows 10
Chrome: 56.0.2924.87 (Official Build) (32-bit)

Steps to reproduce:
1. Navigate to https://360inspecthub.com/ims/resources/index.html
2. Open Chrome Dev Tools
3. Go to the Sources tab
4. Open file all.js
5. Place a breakpoint at any line. I tested lines 32, 314, and 95559.
6. Refresh the page by clicking the Refresh icon next to the back/forward arrows.
7. Continue past the breakpoint.

What I see: the breakpoint has been removed.
What I expect to see: the breakpoint should still be in place.

Restarting Windows did not resolve the issue.

I cannot reproduce the issue on other websites.

I installed Canary. Could not reproduce the issue on Canary. Breakpoint worked as expected.
58.0.3025.0 (Official Build) canary (64-bit)
screencap.gif
468 KB View Download
Issue is still happening for me on Chrome  59.0.3047.4

Windows 10

1. "Goto File" in Dev tools, loading my JS file (say X.js) into tab 
2. Place break point(s) 
3. Perform operation which opens an iFrame which also loads X.js
4. break points "lost" as X.js is loaded
5. Dev tools shows two X.js tabs open 
6. Recreate break points
7. "Breakpoints" panel shows break points created in VM??? X.js

The original X.js is identical to X,js loaded  by iframe 
Dev tools "disable cache while dev tools is open" option is set 
(but toggling the options does not seems to make a difference) 

  




Project Member

Comment 12 by sheriffbot@chromium.org, Mar 23 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "krajshree@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Assigned (was: Unconfirmed)
Summary: Breakpoints are broken when one source is loaded by several iframes (was: The breakpoints in Developer Tools -> Sources in JS files keep disappearing on refreshing)
#10 is fixed in current dev.
#11 is another issue and not fixed yet.
Owner: kozy@chromium.org

Comment 15 by kozy@chromium.org, Oct 20 2017

Cc: kozy@chromium.org
 Issue 697868  has been merged into this issue.

Comment 16 by kozy@chromium.org, Dec 4 2017

Owner: lushnikov@chromium.org

Sign in to add a comment