How does someone debug Sails.js code in Visual Studio?

I am currently testing Node.JS and using the Visual Studio Community with Node.js Tools as my main IDE.

If I created an Express application using this interface: enter image description here

Then I would click F5, my Express application will start, and I will see this beautiful debug window:

enter image description here

However, if I install Sails.js using npm -g install sails, I no longer see this debug window in my test Sail.js application (if I create it in my Visual Studio) or in the Express application.

My application will start as expected, except that I no longer see the debug window.

The debug window is returned only in the following cases:

  • Remove the sails from my car using npm -g uninstall sails
  • Node.js

, Sails? Express Sails.

+4
1

Sails Visual Studio. Visual Studio, - .

  • Node.JS VS
  • ( ), . appName. / API, . , , api

  • : Sails node_modules, node VS npm

  • "" > " ".
  • Sails
  • , , app.js. . app.js, package.json readme.
  • npm, ...
  • app.js js
  • / . .

, .

+4

Source: https://habr.com/ru/post/1625016/


All Articles