Bug 121010 - "Stop on uncaught exceptions" catches all exceptions
Summary: "Stop on uncaught exceptions" catches all exceptions
Status: RESOLVED DUPLICATE of bug 93607
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-09-08 12:56 PDT by Paul Miller
Modified: 2013-09-09 21:26 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Miller 2013-09-08 12:56:33 PDT
Enable “Breakpoints on all uncaught exceptions”.

Works:

    try {throw new Error()} catch(e) {}

Does not work:

  function f() {throw new Error();};
  try {f()} catch(e) {}

Basically there is a simple check for `try` in current context.

This is ultra-annoying bug and happens on all sites all the time (for example, with jQuery).
Comment 1 Radar WebKit Bug Importer 2013-09-08 12:57:29 PDT
<rdar://problem/14940711>
Comment 2 Joseph Pecoraro 2013-09-09 12:17:03 PDT
I've been in this area (breakpoints) I'll take a look. Assigning to myself.
Comment 3 Paul Miller 2013-09-09 21:26:19 PDT

*** This bug has been marked as a duplicate of bug 93607 ***