debugging in Visual Studio Code with babel-node
No need to transpile with @babel/node Basic setup (sourcemaps – always) Note the sourceMaps and retainLines options in .babelrc: { “presets”: [ “@babel/preset-env” ], “sourceMaps”: “inline”, “retainLines”: true } And then in launch.json: { “type”: “node”, “request”: “launch”, “name”: “Debug”, “program”: “${workspaceFolder}/index.js”, “runtimeExecutable”: “${workspaceFolder}/node_modules/.bin/babel-node”, “runtimeArgs”: [ “–nolazy” ] } Advance setup (sourcemaps – development only) … Read more