当前位置:网站首页>Chrome debugging tips
Chrome debugging tips
2022-06-23 05:00:00 【cuncaojin】
Chrome Debugging skills
demand : Any web page , Click anywhere , Find the exact location of the network request code in the source code .
Maybe the web page is constantly refreshing data , And soon , And browser plug-ins 、 Advertising, etc .
1. format js Code

2. Turn on BlackBoxing
reason : Screen out the pages that you don't care about js File access network , Such as advertising Library , The third party js Kuo et al
practice : To be opened BlackBoxing function
operation : F12 => F1 => Blackboxing , Select the check box , Here's the picture :
It's not over yet. , Need to add rules . You can write regular expressions , But there are simple ways , That is to say Sources Open in js file , format js file , Then right-click the line number , choice Stop blackboxing, Here's the picture :
, Then you can see the change 
3. Powerful Source panel

DOM The breakpoint for node change monitoring 
Network request data view 、 Breakpoint addition 
4. format Json data
console in , Input copy( To format json data ), Then press enter , In this case, the formatted Json data Has been copied to the clipboard , Try pasting it , Another copy was printed out .
5. Network, Find out my click requests

6. Shortcut key
Ctrl + Shift + F : Choose Sources -> Page The top folder in the , Press the shortcut key , You can search the source file for the file to which the string of the specified rule belongs
Ctrl + Shift: With the previous shortcut key , You can search for useful information in the specified file
Ctrl + P: Quick location of files
Ctrl + Shift + O: Quick positioning function
Ctrl + G: Quickly navigate to a line in the file
7. Snippets (JS Editor ,Sources Next )
8. debugger
Add... To the source file debugger The debugging operation stops here
9. Debug button

- Go to the next breakpoint or stop
- next step ( Don't go into functions )
- next step ( If there is a function, enter )
- Jump out of function
- a step
- Breakpoint switch , Grey is the breakpoint , Blue indicates that the breakpoint is unavailable
- Whether to interrupt the switch when encountering an exception code
边栏推荐
- 项目总结1(头文件,switch,&&,位变量)
- 接收传来得文件并下载(简单用法)a标签
- Abnova ABCB10(人)重组蛋白说明书
- Precautions for running high-frequency and high-speed signal lines near PCB board - basic principles for high-frequency and high-speed signal design
- Pads and flash symbols in cadence
- 20000 words + 20 pictures | details of nine data types and application scenarios of redis
- Is data scientist a promising profession?
- 电流继电器JDL-1002A
- Experience of Tencent cloud installed by Kali
- 欢迎使用CSDN-markdown编辑器
猜你喜欢

五年连续亏损42亿,蘑菇如何渡劫?

CAN总线基础知识

ICER skill 02makefile script self running VCs simulation

Install and run mongodb under win10

Precautions for running high-frequency and high-speed signal lines near PCB board - basic principles for high-frequency and high-speed signal design

STL tutorial 3- exception mechanism

在Pycharm中使用append()方法对列表添加元素时提示“This list creation could be rewritten as a list literal“的解决方法

如何解决独立站多渠道客户沟通难题?这款跨境电商插件一定要知道!

Static two position relay gls-3004k/dc220v

Abnova LiquidCell-负富集细胞分离和回收系统
随机推荐
apache atlas 快速入门
Abnova PSMA磁珠解决方案
WPF 基础控件之 TabControl样式
静态双位置继电器GLS-3004K/DC220V
Using editor How to handle MD uploading pictures?
物体结构图,快速图解物体内部结构
Static two position relay xjls-84/440/dc220v
ICER skill 01 regular matching
Shadertoy basic teaching 01. Circle drawing (explanation of smoothstep() function)
PCB placing components at any angle and distance
Abnova blood total nucleic acid purification kit protocol
Freemodbus parsing 1
在Pycharm中对字典的键值作更新时提示“This dictionary creation could be rewritten as a dictionary literal ”的解决方法
Abnova abcb10 (human) recombinant protein specification
Shadertoy基础教学01、画圆(smoothstep()函数讲解)
Left and right values
Summary of switched reluctance motor suspension drive ir2128
Win10 view my Ini path
ICer技能02makefile脚本自跑vcs仿真
Li Kou today's question 513 Find the value in the lower left corner of the tree