Showing wrong variable value while debugging when hovering variable or using watch
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(Not tracked)
People
(Reporter: vnexster, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
901 bytes,
application/x-zip-compressed
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0
Steps to reproduce:
I've uploaded an htm with js file to show the bug:
- Put a breakpoint on the line: if (act === 'app')
- click the button
- hover to check the "act" var value, the value is "pre", but it shows ast "act"
Actual results:
Showing wrong variable value while debugging when hovering variable or using watch, or typing its name in the console.
The code executes correctly according to the correct variable name.
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Debugger' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•4 years ago
•
|
||
Hi Omu,
Thanks for reporting!
I can't seem to reproduce.
I used your example to create a glitch file.
STR
- Go to https://bug-1710492-source-tooltip.glitch.me/
- Open the debugger and click on
script.js - Set a breakpoint on line 9
- Reload the page
- When the break point is hit
- Hover over
act, the value is"app" - Click the debugger's resume button to continue
- Click the "click me" button on the webpage
- Repeat 5 and 6
AR
The value is still "app"
ER
The value should be "pre"
Hi, I also thought I can't reproduce it anymore,
after I went to the network tab, double clicked the request and saw the result in a new tab,
and retried, and it started happening again.
here's a screencast: https://youtu.be/GIJ6w8aEQ8A
Updated•4 years ago
|
Updated•4 years ago
|
Comment 5•3 years ago
•
|
||
I can still reproduce this.
Bomsy, I am unassigning you, I don't think you are working on this atm (but please correct me if I am wrong!)
Comment 6•3 years ago
|
||
Correct! not atm thanks
Description
•