Bug 173627 - Web Inspector: Should be able to pause and debug an OutOfMemory Exception
Summary: Web Inspector: Should be able to pause and debug an OutOfMemory Exception
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-06-20 17:16 PDT by Joseph Pecoraro
Modified: 2017-06-21 22:14 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 Joseph Pecoraro 2017-06-20 17:16:20 PDT
Summary:
Should be able to pause and debug an OutOfMemory Exception

Test:
<script>
s = "a"; while (1) s += s;
</script>

Steps to reproduce:
1. Inspect test page
2. Enable: Pause on All Exceptions
3. Reload the page
  => Should pause on Out of Memory Exception
  => Should be able to evaluate in console `s.length`

Note:
- Currently WebCore is spending time stringifying and sending scope / global variable `s` to the frontend. That should not be necessary.
Comment 1 Joseph Pecoraro 2017-06-20 17:26:22 PDT
To address this we should be very careful about sending very large objects (like strings / arrays) to the frontend in one piece.
Comment 2 Radar WebKit Bug Importer 2017-06-20 17:41:02 PDT
<rdar://problem/32887734>