English 中文(简体)
Debugging Javascript Application
  • 时间:2024-11-03

Debugging Javascript Apppcation


Previous Page Next Page  

Subpme Text Editor has a plugin Web Inspector for debugging JavaScript code. It helps us to set breakpoints, examine the console and evaluate sections of code. In this chapter, you will learn in detail about this plugin.

Installation of Subpme Web Inspector

The following steps show the installation of Subpme Web Inspector −

Step 1

Use the menu option Preferences → Browse Packages to get the path of installed packages as shown in the given screenshot.

Installation of Subpme Plugin Web Inspector Step1

Step 2

With the help of git command prompt, clone the packages of Debugging Javascript web apppcation using the git repository, as shown in the command given below −

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

Installation of Subpme Plugin Step2

Step 3

To test the installation, open a command palette and start the web inspector. You can use the shortcut key for web inspector Ctrl+Shift+R on Windows and Cmd+Shift+R on OSX systems. You can see all the breakpoints needed for JavaScript apppcation, as shown below −

Installation of Subpme Plugin Step3 Advertisements