Skip to content

How to debug with VSCode? #295

Description

@d9k

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions