Windows10上使用windbg调试Chromium Windows。
###目的###
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文档。
###完毕###
posted on 2018-09-18 00:58 huangguanyuan 阅读(1550) 评论(0) 编辑 收藏 举报