[Webkit-unassigned] [Bug 138726] New: Web Inspector: Provide $e in the console for the thrown exception value
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 13 20:16:32 PST 2014
https://bugs.webkit.org/show_bug.cgi?id=138726
Bug ID: 138726
Summary: Web Inspector: Provide $e in the console for the
thrown exception value
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: joepeck at webkit.org
CC: burg at cs.washington.edu, graouts at webkit.org,
joepeck at webkit.org, timothy at apple.com,
webkit-bug-importer at group.apple.com
* SUMMARY
When pausing on exceptions it can be difficult or impossible to interact with the actual thrown exception object. For example breaking on an uncaught exception, there is no named reference to the thrown value that would otherwise have been available in "catch (e)". We can provide a named reference in the console, such as "$e".
* TEST
<button id="x">Click Me</button>
<script>
var times = 0;
document.getElementById('x').addEventListener('click', function() {
times++;
if (times === 1)
[].x.x;
if (times === 2)
throw "string error";
if (times === 3)
throw null;
if (times === 4)
throw document;
});
</script>
* STEPS TO REPRODUCE
1. Inspect test page
2. Enable break on all exceptions
3. Click the button on the page to trigger exceptions
=> should be able to get the different thrown values (Errors / objects) via "$e" in the console.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141114/3b8c50be/attachment-0002.html>
More information about the webkit-unassigned
mailing list