• 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
Re: Serious OS/X & Cocoa Debugging Issues...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serious OS/X & Cocoa Debugging Issues...


  • Subject: Re: Serious OS/X & Cocoa Debugging Issues...
  • From: David Ewing <email@hidden>
  • Date: Fri, 19 Oct 2001 16:08:09 -0600

on 10/19/01 3:36 PM, David E. Weekly at email@hidden wrote:

> Hello, all. I've been having a very rough time using Project Builder to
> debug applications with gdb on OS/X 10.1. I'll very frequently get gdb
> internal errors (after which, debugging must be restarted) and it simply
> doesn't work at all with NSThreads, it seems. (I'll set a breakpoint, and
> it'll whiz right by...) Pile this on with the inability to view what's
> inside an object (far from being able to just mouseover a string variable in
> debug mode, gdb simply refuses to offer you an NSString's guts altogether),
> and it's making for a really wrenchingly bad experience.
>
> Now before I give up on using Cocoa/Objective-C to write the UI for my
> company's OS/X port and go off to learn Carbon, can someone explain to me
> how to make this a sane development / debugging environment? It's really not
> right now, and I'm kind of at wit's end.

It would be really helpful if you could file a bug report at
bugreport.apple.com and include your source code. At the very least, we'd
like to see what those gdb internal errors are. (Aside: gdb has
traditionally not dealt with threaded code very well - no flames please! -
but we are trying to improve it.)

As for showing the contents of NSStrings and the like, Ctl-Click on the
variables in the debugger, and you'll see a "Print Description to Console"
menu item. This is equivalent to doing a 'po' at the gdb command line.

Dave


  • Prev by Date: CORBA with Mac OS X
  • Next by Date: Re: CORBA with Mac OS X
  • Previous by thread: Re: CORBA with Mac OS X
  • Next by thread: colorWithPatternImage, setScalesWhenResized, and jpegs
  • Index(es):
    • Date
    • Thread