PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

Debugging multiple threads

 
 
Armin Zingler
Guest
Posts: n/a
 
      26th Sep 2010
Another one...:

There are two threads. UI and worker. I have breakpoints
in the worker. Im single-stepping through the UI thread.
My problem is: No stop at any breakpoint in the worker thread.
(not optimized debug config; full symbols). How can I make the
IDE stop at the breakpoints?

--
Armin
 
Reply With Quote
 
 
 
 
Onur Güzel
Guest
Posts: n/a
 
      27th Sep 2010
On Sep 26, 8:27*pm, Armin Zingler <az.nos...@freenet.de> wrote:
> Another one...:
>
> There are two threads. UI and worker. I have breakpoints
> in the worker. Im single-stepping through the UI thread.
> My problem is: No stop at any breakpoint in the worker thread.
> (not optimized debug config; full symbols). How can I make the
> IDE stop at the breakpoints?
>
> --
> Armin


Hi Armin,
I'm not sure that may help you, but AFAIK, while debuggin multiple
threads using breakpoints (in debug mode and .pdb file is generated,
of course), you have a couple of choices to sort things out such as:

-Setting breakpoint filter:
http://msdn.microsoft.com/en-us/library/wyakk529(v=vs.80).aspx

-Use breakpoint window to see all breakpoints and define type of
action by right-clicking on them:
http://msdn.microsoft.com/en-us/library/02ckd1z7.aspx

http://blogs.msdn.com/blogfiles/sara...ints_thumb.jpg

-You can set a Thread Name or Thread ID in order to filter desired
thread within all the project's breakpoints.
http://msdn.microsoft.com/en-us/library/dtw169z6(v=vs.80).aspx
http://msdn.microsoft.com/en-us/library/581hfskb(v=vs.80).aspx

-Try seeing "Threads Window". In there you can freeze or switch
between threads. See for details:
http://msdn.microsoft.com/en-us/library/bb157784.aspx

HTH,

Onur Güzel
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging Windows Application with Threads tshad Microsoft C# .NET 1 31st Aug 2009 11:30 AM
Threads debugging Lubomir Microsoft C# .NET 3 25th Apr 2008 11:40 AM
Debugging multiple threads : freeze problem - solved Bob Bryan Microsoft C# .NET 0 26th Mar 2008 09:23 AM
Debugging threads in Visual Studio 2005 Ken Allen Microsoft Dot NET 4 21st Dec 2005 08:44 PM
Debugging problems with multiple threads in VS 2005 rwaddell@gmail.com Microsoft Dot NET 1 25th Nov 2005 02:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 PM.