当前位置:网站首页>Vs how to enter chromium subprocess debugging
Vs how to enter chromium subprocess debugging
2022-06-13 01:45:00 【weijun23】
because Chromium Multi process architecture , So debugging can be challenging . When you select... In the debugger “ function ” when , Only the main browser process will be debugged . Actually render web pages (Renderer) And the plug-in code will be done in a separate process that has not yet been debugged . To debug a subprocess, you need to make some changes , I prefer to use the auto attach to child process method .
1、 Automatically attach to child processes
Microsoft Of Child Process Debugging Power Tool Is an independent extension of this , and VsChromium Is another option bundled with many other additional features . You must also run as an administrator Visual Studio, Otherwise it will not be silently attached to Chrome Some child processes of .
2、 Manually attach to child process
You can use the debugger to attach to a running child process . choice Tools > Attach to process , And then click To attach to chrome.exe process . Before attaching , Please make sure Only native code is selected when attaching to the process . This is through “ Attach to process ” Click in the window “ choice … ” And select only “ This machine ” To complete . If you forget this , It may try to “ WebKit” Mode attach to debug JavaScript, And you will receive an error message “ In the current state ,n Illegal operation ”.
Now? , You can debug them as you would debug two processes . When debugging multiple processes , Please open the “ debugging ”>“ Windows”>“ process ” Window to switch between them .
Sometimes , You are debugging something that only happens at startup , And you want to view the child process immediately after it starts . Use :
--renderer-startup-dialog --no-sandbox
You must disable sandbox , Otherwise, the dialog box... Will be suppressed . When the dialog box appears , Please visit “ Tools ”>“ Attach to process ”, Then attach to the display “ Renderer start-up ” Dialog box process . Now? , You are debugging in the renderer , And you can press... In the dialog box “ determine ” To carry on .
There are also startup dialogs for other child process types :-- gpu-startup-dialog,-- ppapi-startup-dialog,-- plugin-startup-dialog( be used for NPAPI).
3、 Semi automatically attach the debugger to the child process
The following parameters make the child process wait in a busy loop 60 second , So that the debugger can attach it to the process . Once any one of the conditions is established , It will continue ; No exceptions were thrown .
--wait-for-debugger-children [= filter ]
filter ( Provided ) Only in the –type Only when the parameter matches the process will it trigger . Values include renderer , plug-in unit ( be used for NPAPI),ppapi ,gpu-process and Utility .
When using this option , It may be helpful to limit the number of renderer processes generated using the following methods :
--renderer-process-limit = 1
边栏推荐
- Detailed explanation of audience characteristics
- Devaxpress Chinese description -- tdxgallerycontrol object (gallery component)
- 服务器安装jupyterlab以及远程登录配置
- Devexpress implementation flow chart
- [official document summary] writing standards for academic dissertations of National University of science and technology
- 谷歌的受众群体是如何发挥作用的?
- Temporary objects and compilation optimization
- The second round of mesa
- 项目实训(十七)---个人工作总结
- [从零开始学习FPGA编程-22]:进阶篇 - 架构 - FPGA内部硬件电路的设计与建模
猜你喜欢

Devexpress implementation flow chart

How does Google's audience work?

DFS and BFS to solve Treasure Island exploration

leetcode743. Network latency (medium, Dijkstra)

Restful interface specification annotation of pringboot (2)

机器学习基础 SVM(支持向量机)

3、 Upload fabric photos to SQL server and provide name to display fabric photos

六、出库管理功能的实现

Implementation and design of JMeter interface test database assertion for CSDN salary increase technology

Matplotlib drawing Chinese garbled code
随机推荐
Restful interface specification annotation of pringboot (2)
Anims of phaser3
一种不带CPU的DPU架构:Hyperion
什么是立体角
Numpy multidimensional array transpose transpose
30: Kakfa simulates JSON data generation and transmission
[MathType] use MathType to output latex style formula
Traversal of binary tree - first order traversal, middle order traversal, and second order traversal
[learn FPGA programming from scratch -22]: Advanced chapter - Architecture - Design and modeling of FPGA internal hardware circuit
路径字段是什么? ——竞价广告
My crawler learning notes
移动IPv6光猫登录的一般ip地址账号与密码,移动光猫变桥接模式
Server installation jupyterab and remote login configuration
#pragma comment(lib,“urlmon.lib“)
Phaser3 load
Plumber game
The second round of mesa
Mysql database listening -canal
谷歌的智能出价有几种?
Stack and queue practice (C language): Demon King's language