Skip to content

Confusing output by $inspect.trace #15954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mtsgrd opened this issue May 19, 2025 · 1 comment
Open

Confusing output by $inspect.trace #15954

mtsgrd opened this issue May 19, 2025 · 1 comment

Comments

@mtsgrd
Copy link

mtsgrd commented May 19, 2025

Describe the bug

I am trying to debug an $effect block using $inspect.trace, but the output gives me a no context for the various $derived and $state nodes in the tree.

Image

I see in a simple playground example that it typically prints the value of the dependent variable inline. Is there an easy to understand reason why I am not seeing the same locally?

Playground example: https://svelte.dev/playground/16348415b1a44cb1b2390885c204f677?version=5.30.2

Reproduction

I can't repro using the playground, but I am using the same version as the playground: 5.30.2

Logs

System Info

System:
    OS: macOS 14.1.2
    CPU: (10) arm64 Apple M1 Pro
    Memory: 3.21 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
    npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm
    pnpm: 9.9.0 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 136.0.7103.114
    Safari: 17.1.2

Severity

annoyance

@paoloricciuti
Copy link
Member

In the CreatedAtError you should see the stacktrace that lead you back to the place where the derived/state was declared

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants