Skip to content

Instantly share code, notes, and snippets.

@benquarmby
Created February 6, 2016 01:58
Show Gist options
  • Save benquarmby/36f6c00947ad04509212 to your computer and use it in GitHub Desktop.
Save benquarmby/36f6c00947ad04509212 to your computer and use it in GitHub Desktop.
VSCode debugger freeze
'use strict';
var util = require('util');
console.log(util.inspect({
some: 'object'
}));
console.log('put a breakpoint on this line');
console.log('it will not be hit');
console.log('these lines will not be logged');
console.log('the process will never exit');
console.log('we\'re completely stuck');
process.exit(0);
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "app.js",
"stopOnEntry": false,
"args": [],
"cwd": ".",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"externalConsole": false,
"sourceMaps": false,
"outDir": null
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment