[Webkit-unassigned] [Bug 145930] New: Web Inspector: Debugger option to "Pause on Promise reject"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 12 10:26:18 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=145930
Bug ID: 145930
Summary: Web Inspector: Debugger option to "Pause on Promise
reject"
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jrburke at gmail.com
CC: graouts at webkit.org, joepeck at webkit.org,
jonowells at apple.com, mattbaker at apple.com,
nvasilyev at apple.com, timothy at apple.com,
webkit-bug-importer at group.apple.com
Debugging with promises and finding original sources of errors can be tricky if the reject pathway is followed.
Since promises are a control flow mechanism with the resolve() used to go to the next step, and reject() like throwing an exception, it seems useful if the debugger had the ability to pause if the reject() for a promise was called.
This is different than pausing on an unhandled promise rejection. The scenario I was debugging was one where there were proper error handling listeners on the promise chain, but since there were a few places in the chain where reject() was called, it was not immediately obvious where I could manually place a breakpoint to inspect the local state to see why the reject was called.
This bug may have some dependency with bug 139542, which is about showing more options on what to break on.
Similar issue filed for Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=1174026
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150612/34c353c8/attachment.html>
More information about the webkit-unassigned
mailing list