<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><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> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: Console could be made useful for very simple await expressions"
href="https://bugs.webkit.org/show_bug.cgi?id=165681">bug 165681</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>joepeck@webkit.org
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: Console could be made useful for very simple await expressions"
href="https://bugs.webkit.org/show_bug.cgi?id=165681#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: Console could be made useful for very simple await expressions"
href="https://bugs.webkit.org/show_bug.cgi?id=165681">bug 165681</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=165681#c6">comment #6</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=165681#c4">comment #4</a>)
> > Created <span class=""><a href="attachment.cgi?id=296882&action=diff" name="attach_296882" title="[PATCH] Proposed Fix">attachment 296882</a> <a href="attachment.cgi?id=296882&action=edit" title="[PATCH] Proposed Fix">[details]</a></span>
> > [PATCH] Proposed Fix
> >
> > I think I want to play with this a bit more. The `console.info` may be a
> > little too weird since for primitive values it stringifys the primitive. So:
> >
> > console.info(1);
> > console.info("alpha");
> >
> > Look the same as info messages with the string "1" or "alpha".
> >
> > We could do something like:
> >
> > console.info("Awaited result", x)
>
> That will not get `x` assigned to the proper $result or $n. Is there a way
> we can do that?</span >
No, there is currently no way to programmatically get a $n in the Console, which is effectively what this is trying to do. We would have to add something to the protocol, console, or somehow detect awaited results and act on them.
I think we can use:
console.info("%o", value);
And get pretty good behavior here. Certainly good enough for the common case.</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>