Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I see my applications threads while debugging in Visual Studio?

I would like to see the threads currently active in my application while debugging it.

How can I do this using Visual Studio?

like image 223
George Mauer Avatar asked Oct 02 '08 21:10

George Mauer


People also ask

How do I debug a particular thread in Visual Studio?

Once the breakpoint hits and you are in the thread you want, in the Visual Studio Threads window (while debugging, Debug -> Windows -> Threads), Ctrl + A (to select all threads), and then Ctrl + click the thread you are currently on. You should have all threads except the one you want to debug selected.

How do I see what processes are running in Visual Studio?

With the app running, in Visual Studio, select Debug > Attach to Process. In the Attach to Process dialog, type the first letters of process names from the following list, or enter them into the search box. The one that is running is the one running the ASP.NET app. Attach to that process to debug the app.

What are threads in debugging?

A thread is a sequence of instructions to which the operating system grants processor time. Every process that is running in the operating system consists of at least one thread. Processes that have more than one thread are called multithreaded.


2 Answers

Yes, go to Debug->Windows->Threads

like image 174
RichS Avatar answered Oct 13 '22 22:10

RichS


Debug | Windows | Threads

or

Ctrl+Alt+H

like image 45
Ferruccio Avatar answered Oct 13 '22 22:10

Ferruccio