I want to use debug in Visual Studio Code, but as my code full of const declarations, I can't run it - I'm getting an error:
Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
Is any workaround existed, configuration file setting or something? Currently, my configuration file looks like this:
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}/server.js"
}
]
I've seen posts about 'use strict' line, but I was wandering if there is another solution, except putting that statements in all the files