ntvs

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

那年仲夏 提交于 2020-01-01 04:22:31
问题 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 tasks. The Task Runner has the ability to detect the Gulp task and output console.log statements to a window, but I haven't found a better means of debugging. I found this post from a while back: How can I debug gulpfile.js when running it with Visual

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

余生长醉 提交于 2019-12-18 10:54:16
问题 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 successfully. Afterwards, I opened the project settings of my project and set the node.exe arguments to bin\www, startup file for express. When I press F5 (debug) I get the console.log messages I have put into the www and app.js files in the opening command prompt, and

File path character limit error in Windows and Node App

本秂侑毒 提交于 2019-12-08 20:15:35
问题 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 filepaths come from the node_modules directory which of course nests modules that have their own node_modules, which of course nests.... I thought about installing all dependencies globally but that can't be a good idea. Any suggestions? 回答1: For the

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

夙愿已清 提交于 2019-12-07 12:06:52
问题 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 want is similar to the shared project. 回答1: I managed to do it this way : create a third project named SharedClasses (I used HTML Typescript template) add my shared classes in it add a shared_reference.ts file with references to those classes files

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

孤者浪人 提交于 2019-12-06 02:46:52
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 want is similar to the shared project. I managed to do it this way : create a third project named SharedClasses (I used HTML Typescript template) add my shared classes in it add a shared_reference.ts file with references to those classes files add a link to the reference.ts file in ServerApp and BrowserApp projects that point to shared_reference.ts //

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

梦想的初衷 提交于 2019-12-05 22:53:47
问题 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 couldn't add Typescript files to it, and if I added them by hand, they did not get compiled to javascript (couldn't set their Build action to TypeScriptCompile.) And if I create a simple Typescript project, then it does not start my app with Node,

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

南笙酒味 提交于 2019-12-04 04:23:52
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 couldn't add Typescript files to it, and if I added them by hand, they did not get compiled to javascript (couldn't set their Build action to TypeScriptCompile.) And if I create a simple Typescript project, then it does not start my app with Node, because it is basically just an ASP.Net web project. Is it possible to somehow create a VS project that uses

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

不问归期 提交于 2019-12-03 11:07:07
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 tasks. The Task Runner has the ability to detect the Gulp task and output console.log statements to a window, but I haven't found a better means of debugging. I found this post from a while back: How can I debug gulpfile.js when running it with Visual Studio Task Runner Explorer? However, this post doesn't involve NodeJS Tools for VS. So, I'm re-asking