Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Methods of debugging node-webkit with sublime text 2 and 3

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to use sublime text 2 and 3 to debug node-webkit. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Sublime text 2 is an excellent cross-platform editor for developing node-webkit applications.

Mac OS X

1. Download node-webkit.app and put it in the / Application folder

two。 Select Tools-> Build System-> New Build System from the sublime text 2 menu

3. Enter the following code:

{"cmd": ["node-webkit", "--enable-logging", "${project_path:$ {file_path}}"], "working_dir": "${project_path:$ {file_path}}", "path": "/ Applications/node-webkit.app/Contents/MacOS/"}

1. Open a new window using File-> New Window of sublime text 2

two。 Use Project-> Add Folder to Project to add a project to the current window

3. Open your main application file (for example: index.html) from the menu on the left and select Tools-> Build

4. At this point the node-webkit application will start your project and you can see the debug output in sublime text2

It is used in the same way in sublime text3.

Windows

As above, the difference is the command to build the system, as shown below (replacing the actual path of nw.exe):

{"cmd": ["nw.exe", "--enable-logging", "${project_path:$ {file_path}}"], "working_dir": "${project_path:$ {file_path}}", "path": "C:/Tools/node-webkit/", "shell": true} about how to debug node-webkit with sublime text 2 and 3 Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report