<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: Can't resume Debugger after breaking on exception in Promise"
   href="https://bugs.webkit.org/show_bug.cgi?id=157240">157240</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Web Inspector: Can't resume Debugger after breaking on exception in Promise
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Web Inspector
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>timothy&#64;apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bburg&#64;apple.com, graouts&#64;webkit.org, joepeck&#64;webkit.org, mattbaker&#64;apple.com, nvasilyev&#64;apple.com, timothy&#64;apple.com, webkit-bug-importer&#64;group.apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Steps:
1) Enable break on All Exceptions
2) Run this code in the console from <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebCrypto can generate but fails to export RSA-OAEP-256 keys"
   href="show_bug.cgi?id=156114">bug 156114</a>:

    crypto.webkitSubtle.generateKey({
        name: &quot;RSA-OAEP&quot;,
        modulusLength: 2048,
        publicExponent: new Uint8Array([0x01, 0x00, 0x01]),
        hash: {name: &quot;SHA-256&quot;}
    }, true, [&quot;encrypt&quot;, &quot;decrypt&quot; ]).then((keypair) =&gt; {
        console.log(&quot;Generated Key Pair:&quot;, keypair);
        return crypto.webkitSubtle.exportKey(&quot;jwk&quot;, keypair.publicKey);
    }).then((keydata) =&gt; {
        console.log(&quot;Key Data:&quot;, keydata);
    }).catch((error) =&gt; {
        console.log(&quot;Error: &quot;, error);
    });

3) It should stop on the return line with an exception
4) Try to continue
5) console.log should be logged with the error from the Promise catch
6) Still appear paused, try to continue

Results: Appears to stay paused, but it does resume. Error is logged when inspecting Inspector:

[Error] DebuggerManager.resume failed: – Error: Can only perform operation while paused.
    Error: Can only perform operation while paused.
        _dispatchResponseToPromise — InspectorBackend.js:307
        _dispatchResponse — InspectorBackend.js:272
        dispatch — InspectorBackend.js:149
        dispatchNextQueuedMessageFromBackend — MessageDispatcher.js:42

(anonymous function) (DebuggerManager.js:194)
promiseReactionJob</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>