aleph.js icon indicating copy to clipboard operation
aleph.js copied to clipboard

Debug support for vscode

Open vsDizzy opened this issue 3 years ago • 6 comments

I know this is alpha, but... Breakpoints are not being hit. Placing debugger statement stops in C:\* instead of ${workspaceFolder}\* I tried sourceMapPathOverrides but had no success.

launch.json:

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Deno: Run",
      "request": "launch",
      "type": "pwa-node",
      "cwd": "${workspaceFolder}",
      "runtimeExecutable": "deno",
      "runtimeArgs": [
        "run",
        "--inspect",
        "--unstable",
        "-A",
        "https://deno.land/x/[email protected]/cli.ts"
      ],
      "args": ["dev"],
      "attachSimplePort": 9229,
      "outputCapture": "std"
    }
  ]
}

vsDizzy avatar Apr 05 '21 12:04 vsDizzy

image

vsDizzy avatar Apr 05 '21 18:04 vsDizzy

Source locations are different between debuggers: image

Is it related to vscode plugin?

vsDizzy avatar Apr 06 '21 18:04 vsDizzy

i have a plan to improve this but don't have time yet.

ije avatar Apr 06 '21 20:04 ije

maybe after 0.3 beta.

ije avatar Apr 06 '21 20:04 ije

@vsDizzy what was your sourceMapPathOverrides configuration? I'm curious if this issue is also related to https://github.com/denoland/deno/issues/11874

tatemz avatar Oct 03 '21 16:10 tatemz

Just a first reaction: This is pretty important for out of the box dx, especially when configuration asks if you want to init vs code workspace. Things like tasks to auto launch deno task dev and attach a debugger would be expected.

niemyjski avatar Aug 16 '23 01:08 niemyjski