purplesoup
asked on
Pausing node.js in Visual Studio to see the output
I've been trying out the node.js tools for Visual Studio (2012 version).
http://www.hanselman.com/blog/introducingnodejstoolsforvisualstudio.aspx
If I run something with listen then the node.exe screen of course stays open and I can see what is written to the console.
However if there isn't any listen code the window closes immediately the code is run and you can't see the output.
It is possible to set a breakpoint which allows the window to stay open but it would be nice to be able to just either redirect the output to another window which doesn't close immediately or keep the node.exe screen open until it is closed.
I've had a search for solutions but they all seem pretty awkward like running a "wait" batch file on the code - is there a simple way to do this?
http://www.hanselman.com/blog/introducingnodejstoolsforvisualstudio.aspx
If I run something with listen then the node.exe screen of course stays open and I can see what is written to the console.
However if there isn't any listen code the window closes immediately the code is run and you can't see the output.
It is possible to set a breakpoint which allows the window to stay open but it would be nice to be able to just either redirect the output to another window which doesn't close immediately or keep the node.exe screen open until it is closed.
I've had a search for solutions but they all seem pretty awkward like running a "wait" batch file on the code - is there a simple way to do this?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I had a go with this
http://nodejs.org/api/debugger.html
it seemed like something from the ark - I'm assuming there is something else available somewhere?
http://nodejs.org/api/debugger.html
it seemed like something from the ark - I'm assuming there is something else available somewhere?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok that makes sense - thanks - I'll put some points aside for the explanation.
Erm if anyone *does* know how to keep that node window open I'd appreciate it...
Erm if anyone *does* know how to keep that node window open I'd appreciate it...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
leakim971 - yes I'm pretty sure that's the plug in I'm asking about. How do I keep the console window open when running code?
ASKER
AlexCode - I've had a go with Sublime Text - how do I get the code to run (from within the editor, obviously)?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok then it doesn't seem like there is a way, I'll close the question.
ASKER
Since I already have VS installed it seemed easier to use that than download a whole new IDE - how do you get the node.js debugger?
The node.js I downloaded just has the command prompt.