I've just upgraded node from v0.10.* to v4.7.7 and I have an es6 code in my node.js app:
class Myclass {
}
and when typing from command line:
node --debug-brk=6648 --nolazy --harmony bin/www
App is running successfully:
Debugger listening on port 6648
When trying to start debug from vscode (with the exact same execution line!!!):
class Myclass {
^^^^^
SyntaxError: Unexpected reserved word
Why ?
EDIT 1:
I DO have this section in my jsconfig.json
:
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"allowSyntheticDefaultImports": true
}