To see a list of code modules that are currently loaded in the Notepad process, enter this command: Notepad runs until it comes to the WinMain function, and then it breaks into the debugger. To start the Notepad process, enter this command: The output is similar to this example: 0 e Disable Clear 00007ff6`6e76b0a0 0001 (0001) 0:**** notepad!wWinMain To verify that your breakpoint was set, enter this command: To put a breakpoint at notepad!wWinMain, enter this command: The output is similar to this example: 00007ff6`6e76b0a0 notepad!wWinMain (wWinMain)Ġ0007ff6`6e783db0 notepad!wWinMainCRTStartup (wWinMainCRTStartup) To see symbols in the notepad.exe module that contain main, use the examine symbols command to list modules that match the mask: To see the symbols for the notepad.exe module, enter this command: reload command tells WinDbg to do its initial search to find and load symbol files. The debugger needs symbol files to get information about code modules, like for function names and variable names. The symbol search path tells WinDbg where to look for symbol (PDB) files. The output is similar to this example: Symbol search path is: srv*Įxpanded Symbol search path is: cache* SRV In the command line near the bottom of the WinDbg window, enter this command: (The notepad.exe file usually is in C:\Windows\System32.) For File name, enter notepad.exe. In the Open Executable dialog, go to the folder that contains notepad.exe. On the File menu, select Open Executable. Go to your installation directory, and open WinDbg.exe. C:\Program Files (x86)\Windows Kits\10\Debuggers\x86.C:\Program Files (x86)\Windows Kits\10\Debuggers\圆4.To learn how to get the tools, see Debugging Tools for Windows (WinDbg, KD, CDB, NTSD).Īfter you install the debugging tools, find the installation directories for the 64-bit (圆4) and 32-bit (x86) versions of the tools. The following hands-on exercises can help you get started using WinDbg as a user-mode debugger. WinDbg is a kernel-mode and user-mode debugger that's included in Debugging Tools for Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |