WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
158034
Web Inspector: when paused due to "All Exceptions" breakpoint, there's no way to interact with an exception object originating from a native function
https://bugs.webkit.org/show_bug.cgi?id=158034
Summary
Web Inspector: when paused due to "All Exceptions" breakpoint, there's no way...
Blaze Burg
Reported
2016-05-24 11:49:09 PDT
When paused due to "All Uncaught Exceptions", there is often a variable holding the exception, so it's possible to log that to console and poke at it. However, for "All Exceptions", the debugger pauses at the call site and doesn't show the exception in the locals sidebar, a popover, or anywhere besides the Pause Reason text. STEPS TO REPRODUCE: 0. Enable pause on "All Exceptions" 1. Type this in the console: JSON.parse("}}") EXPECTED: It shows the Console Evaluation source. It also logs the exception to the console, or makes it appear in a popover next to the call site, or the Pause Reason text is clickable (to log to console). ACTUAL: Can't see anything!
Attachments
Add attachment
proposed patch, testcase, etc.
Blaze Burg
Comment 1
2016-05-24 11:49:46 PDT
Note: this is only really a problem for native functions that throw exceptions. If user code does it, the debugger will usually stop at the `throw` statement.
Joseph Pecoraro
Comment 2
2016-05-24 12:12:25 PDT
You can use $exception in the console to interact with the thrown or I caught error.
Blaze Burg
Comment 3
2016-05-24 21:01:25 PDT
(In reply to
comment #2
)
> You can use $exception in the console to interact with the thrown or I > caught error.
Maybe we should auto-log it with the '= $exception' to make this more obvious.
Blaze Burg
Comment 4
2016-05-27 07:18:11 PDT
Ping for import.
Alexey Proskuryakov
Comment 5
2016-09-08 13:57:09 PDT
<
rdar://problem/28213526
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug