Windows10上使用windbg调试Chromium Windows。
2024-08-31 09:32:10
###目的###
Windows10上使用windbg调试Chromium Windows。
安装Windows 10 SDK时, 就包含了windbg.exe。
"C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\windbg.exe"的路径加入Path环境变量,方便从CMD调用windbg.exe。
out\default32d\chrome --v=1 --enable-logging --user-data-dir=D:\chromium_windows\chromium_windows\src\out\default32d\datadir
[1]设置断点。
bp chrome!wWinMain
bp net!net::SSLServerContextImpl::SocketImpl::Read
bp net!net::SSLServerContextImpl::SocketImpl::Write
bp net!net::SSLClientSocketImpl::Read
bp net!net::SSLClientSocketImpl::Write
bp boringssl!SSL_read
bp boringssl!SSL_write
bp net!net::TCPSocketWin::Read
[2] 查找模块的符号。
x /D /f net!net::S*
x /D /f net!net::Socket*
[3] 单步调试。
使用命令:g, t, p, k等。
详细参考WinDbg文档。
###完毕###
最新文章
- JAVA并发编程
- The 13th Zhejiang Provincial Collegiate Contest(2016年浙江省赛)
- ASP.NET MVC应用require.js实践
- C# App.config 自定义 配置节 报错“配置系统未能初始化” 解决方法
- Git - Tutorial [Lars Vogel]
- android 源码 中修改系统字体大小
- [BZOJ 1082] [SCOI2005] 栅栏 【二分 + DFS验证(有效剪枝)】
- UICollectionView reloadData后cell被隐藏
- c#获取页面重定向url
- HDU2688-Rotate
- zookeeper环境搭建及使用
- 终止Docker容器
- obj-c编程02:给类自动合成存取方法
- mysql快速生成批量测试数据
- struts2框架之标签
- Elasticsearch从入门到精通之Elasticsearch基本概念
- Libevent源码分析—event_base_dispatch()
- Collection体系
- Qt托盘程序
- Translating between qplot and base graphics