Debugger - Breakpoints not working with source maps
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(firefox57 fix-optional)
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fix-optional |
People
(Reporter: jithin1987, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
| Reporter | ||
Comment 1•8 years ago
|
||
| Reporter | ||
Comment 2•8 years ago
|
||
Updated•8 years ago
|
Comment 3•8 years ago
|
||
Updated•8 years ago
|
| Reporter | ||
Comment 4•8 years ago
|
||
Updated•7 years ago
|
Comment 5•6 years ago
|
||
Hey, we've made a lot of improvements to source maps lately. Would you mind re-testing?
Updated•6 years ago
|
I have got the same issue.
On page http://bit.ly/2Sjb6Et
Firefox developer edition 66.0b5.
You have to enable responsive mode and set device for example iphone6/7/8.
Minified file: /wp-content/themes/szablon/js/scripts.min.js
Original file: /wp-content/themes/szablon/js/scripts.js
There is section to detect if the #product-content container is in vieport area on window scroll event. Lines from 202 to 235.
I want watch isInViewportDetect variable.
I set two breakpoints.
First on line 213: if ( productContent.length > 0 && isMobile.any === true ) {
Second on line 221: if ( isInViewportDetect === true && inviewport === false ) {
First problem is, the developer tool not show pretty format icon on minified file. OK, for this is map file. But developer tools, not use them to recognize which file should be use to debuging (I think). In any case devtools definitely does not use the file scripts.js
Because if I set breakepoints into scripts.js file, and scroll window and try click F8 button to resume, developer tools open jquery-3.3.1.min.js file, and never go to the appropriate lines of code in the file scripts.js or part of code into scripts.min.js file.
You can test it on Google Chrome dev tool, it works correctly there.
Comment 8•6 years ago
•
|
||
First problem is, the developer tool not show pretty format icon on minified file. OK,
I can see this issue on my machine too.
Because if I set breakepoints into scripts.js file, and scroll window and try click F8 button to resume, developer tools open jquery-3.3.1.min.js file, and never go to the appropriate lines of code in the file scripts.js or part of code into scripts.min.js file.
I can't reproduce this behavior. My STR:
- Load https://www.tcmeble.pl/produkty/giotto/
- Create a breakpoint at line 212 and 216
- Reload the page
- Break on line 212
- Resume
- The debugger properly breaks on line 216
Is there anything wrong with my STR?
Can you please verify?
Honza
Comment 9•6 years ago
|
||
Honza, which file could you not pretty-print? Perhaps we should close this bug and open a follow up for pretty printing?
Updated•6 years ago
|
Comment 10•6 years ago
|
||
(In reply to Jason Laster [:jlast] from comment #9)
Honza, which file could you not pretty-print? Perhaps we should close this bug and open a follow up for pretty printing?
Done, bug 1555307
Closing this one since I can't reproduce it and there is no response for my NI.
Honza
Description
•