Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you're trying to get a stack dump while the process is already running (a la jstack), there are two methods as described <a href="http://www.tomergabel.com/NETProductionDebugging101.aspx" rel="noreferrer">here</a>:</p> <h3>Using Managed Stack Explorer</h3> <p>There is a little-known but effective tool called the <a href="http://www.tomergabel.com/ct.ashx?id=1db72c20-3c25-42ad-93c4-b0551a0fed4e&amp;url=http%3a%2f%2fwww.microsoft.com%2fdownloads%2fdetails.aspx%3fFamilyID%3d80CF81F7-D710-47E3-8B95-5A6555A230C2%26displaylang%3den" rel="noreferrer">Managed Stack Explorer</a>. Although it features a basic GUI, it can effectively be a .NET equivalent of jstack if you add to the path; then it’s just a question of typing:<pre>mse /s /p <i>&lt;pid&gt;</i></pre></p> <h3>Using windbg</h3> <ol> <li>Download and install the appropriate Debugging Tools for Windows version for your architecture (x86/x64/Itanium)</li> <li>If you need information about Windows function calls (e.g. you want to trace into kernel calls), download and install the appropriate symbols. This isn't strictly necessary if you just want a thread dump of your own code.</li> <li>If you need line numbers or any other detailed information, make sure to place your assemblies' PDB files where the debugger can find them (normally you just put them next to your actual assemblies).</li> <li>Start->Programs->Debugging Tools for Windows [x64]->windbg</li> <li>Attach the debugger to your running process using the menu</li> <li>Load the SOS extension with ".loadby sos mscorwks" for .NET 2.0 (".load sos" for .NET 1.0/1.1)</li> <li>Take a thread dump using "!eestack"</li> <li>Detach using ".detach"</li> </ol> <p>I just found it necessary to take a production thread dump and this worked for me. Hope it helps :-)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload