Repository navigation
Seeing Deno console.log values inside VS Code, next to the code that logged them #37121
lagudafuadtosin
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Sharing a small tool in case it is useful to other Deno users: Inline Logs, a free VS Code extension. You run
deno runin the VS Code terminal and eachconsole.logvalue appears at the end of the line that logged it.A few questions I expect from Deno people, answered up front:
Does it get around permissions? No. The hook only runs when your script already has the permissions it needs. Without them it stays off and does not prompt you for anything.
What does it capture?
consolecalls, uncaught errors (they also go into VS Code's Problems panel), andhttp,httpsandWebSockettraffic, each on the line that made it.EventSourcetoo.Coverage? Yes for JavaScript, read from Deno's own coverage files and shown in the gutter. TypeScript files are next.
Where does the data go? Nowhere. It goes from your process to the extension over 127.0.0.1 with a token, and stays there.
It is GPL, with no account and no paid tier.
All reactions