Vscode-js-debug: Debugging fails on Windows with utf-8 characters in file path

Created on 10 Jul 2020  路  4Comments  路  Source: microsoft/vscode-js-debug

As reported:

internal/modules/cjs/loader.js:969
  throw err;
  ^

Error: Cannot find module 'c:/Users/Jo锟給 Silva/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js'
bug upstream verified

All 4 comments

`internal/modules/cjs/loader.js:638
throw err;
^

Error: Cannot find module '"/snap/code/36/usr/share/code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js"'`

it seems it isn't a utf-8 problem.
the fie bootloader.bundle.js exists in the given location...
Linux #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020 node v10.17.0

Version: 1.47.0
Commit: d5e9aa0227e057a60c82568bf31c04730dc15dcd
Date: 2020-07-09T08:30:34.302Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.3.0-53-generic snap

@vvFiCKvv you're hitting a version of https://github.com/microsoft/vscode/issues/102035#issuecomment-656801666. The resolution steps in the comment will work for you (just ignore the electron part of it)

This is an issue in Node.js, see https://github.com/nodejs/node/issues/34399.

For now, you can get around this by using attachSimplePort with the nightly build. You miss out on some functionality, but it will unblock you.

Example launch.json:

{
  "type": "pwa-node",
  "request": "launch",
  "name": "Launch program",
  "attachSimplePort": 0,
  "program": "${workspaceFolder}/main.js",
},

This is an issue in Node.js, see nodejs/node#34399.

For now, you can get around this by using attachSimplePort with the nightly build. You miss out on some functionality, but it will unblock you.

Example launch.json:

{
  "type": "pwa-node",
  "request": "launch",
  "name": "Launch program",
  "attachSimplePort": 0,
  "program": "${workspaceFolder}/main.js",
},

I had the same issue, this option of the launch.json helped out me. Thank you very much :)

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

roblourens picture roblourens  路  5Comments

michaelhyman picture michaelhyman  路  5Comments

jtsom picture jtsom  路  8Comments

geirsagberg picture geirsagberg  路  5Comments

roblourens picture roblourens  路  7Comments