Closed Bug 1352580 Opened 7 years ago Closed 5 years ago

Debugger hover not shown at all if you're not inside a function

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: botond, Unassigned)

Details

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

       <script>
         var foo = {};
         foo.bar = 42;
         var bar = 4;
         if (foo.bar > 41) {
           console.log(foo.bar);
         }
       </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:
  A hover is shown.

Actual results:
  No hover is shown.

Note that a hover _is_ shown if the code in question is inside a function, as in the example in bug 1352579.
thanks for filing and I apologize for the slow reply.

I see it working in the old debugger UI.
http://g.recordit.co/vWKk0xhXNM.gif

I also see it working in the new UI, and it's much faster
Product: Firefox → DevTools

Works great.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.