gdb, cocoa, and conditional breakpoints
gdb, cocoa, and conditional breakpoints
- Subject: gdb, cocoa, and conditional breakpoints
- From: Mark Dawson <email@hidden>
- Date: Wed, 19 Jan 2005 18:46:26 -0800
I have a few questions about using gdb for watch points.
(1) I read (TN2032) that watchpoints are not recommended, but conditional break points are. Is that still true (XCode 1.5, Panther)?
(2) I wasn't clear how I set a conditional breakpoint on a variable within a Cocoa class.
@interface DrawRect : NSObject {
float origin;
float size;
}
- (id)init;
@end
drawBounds = [[DrawRect allocWithZone:NULL] init];
Given the above code, how would I set a conditional break point (maybe if size != 4) on the drawBounds object?
Thanks!
mark _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden