Skip to content
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

How to debug with VSCode? #295

Open
d9k opened this issue Dec 30, 2023 · 0 comments
Open

How to debug with VSCode? #295

d9k opened this issue Dec 30, 2023 · 0 comments

Comments

@d9k
Copy link

d9k commented Dec 30, 2023

How to debug the server side of project based on Ultra using VSCode?

.vscode/launch.json:

{
    {
      "name": "dev server (deno)",
      "request": "launch",
      "type": "pwa-node",
      "program": "${workspaceFolder}/server.tsx",
      "cwd": "${workspaceFolder}",
      "runtimeExecutable": "${env:HOME}/.deno/bin/deno",
      "env": {
        "ULTRA_LOG_LEVEL": "DEBUG"
      },
      "runtimeArgs": [
        "run",
        "--no-npm",
        "--unstable",
        "--inspect-wait",
        "--allow-all"
      ],
      "args": [],
      "attachSimplePort": 9229
    }
}

Result:

Debugger listening on ws://127.0.0.1:9229/ws/1d32b196-31f2-4e90-ae21-8aab58a33d45
Visit chrome://inspect to connect to the debugger.
Deno is waiting for debugger to connect.
Debugger session started.
error: Uncaught (in promise) TypeError: WebAssembly.compile(): Argument 0 must be a buffer source
    at eventLoopTick (ext:core/01_core.js:178:11)
Process exited with code 

Tried "runtimeArgs": "--inspect" instead of "--inspect-wait", same result.
"type": "pwa-node" instead of "node", same result.

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

1 participant