Open Bug 1710492 Opened 4 years ago Updated 3 years ago

Showing wrong variable value while debugging when hovering variable or using watch

Categories

(DevTools :: Debugger, defect, P3)

Firefox 88
defect

Tracking

(Not tracked)

People

(Reporter: vnexster, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

901 bytes, application/x-zip-compressed
Details
Attached file ff bug.zip

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:

  1. Put a breakpoint on the line: if (act === 'app')
  2. click the button
  3. 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.

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.

Component: Untriaged → Debugger
Product: Firefox → DevTools

Hi Omu,
Thanks for reporting!
I can't seem to reproduce.
I used your example to create a glitch file.

STR

  1. Go to https://bug-1710492-source-tooltip.glitch.me/
  2. Open the debugger and click on script.js
  3. Set a breakpoint on line 9
  4. Reload the page
  5. When the break point is hit
  6. Hover over act, the value is "app"
  7. Click the debugger's resume button to continue
  8. Click the "click me" button on the webpage
  9. Repeat 5 and 6

AR

The value is still "app"

ER

The value should be "pre"

Flags: needinfo?(vnexster)

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

Flags: needinfo?(vnexster)

Updated the str in Comment 2

Assignee: nobody → hmanilla
Severity: -- → S3
Priority: -- → P3

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!)

Assignee: hmanilla → nobody
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true

Correct! not atm thanks

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: