Visual Studio and NodeJS are two names you don’t generally see next to each other – but today the NodeJS for Visual Studio plugin hit version 1.0 and as an avid NodeJS developer I had to check it out and see how it compares to my standard suite of OSX and Webstorm!
But wait you say, I thought Node didn’t need an IDE? Well, technically no, but once your app gets even slightly big, it makes life much easier – especially if you get intellisense.
Installation was a breeze, as was creating my first project. I decided to build a quick little ExpressJS app as I know my way around it and it’s almost the defacto library for building web apps on Node.
Straight out of the box you get a “Hello world” Express app. Nice. I hit F5 (standard Visual Studio debug key) and boom, it kicks off Node, your application and opens your default browser. So far, so good. So what else have they added then?
Intellisense, and really good intellisense at that
One of the harder things to do in NodeJS is step through debugging. There are a few tools out there these days, but none are quite as polished as the one inside of Visual Studio. The plugin team have done a brilliant job of integrating Visual Studio with the Node debug tool. You get full step through support and can see the value of each and every object. Perfect.
While there are quite a few different options for tracking NodeJS performance, having one built straight into the tools you’re using always helps keep things simple. From my short play with the tools, they appear to provide a reasonably comprehensive overview of your application and how well it’s running and where you could look to make improvements in performance.
It wasn’t all good though sadly – the NPM package installer wouldn’t work no matter what I tried. I also attempted to open an older, very big Express app and didn’t get very far, though I’m sure that’s more my project than the Visual Studio stuff. But it can only get better right? And with Microsoft supporting NodeJS as a first-class citizen on Azure, the future looks pretty bright for Node and Windows/Visual Studio.
For me though, it’s not quite there yet, sadly. Will definitely be back to check it out though to see how far it’s come!
Want to track errors in your Node.js applications? Lucky for you, Raygun supports most languages and platforms – including Node! Try the Raygun provider for Node.js free for 14 days by starting a trial here.