System: Latest version of vscode 1.36.1 on Windows 10 64-bit and Glitch extension 0.1.0
Ran Glitch Create project to create an express project
Modified the server.js to the following:
app.get('/', function(request, response) {
console.log('hi');
response.sendFile(__dirname + '/views/index.html');
});
Places a breakpoint on the console.log line and ran command Glitch: Debug
vscode enters debug mode, the Glitch log command says Debugger attached.
If I run Glitch show app in browser the page loads and the output log prints “hi” but the breakpoint is not hit
I thought it might be because I have node 10.14.1 installed locally. I tried updating package.json to have:
"engines": {
"node": "10.x"
},
It looks like the glitch app restarted after that but debugging still does not work. Also using the Glitch terminal command and running node -v
still shows v8.15.1. I did not trying downgrading my local node.js install to v8.