Debugger pauses on the last line comment on stepping over
Reported by
raghavka...@gmail.com,
Apr 24 2018
|
||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299 Steps to reproduce the problem: 1. Create a javascript file with a comment on the last line. 2. Launch the script in Chrome browser and open the developer tools by pressing f12. 3. Open the script and put a breakpoint on the last non-comment line. 4. Refresh. 5. When the breakpoint is hit, press step over button. 6. Note that the script pauses at the comment line. What is the expected behavior? The script should not pause and end the execution since the last line is a comment. What went wrong? The engine is unable to identify that the last line is a comment and pauses the script execution. Did this work before? N/A Chrome version: 58.0.3029.110 Channel: n/a OS Version: 10.0 Flash Version: This doesn't happen when we place comment lines in the middle of the script.
,
Apr 25 2018
,
Apr 26 2018
Unable to reproduce this issue on reported version 66.0.3359.117 using Windows 10 and Ubuntu 14.04. Added comment line at EOF , breakpoint last un commented line, pressed step over button. Attaching screencast for reference. @Reporter: Please check the issue and let us know if we miss anything. Please provide sample file to test this issue, and video in reproducing this issue. This info would help in further triaging of the issue. Thanks!
,
Apr 26 2018
Attaching the video file showing the issue. The code of the file reads:
function abc() {
var a = 1;
}
abc();
// Comment
abc();
// Another comment
,
Apr 26 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 9 2018
raghavkatyal1602@ - Could you please provide a sample test file or url to test the issue from TE-end. This will help us in triaging the issue further. Thanks...!!
,
May 9 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 10 2018
,
May 11 2018
Attaching the file from the repro video. Note: I am not able to repro this consistently.
,
May 11 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 12 2018
,
Sep 25
This one is work as intended. There is magic break location at the end of each script. |
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by raghavka...@gmail.com
, Apr 24 2018