During your debugging session, you may find yourself trying to identify if a specific symbol or module appears in one or more threads.

There’s more than one way to do that, and here I covert it in the simplest way: !findstack

 

This command accepts the following arguments:

 

Symbol

Specifies a symbol or module.

DisplayLevel

Specifies what the display should contain. This can be any one of the following values. The default value is 1.

 

0

Displays only the thread ID for each thread containing Symbol.

 

1

Displays both the thread ID and the frame for each thread containing Symbol.

 

          2

Displays the entire thread stack for each thread containing Symbol.

 

I always prefer to use parameter 2.

 

Here’s how to use it:

 

!findstack <symbol/module> 2

 

 

 

 

 

 

Here you can see scripts that use !findstack.