Debugging tips please

  • From the stack trace in gdb I understand that my app dies when
    autoreleasing. Okay... so I released a little too much somewhere... how
    do I find that? What's the tip?

    Are there any tools to help?
  • On Monday, December 3, 2001, at 03:27  PM, Joakim Arfvidsson wrote:

    > From the stack trace in gdb I understand that my app dies when
    > autoreleasing. Okay... so I released a little too much somewhere... how
    > do I find that? What's the tip?

    If you're using Objective-C, NSZombieEnabled=YES; can be useful.

    But don't forget to remove it in the final build.
  • On Tuesday, December 4, 2001, at 12:21  pm, Stéphane Sudre wrote:

    >> From the stack trace in gdb I understand that my app dies when
    >> autoreleasing. Okay... so I released a little too much somewhere...
    >> how do I find that? What's the tip?
    >
    > If you're using Objective-C, NSZombieEnabled=YES; can be useful.
    >
    > But don't forget to remove it in the final build.

    Uhm, it's an environment variable, you don't need to remove it. You just
    unset it in your environment before launching it. Unless of course you
    are programmatically setting it to use it, which is probably bad.
    Instead you can just use the env vars tab of the executables tab in your
    target's settings.

      -- Finlay
  • You can also set that variable in GDB so you don't have to compile it
    in ...

    MDT

    On Tuesday, December 4, 2001, at 04:21  AM, Stéphane Sudre wrote:

    >
    > On Monday, December 3, 2001, at 03:27  PM, Joakim Arfvidsson wrote:
    >
    >> From the stack trace in gdb I understand that my app dies when
    >> autoreleasing. Okay... so I released a little too much somewhere...
    >> how do I find that? What's the tip?
    >
    > If you're using Objective-C, NSZombieEnabled=YES; can be useful.
    >
    > But don't forget to remove it in the final build.
    >
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
    >
previous month december 2001 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today
MindNode
MindNode offered a free license !