Closed Bug 1352579 Opened 7 years ago Closed 7 years ago

Debugger hover shows incorrect value

Categories

(DevTools :: Debugger, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(firefox55 affected)

RESOLVED DUPLICATE of bug 1309974
Tracking Status
firefox55 --- affected

People

(Reporter: botond, Unassigned)

Details

STR:
  1. Load an HTML file with the following content:

       <script>
         var f = function() {
           var foo = {};
           foo.bar = 42;
           var bar = 4;
           if (foo.bar > 41) {
             console.log(foo.bar);
           }
         };
         f();
       </script>

  2. Open the debugger and put a breakpoint on the
     console.log line.
  3. Refresh the page so the breakpoint is hit.
  4. Hover over |bar| in |if (foo.bar > 41)|.

Expected results:
  The hover shows 42.

Actual results:
  The hover shows 4.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.