<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: reveal source from webView.evaluateJavaScript"
   href="https://bugs.webkit.org/show_bug.cgi?id=146389#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: reveal source from webView.evaluateJavaScript"
   href="https://bugs.webkit.org/show_bug.cgi?id=146389">bug 146389</a>
              from <span class="vcard"><a class="email" href="mailto:joepeck&#64;webkit.org" title="Joseph Pecoraro &lt;joepeck&#64;webkit.org&gt;"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=146389#c0">comment #0</a>)
<span class="quote">&gt; Created <span class=""><a href="attachment.cgi?id=255710" name="attach_255710" title="Image example">attachment 255710</a> <a href="attachment.cgi?id=255710&amp;action=edit" title="Image example">[details]</a></span>
&gt; Image example
&gt; 
&gt; If you run javascript with webView.evaluateJavaScript the inspector does not
&gt; know about the source.</span >

You can name the script using a sourceURL comment:

    let script = &quot;/* ... /*\n//# sourceURL=myEval.js&quot;;

Then the script should show up in Web Inspector under &quot;Extra Scripts&quot; with the name &quot;myEval.js&quot;. You may set breakpoints, etc.</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>