• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
gdb, cocoa, and conditional breakpoints
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Desktop Icon position
  • Next by Date: Writing a method like "sharedApplication"
  • Previous by thread: Desktop Icon position
  • Next by thread: Writing a method like "sharedApplication"
  • Index(es):
    • Date
    • Thread