Closed Bug 1624660 Opened 4 years ago Closed 4 years ago

When writing things in the console, debugger breaks when "breaks on exception" is on

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: julienw, Unassigned)

References

(Blocks 1 open bug)

Details

STR:

  1. Open the devtools.
  2. Enable "break on exceptions" in the debugger.
  3. Switch to the console.
  4. Starts typing things, for example:
    /unde/.test("bla")

=> debugger breaks at the error that should be swallowed by the console instead.

Julien, I tried this with both checkboxes, caught and uncaught, but could not get debugger to pause. Which error do you see being paused on?

Flags: needinfo?(felash)
Priority: -- → P2

I get this:
ReferenceError: te is not defined
I believe this is when the console tries to evaluate /unde/.te while I type.

Flags: needinfo?(felash)

Still doesn't reproduce for me in Nightly, default and new profile.

Any idea if we miss cases where we let those errors sneak through and pause the debugger?

Flags: needinfo?(loganfsmyth)

I'm not sure what to say, would you be able to make a screen recording?

ReferenceError: te is not defined doesn't make sense as an error for /unde/.te because that code doesn't error if you run it, it just returns undefined.

Flags: needinfo?(loganfsmyth)
Flags: needinfo?(felash)

This is weird: I restarted Firefox (and updated it to latest version) and I can't reproduce anymore now.

Flags: needinfo?(felash)

Thanks for double-checking, Julien! Let's close for now and re-open if this comes up again.

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