Windows10上使用windbg調試Chromium Windows。

###目的###
Windows10上使用windbg調試Chromium Windows。chrome

安裝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\datadirwindows

[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*ssl

[3] 單步調試。
使用命令:g, t, p, k等。
詳細參考WinDbg文檔。文檔

###完畢###it

相關文章
相關標籤/搜索