Groups | Blog | Home
all groups > visual studio .net debugging > april 2007 >

visual studio .net debugging : How to stop the "Thread has exited with code 0" message in the debug output window


john.spraul NO[at]SPAM apisoftwareinc.com
4/2/2007 2:44:23 PM
Any ideas anywhere? I'm debugging .NET CF apps using the thread pool &
eventually the output locks up the IDE.

http://groups.google.com/group/microsoft.public.vsnet.ide/browse_thread/thread/6c783441e236d8d2/95231aab39c03a41

[quoted text, click to view]
Andrew McNab
4/19/2007 6:16:01 PM
I don't know of any way to do this. I had the same desire to get rid of them
so I could only view relevent information. I did find some nice information
on how to make the output usefull. Try giving your threads names as this
makes the thread exiting output very usefull information. For example:

System.Threading.Thread MyThread = new Thread(new
ThreadStart(MyThreadFunction));
MyThread.Name = "MyThread";
MyThread.Start();

When you close MyThread, the output window will have the name there instead
of a thread address or saying <No Name>. Before you close the threads or app
though, pause the app and open the threads window from the Debug->Windows
menu. It will bring up all active threads and the names you assigned them.
Resume the thread and the thread names will appear in the output now instead
of addresses etc.

[quoted text, click to view]
John S.
4/23/2007 11:16:57 AM
Thanks Andrew.

I found out today that in VS2K5 I can right-click the Debug output
window and uncheck the 'Thread Exit Messages' option.

On Apr 19, 8:16 pm, Andrew McNab
[quoted text, click to view]

AddThis Social Bookmark Button