Webstorm Remote Debugging node. js

Source: Internet
Author: User

1, service start IP and port, if the cloud service, IP Select the server intranet IP. A firewall is required to add ports as well.

#添加端口

  $ firewall-cmd--zone=public--add-port=58585/tcp--permanent//(Permanent is a save configuration, otherwise this modification will not work after the next reboot)

# Restart firewall:
$ firewall-cmd--reload

#调试方式启动nodejs项目
$ node--inspect=10.24.251.181:9229 bin/www

2, in the Webstorm Project window, open the Run/debug configurations window, click the plus sign (+) select "Attach to Node.js/chrome", such as after the preparation, start the preparation.

  

If it is a cloud server, Host fills out the extranet IP.

  

Webstorm Remote Debugging node. js

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.