<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@webkit.org" title="Joseph Pecoraro <joepeck@webkit.org>"> <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">> Created <span class=""><a href="attachment.cgi?id=255710" name="attach_255710" title="Image example">attachment 255710</a> <a href="attachment.cgi?id=255710&action=edit" title="Image example">[details]</a></span>
> Image example
>
> If you run javascript with webView.evaluateJavaScript the inspector does not
> know about the source.</span >
You can name the script using a sourceURL comment:
let script = "/* ... /*\n//# sourceURL=myEval.js";
Then the script should show up in Web Inspector under "Extra Scripts" with the name "myEval.js". 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>