paul deter
paul deter

Reputation: 857

icons shown in left margin of IDE during debugging

During debugging, I see these two symbols (shown in green rectangles). Can someone help me understand what does these indicate?

enter image description here

Upvotes: 7

Views: 234

Answers (1)

grovesNL
grovesNL

Reputation: 6075

This is used to represent the presence of threads at the current statement of the debugger. It allows you to determine which thread is active for the debugger.

For example, when my cursor is on the line Thread.Sleep(10) in this pointless example, I can choose which worker thread I am interested in (and set breakpoints by its process ID):

Thread example

Here I can see each of the worker threads that are currently active, and that I am currently stepping through the worker thread with the ID 28468. I can also flag threads easily or try to move the cursor to a different thread where possible.

Note that you will only see the thread icons if you've enabled "Show Threads in Source" on the debugger toolbar.

Show Threads in Source

Upvotes: 4

Related Questions