Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stack trace in running program (pstack equivalent in Windows)

I'm trying to debug a .NET application that deadlocks/freezes at certain times. Is there a way to see what the application is doing when it freezes? I assume Visual Studio provides some way to see stack trace after attaching to an application? (I did try Debug > Attach to process and opened the Call Stack and Stack Trace Explorer Windows but nothing is shown there). I'm looking for something equivalent to what pstack (on Unix/Linux) does i.e. show stack of running process.

like image 637
ubi Avatar asked Sep 26 '22 16:09

ubi


1 Answers

After attaching Visual Studio to the process, just click Pause to see the Threads & Call Stack windows as-of any given time.

like image 169
SLaks Avatar answered Nov 15 '22 06:11

SLaks