Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode, no debug symbols for certain subclass

I'm using Xcode 3.2.3 and iPhone SDK

So I'm trying to debug a UIView subclass, I hit a breakpoint in an overridden method and I can't see any symbols in either the GUI or gdb, just globals and registers.

This is what I see:

(gdb) po self
No symbol "self" in current context.

Yet when I set a breakpoint in a UIViewController subclass, all the symbols are there:

(gdb) po self
<MyViewController: 0x5c18ae0>
Current language:  auto; currently objective-c

Some things I've tried:

  • clean all/rebuild
  • restart Xcode
  • change between debug and release
  • config these options in Project settings:
    • GCC_DEBUGGING_SYMBOLS = All
    • Symbols DEBUG_INFORMATION_FORMAT = DWARF, DWARF w/ dSYM File
    • BUILD_VARIANTS = normal, debug
  • threatening Xcode by swearing at it and typing rm -rf /Developer into a root bash prompt

Please help, my fingers are bleeding from debugging with NSLog

like image 640
MTS Avatar asked Jun 20 '10 04:06

MTS


1 Answers

I experience this bug often. My workaround is typing the bt command on the gdb console, it then automagically sorts itself out and starts recognizing symbols in the current context.

like image 83
Julio Gorgé Avatar answered Sep 22 '22 10:09

Julio Gorgé