Debugging node. JS Code with Phpstorm

Source: Internet
Author: User

node. JS has been out for a while and it's time to do something, though not yet 1.0, but it should be fast.

Installation

Have to say, as the Late Show, all kinds of tools do well, install node is also, is a few minutes of things, there is a thing called NVM, Windows corresponding to the NVMW, used to install node, want to Ann several versions are not laborious AH. To start the installation:

  1. git clone git://github.com/hakobera/nvmw.git "%HOMEDRIVE%%HOMEPATH%.NVMW"
  2. Set "path=%homedrive%%homepath%.nvmw;%path%"

The second step can also be added to the environment variable path, once and for all. NVMW is installed, it is very good to use it to install node. NVMW Install 0.12.0
If access to GitHub is normal, less than 1 minutes, done. Then, NVMW use 0.12.0, enter node, if you jump out of the command line, it means the installation is successful.

Configure Phpstorm
  1. Phpstorm the default of course and node does not matter, but there are plugins ah. In the settings plugin, add the node. js plugin.
  2. Set up? node. js and NPM, set the Node.exe path, download the source code
  3. Run? Debug settings, add a node. js Debug Configuration, and configure each parameter


A little bug, start the browser, set breakpoints, refresh under, OK, stop! The little buddy is no longer worried about node. js Debugging.

Debugging node. JS Code with Phpstorm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.