Deno: Debugger not working in VS Code

Created on 10 Apr 2020  路  4Comments  路  Source: denoland/deno

deno 0.40.0
vs code 1.44.0

launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Launch via npm",
      "type": "node",
      "request": "launch",
      "cwd": "${workspaceFolder}",
      "runtimeExecutable": "deno",
      "runtimeArgs": [
        "-A",
        "--inspect",
        "--importmap=./import_map.json",
        "mod.ts"
      ],
      "port": 9229
    }
  ]
}

debug console output:

/home/david/.local/bin/deno -A --inspect-brk --importmap=./import_map.json mod.ts 
Debugger listening on ws://127.0.0.1:9229/ws/b3434192-95e8-42ad-9245-3c939ce9d283
Debugger session started.

but nothing is showing in the debug window. 'loaded scripts` flashes on, the bottom of the screen flashes orange, but then nothing.

I used the info from https://medium.com/@akmittal/setup-vscode-for-deno-with-autocomplete-debugging-support-f66e58ecd1db that says it should work? Maybe I made an error? Thanks.

Most helpful comment

You could add "outputCapture": "std" to your configuration to capture the console logs.

All 4 comments

Issue is here: https://github.com/axetroy/vscode-deno/issues/111
I cannot get that example to work either (though haven't tried very hard)...

You could add "outputCapture": "std" to your configuration to capture the console logs.

@gewoonwoutje Thanks, I now see the output of the program... butt still no debugging... anyone got this working or are we waiting on the next update?

Feels like this is discussion best suited for the plugin repo.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

doutchnugget picture doutchnugget  路  3Comments

motss picture motss  路  3Comments

sh7dm picture sh7dm  路  3Comments

kitsonk picture kitsonk  路  3Comments

ry picture ry  路  3Comments