Re: xcode and debugging multithreaded applications
Re: xcode and debugging multithreaded applications
- Subject: Re: xcode and debugging multithreaded applications
- From: Lawrence Gold <email@hidden>
- Date: Tue, 26 Jun 2007 10:42:45 -0600
Yves Poissant wrote:
I'm debuging a multithreaded application. I placed breakpoints in part
of the C++ code that is designed to pass inter-thread messages. So
basically, those bits of code will only execute from any threads but the
main thread. I was surprised to see that those breakpoints never fired.
So I commented out that code and ran the application again. This time
the application behavior changed (of course). So obviously, the
inter-thread messaging code was actually doing something.
One possible explanation I came to is that xcode and/or DBG will not
fire breakpoints if they are executed from any other thread but the main
thread. Is his plausible? Is there any other possible explanation I
don't see?
Note that I previously had (and occasionally still have BTW) breakpoints
that would turn orange and would not fire. But those breakpoints are
solid black so they should normally fire.
I've had no problems using breakpoints with multithreaded C++ apps using
pthreads. In case it hasn't been recommended, try disabling "Load
symbols lazily" in the Debugging preferences.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden