One of the most useful commands for me to use WinDGB is the. shell Command.
Debugging Tools For Windows Help file:
The. shell Command can load a shell process and redirect its output to the debugger, or redirect it to a specified file.
So why do I think loading a shell process will be helpful for daily work? The simplest and most common function for loading shell processes is to search for strings. You may wonder why Ctrl + F is not used in debugger to search for strings? This will save you time.
To search for strings in shell, we need to use the DOS command to Find this old friend. Use the command to find /? To view the Help file.
The following command is an example: search for a string "SharePoint" in the result of the lm command ".
Originally, the lm (List Loaded Modules) Command will List all the Modules, and the results will be dozens of times, which is inconvenient to Find. Use the. shell Command Find to Find the desired module.
. Shell-ci "lm" find/I "SharePoint"
Parameter-ci is used to specify the output result of the "lm" command to input the find command.
Translated from:
Windbg: Using. shell to search text
Http://blogs.msdn.com/ B /baleixo/archive/2008/09/06/using-shell-to-search-text.aspx