I am trying to use node debugger. I am running node debug server to start my server. Then I have:
... var Workspace = mongoose.model('Workspace'); debugger;
At this point, as expected, a debugger pops up when you run this code. However, I expect it to set all the current variables, as it does in the Chrome native debugger.
But:
break in hotplate/node_modules/bd/lib/bd.js:133 132 133 debugger; 134 135 // Delete the ID and the version since there no point, debug> Workspace ReferenceError: Workspace is not defined
So ... how can I check the current variables?
Bonus question: is there any way to use Chrome Developer Tools (CTRL-J) so that it connects to node and works this way? (I know the node inspector, but it is very outdated and ...)
Merc Dec 18 '12 at 4:13 2012-12-18 04:13
source share