Home  >  Article  >  Development Tools  >  How to use and debug JavaScript programs with Web Inspector in Sublime

How to use and debug JavaScript programs with Web Inspector in Sublime

藏色散人
藏色散人Original
2018-11-08 15:50:084962browse

The following tutorial column will introduce you to the installation of Web Inspector in Sublime and the debugging of JavaScript code. SublimeText3 download address: SublimeText3 Chinese version:

http://www.php.cn/xiazai/gongju/93

## SublimeText3 Mac version: http://www.php.cn/xiazai/gongju/500

SublimeText3 Linux new version: http://www.php.cn /xiazai/gongju/1471

SublimeText3 English version: http://www.php.cn/xiazai/gongju/1473

Sublime Text Editor has a plug-in Web Inspector for
debugging JavaScript code

. It helps us set breakpoints, inspect the console and evaluate code snippets. In this chapter, you will learn more about this plugin.

Installation of Sublime Web InspectorThe specific steps are as follows:

Step 1

Use the menu option Preferences→Browse Packages to obtain the installed software package path as shown in the given screenshot.

Step 2

With the help of git command prompt, clone the package for debugging Javascript web application using git repository as given below The command is shownHow to use and debug JavaScript programs with Web Inspector in Sublime

git clone -b ST3 "git://github.com/sokolovstas/SublimeWebInspector.git"


Step 3

How to use and debug JavaScript programs with Web Inspector in SublimeTo test the installation, open the command palette and launch the Web Inspector. You can use the Web Inspector shortcut Ctrl Shift R on Windows and Cmd Shift R on OSX systems. You can see all the breakpoints required for your JavaScript application as shown below


This article is about the installation of Web Inspector in Sublime and the introduction of debugging JavaScript programs. I hope it will be helpful to friends in need~

The above is the detailed content of How to use and debug JavaScript programs with Web Inspector in Sublime. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn