Debugging multiple threads

  • Thread starter Thread starter Armin Zingler
  • Start date Start date
A

Armin Zingler

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?
 
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?

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/sar...kpoint_13875/ConditionalBreakpoints_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
 
Back
Top