Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with breakpoints in constructors



This was fixed in Xcode 2.3 when you use file & line number to specify the breakpoints (for instance by clicking in the Source Pane in the gutter.) If you do it by symbol name, it doesn't work yet.

The problem was that each constructor & destructor is actually implemented by 3 or 4 functions, and up to Xcode 2.3 we were only setting the breakpoint in one of them. In Xcode 2.3 we fixed the file & line specification so it broke in all the instances (this means template function breakpoints will also get all the instantiations.)

We'll get the symbol name pretty soon. This shouldn't be as big a problem for Xcode users, however, since the natural way to set breakpoints is by file & line.

Jim

On Jul 28, 2006, at 11:46 AM, Sean McBride wrote:

On 2006-07-28 14:44, david ralley said:

I've had a consistant and on-going problem setting breakpoints in
constructors in a C++ project I'm working on. Breakpoints in all other
functions work as expected, and I can step into constructors from other
functions, but I can't break directly in a constructor.


I searched the archives, and there are a few mentions of this, but none
mention a fix. Has anyone else seen this, know of a fix, or know if
XCode 2.3 fixes this issue?

This problem drove me nuts for a long time. But with Xcode 2.3 and using dwarf I no longer have the problem. Give that a try.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Problem with breakpoints in constructors (From: david ralley <email@hidden>)
 >Re: Problem with breakpoints in constructors (From: "Sean McBride" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.