当前位置:网站首页>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
边栏推荐
- ICer技能02makefile脚本自跑vcs仿真
- Gson typeadapter adapter
- With the arrival of intelligent voice era, who is defining AI in the new era?
- Abnova blood total nucleic acid purification kit protocol
- Static two position relay xjls-84/440/dc220v
- Win10 view my Ini path
- 【OFDM通信】基于matlab OFDM多用户资源分配仿真【含Matlab源码 1902期】
- Magnetoresistive saturation
- 自举驱动、top开关电源、光耦拾遗
- PaddlePaddle模型服务化部署,重新启动pipeline后出现报错,trt报错
猜你喜欢

STL tutorial 3- exception mechanism

Abnova liquidcell negative enrichment cell separation and recovery system

静态双位置继电器GLS-3004K/DC220V

美团好文:从预编译的角度理解Swift与Objective-C及混编机制

ICer技能02makefile脚本自跑vcs仿真

STL教程3-异常机制

Common concepts and terms in offline warehouse modeling

Shadertoy基础教学02、画笑脸
Laravel中使用 Editor.md 上传图片如何处理?

物体结构图,快速图解物体内部结构
随机推荐
《微信小程序-基础篇》带你了解小程序的路由系统(二)
接收传来得文件并下载(简单用法)a标签
ICer技能03Design Compile
Is data scientist a promising profession?
Abnova ABCB10(人)重组蛋白说明书
数据科学家是不是特有前途的职业?
云原生数据库如荼如火,未来可期
TabControl style of WPF basic control
Thinkphp6 template replacement
【OFDM通信】基于matlab OFDM多用户资源分配仿真【含Matlab源码 1902期】
dolphinscheduler 2.0.5 spark 任务测试总结(源码优化)
Static two position relay xjls-84/440/dc220v
欢迎使用CSDN-markdown编辑器
Openjudge noi 1.13 51: ancient password
VGg Chinese herbal medicine identification
Current relay hdl-a/1-110vdc-1
怎样利用数据讲一个精彩故事?
The paddepaddle model is deployed in a service-oriented manner. After restarting the pipeline, an error is reported, and the TRT error is reported
STL教程3-异常机制
聊聊 C# 中的 Composite 模式