Questions tagged [ntvs]

Node.js Tools for Visual Studio

Node.js Tools for Visual Studio is an official Visual Studio extension developed by Microsoft that adds support for editing, profiling and debugging of Node.js code in Visual Studio.

41 questions
27
votes
4 answers

How to use the "debug" module with typescript

I have an NTVS (Node Tools for Visual Studio) project with Typescript. The following statement doesn't compile: import debug = require('debug')('MyApp'); The syntax error being (TS) ';' expected between the the two parenthesis ')(' Is it…
Nicolae Daian
  • 1,065
  • 3
  • 18
  • 39
17
votes
3 answers

How to debug node.js application with Visual Studio 2013 and Node Tools NTVS

I have moved an existing node.js + express project to VS because I prefer the IDE over JetBrains for now (used VS for years, only peeked into Webstorm). I used NTVS new project->from existing sources and all files were imported…
Andreas Reiff
  • 7,961
  • 10
  • 50
  • 104
12
votes
1 answer

How can I debug Gulp tasks using Node Tools for Visual Studio?

I recently installed NodeJS Tools for Visual Studio which touts support for Node environments in VS. Notably, it has the ability to set debug breakpoints from the IDE. It's unclear to me if it is possible to set breakpoints when debugging Gulp…
Sean Anderson
  • 27,963
  • 30
  • 126
  • 237
12
votes
1 answer

Is there a way to open the Console window on Node.js tools for Visual Studio?

I just downloaded the Node.js tools for Visual Studio and I can't find a way to open a Console window from inside VS. It's useful to trigger npm commands like install, run build... I know I could do it from the outside but I miss how easy it is in…
Andre Pena
  • 56,650
  • 48
  • 196
  • 243
9
votes
1 answer

What is .ntvs_analysis.dat

I am using Node.js Tools for Visual Studio. When I am opening a project it will take some time to load, because of Node.js analysis process. Another problem is .ntvs_analysis.dat is growing larger and larger? What is it and do I need it?
Alvin
  • 8,219
  • 25
  • 96
  • 177
8
votes
1 answer

How to mix Node.js and Typescript in the same Visual Studio project?

Visual Studio has a Typescript addon for developing apps with the Typescript language. And there is also the Node.js Tools for VS, with which one is able to create and debug Node.js applications. I tried creating a Node.js project, but then I…
Mark Vincze
  • 7,737
  • 8
  • 42
  • 81
7
votes
2 answers

How can I debug a Yeoman generator KO (with typescript and gulp) Node JS project in Visual studio with Node JS Tools for visual studio

I have created a Node JS project in Visual Studio (2012 professional and 2013 community) with NTVS and used a Yeoman generator to create a Knockout SPA app (using the typescript option in the generator setup). Now I need to decide which file to set…
Daniël Tulp
  • 1,745
  • 2
  • 22
  • 51
7
votes
2 answers

Debugging Meteor app with NTVS (Node Tools for Visual Studio)

I'm investigating using NTVS (https://nodejstools.codeplex.com/) with Visual Studio 2013 to debug my Meteor/Node application. I can't figure out how to get debugging to work. The problem is that when Meteor starts it copies all of my sources to the…
6
votes
0 answers

Node Tools for Visual Studio Mocha tests not finding Mocha module

I have a node project which I've imported into Visual Studio from Web Storm. The mocha tests run fine in Web Storm but in Visual Studio they don't run at all. I've set the test framework on the relevant files and the test discovery phase correctly…
Jon
  • 111
  • 9
6
votes
2 answers

File path character limit error in Windows and Node App

I'm working on a Node project in Visual Studio 2012 and have just run into the infamous 260 character file path limit error. My questions is: is it even possible to work on a Node project of any significant size in Visual Studio/Windows? The long…
keepitreal
  • 547
  • 5
  • 15
5
votes
1 answer

javascript/node.js intellisense in visual studio 2013/resharper problematic

Visual Studio 2013 with: Resharper 8.2 Node.js tools Web essentials From what I gather from the node.js tools site, I should be getting intellisense. However when editing javascript in a node.js project I get strange intellisense which suggests…
nrkn
  • 1,752
  • 3
  • 15
  • 24
4
votes
1 answer

Node.js tools for Visual Studio always stops on exceptions

So I have been using Node.js tools for Visual Studio (https://nodejstools.codeplex.com) for a while. I have this recurring problem where it will always start debugging when there is an exception. This may sound like a good thing but not when the…
Gabriel
  • 327
  • 4
  • 13
3
votes
2 answers

Debugging unit tests in Node Tools Visual Studio (NTVS)

Is it possible to debug mocha unit tests using Visual Studio Node Tools? I can run all my mocha tests using the command line command mocha . -- but debugging these unit tests is not possible at the moment. Is there any way to debug unit tests…
Chris Frantz
  • 43
  • 1
  • 4
3
votes
3 answers

NTVS not running node service on the port I've specified

Port 8010 is specified in app.json, running node index.js starts the service on port 8010. NTVS starts it on a randomly assigned port each time I start the service. I have little experience with it, but have recently been give an large…
Binary Worrier
  • 50,774
  • 20
  • 136
  • 184
3
votes
2 answers

Setup a Typescript project with classes shared between client and server apps?

I currently have a solution with two projects. ServerApp (nodejs NTVS) and BrowserApp (Html Typescript application). I wish to share classes between both projects and get immediate intellisense. How to do that ? PS: for those how know GWT, what I…
bokan
  • 3,601
  • 2
  • 23
  • 38
1
2 3