This article will ignore some too basic knowledge and details continue to update, welcome to pay attention to ~
This article introduces the use of the Sources panel, screenshot below:
The left panel
-
Page Indicates that all loaded resources are grouped into folders by domain name.
-
Snippets are not lost because of refresh, use: Add => Save (CTRL + S)=> Run (Run)=> Remove (Remove)
Note: The following can be understood
Filesystem & Overrides
Local folders can be loadedContent scripts
Extension tool scripts, such as Baidu translation plug-ins
Js debug
Everyone knows how to use it.
Right-click the line number to see other debug menus
-
Add Conditional breakPoint: Allows you to enter an expression that returns a value to determine whether the line of code is paused or not
-
Blackbox Script: The inside of code that does not follow code, such as a third-party framework. In general, the proper use of f10, F11, f12 does not require this
The right side of the panel
-
Watch variable monitoring: After adding a variable, the value of the variable is always monitored. If there is no value in the current scope, < not availble > is displayed.
-
Call Stack: omitted
-
Scope Scope: Displays the Scope of the breakpoint. The levels are as follows:
Local
Variables under the scope when the current scope is expandedClosure (x)
The closure scope, where x is the function nameScript
Label scopeGlobal
The global scope Window
-
Breakpoints: Omitted
-
XHR/fetch Breakpoints request Breakpoints: ajax and fetch requests can both Breakpoints here and display the Call Stack in the Call Stack for easy tracking
-
DOM Breakpoints are the HTML Breakpoints listed in the previous article
-
Global Listeners are events bound to the Window object
-
Note That click events of a specified type, such as Mouse/click, are blocked
Refer to the link
CompileYouth