Debugging multiple threads

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

Onur Güzel

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top