You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Svelte 3 & 4 had $: console.log(...) thing that worked wonders, svelte 5 removes $: syntax, and replaces $: console.log(...) with $inspect(...), with does not work with console ninja.
Version
all versions
Steps to reproduce (or sample repo)
use svelte 5 starter project template.
add $inspect(...) to any $state variable.
run project & change state.
no inline output in vscode at $inspect(...) line.
When implementing support for this, be careful of how to handle '.with' feature: $inspect(x); // default console.log $inspect(x).with(console.trace); $inspect(x, y).with(() => { debugger; });
Log output
N/A
The text was updated successfully, but these errors were encountered:
What happened?
Svelte 3 & 4 had
$: console.log(...)
thing that worked wonders, svelte 5 removes$:
syntax, and replaces$: console.log(...)
with$inspect(...)
, with does not work with console ninja.Version
all versions
Steps to reproduce (or sample repo)
$inspect(...)
to any $state variable.$inspect(...)
line.When implementing support for this, be careful of how to handle '.with' feature:
$inspect(x); // default console.log
$inspect(x).with(console.trace);
$inspect(x, y).with(() => { debugger; });
Log output
The text was updated successfully, but these errors were encountered: