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.
To address this we should be very careful about sending very large objects (like strings / arrays) to the frontend in one piece.
<rdar://problem/32887734>