In WinDBG, use the. shell Command to search for strings.

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.