当前位置:网站首页>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
边栏推荐
- 开发者来稿|AMD赛灵思中文论坛分享 - 提问的智慧
- [WSL2]限制WSL2可访问的硬件资源(CPU/内存)
- Introduction to common ROS commands
- Devaxpress Chinese description --tdximageslider (picture rotation control)
- My crawler learning notes
- Design of distributed game server
- Delphi Google API text to speech MP3 file
- 深度学习调参技巧详解
- Three paradigms of database
- Plumber game
猜你喜欢

What is solid angle

Tweets movement description and chart display

Startup, connection and stop of MySQL service

白噪声的详细理解

leetcode743. 网络延迟时间(中等, dijkstra)

Explanation and application of prefix sum (one-dimensional, two-dimensional)

6、 Implementation of warehouse out management function
![[andoid][step pit]cts 11_ Testbootclasspathandsystemserverclasspath at the beginning of R3_ Analysis of nonduplicateclasses fail](/img/b5/7ea603775dc0448368d209de037a43.png)
[andoid][step pit]cts 11_ Testbootclasspathandsystemserverclasspath at the beginning of R3_ Analysis of nonduplicateclasses fail

Summary of various installation methods of Lab View

服务器安装jupyterlab以及远程登录配置
随机推荐
General IP address, account and password of mobile IPv6 optical cat login, and mobile optical cat is in bridging mode
Matplotlib drawing Chinese garbled code
The interviewer only asked me five questions and the interview was over
4、 Improvement of warehousing management function
About tkinter Canvas does not display pictures
Page optimization - Notes
Topic creation and running example of ROS
About retrieving ignored files in cornerstone
pytorch : srcIndex < srcSelectDimSize
兴趣相似的受众群体
The first cell of devaxpress CXGRID after inserting a row is in focus editing status
[Andoid][踩坑]CTS 11_r3开始出现的testBootClassPathAndSystemServerClasspath_nonDuplicateClasses FAIL问题分析
Getting started with phaser 3
Tweens of phaser3
谷歌加大型文字广告是什么?怎么用?
深度学习调参技巧详解
四、入库管理功能的完善
详细受众特征详细解释
pringboot之restfull接口规范注解(二)
Devaxpress Chinese description --tcximagelist (enhanced image list control)