Main Site Documentation

How to identify a thread for debug purposes


#1

How can a thread be identified, e.g. for a Debug.Print() statement?

.NET “large” Framework has at least the Thread.Name property that can be set from code.

Roland.

Btw.: Maybe this has been asked many times before, but searching for “thread” in the forum yields thousands of results, and “identify thread” doesn’t match anything.


#2

I do not believe this is an option on NETMF. It is a rather unneeded functionality do it is not in NETMF I assume.


#3

ManagedThreadID is coming in netmf vNext. You can see threads in threads window after debug break. Not sure how from Debug.Print.