Rich-Harris/degit

Project debug setup - vscode - help wanted [question]

keerthivasan-r opened this issue · 2 comments

Hi guys,

First of all, I just stumbled upon this project and got curious to setup. when i started to set this up and run a debug session in vscode. I get wierd errors. Will you be able to help?

Error Console

C:\Program Files\nodejs\node.exe --experimental-modules --inspect-brk=21392 src\bin.js 
Debugger listening on ws://127.0.0.1:21392/9a801ff3-7b13-477d-b833-e713a72667d5
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
(node:4660) ExperimentalWarning: The ESM module loader is experimental.
SyntaxError: Unexpected identifier

Software used
Version: 1.40.2 (system setup)
Commit: f359dd69833dd8800b54d458f6d37ab7c78df520
Date: 2019-11-25T14:54:45.096Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
NPM : 6.9.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18363

launch.json

"configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "runtimeArgs": ["--experimental-modules"],
            "program": "${workspaceFolder}\\src\\bin.js"
        }
    ]

I think this is an issue with vscode debug configurations. Can you help me setup the project for debugging? Thanks for your time. I am really excited about this project

I was doing it wrongly. I just used the files in the src directory instead of dist