Debugging iPhone and iPad Projects

Debugging is still an art, not a science; but there are some techniques that can help. This site shares several techniques to help iPhone and iPad developers to debug program codes effectively.

Table of Contents

Let's start!
Intro to debugging
Scientific method of debugging
The 13 golden rules of debugging
Cool basics on Memory Stomp

Zombie is your Friend!
Enable Zombie Objects

Utilize Malloc debugging features
Enabling Guard Malloc
Configuring the Malloc Environment Variables
Detecting Double Freed Memory
Detecting Heap Corruption
Detecting Memory Smashing Bugs

Dive deeply with EXC_BAD_ACCESS
Understanding EXC_BAD_ACCESS
Debugging EXC_BAD_ACCESS in Xcode using Instruments

Have fun with Debugger
GDB
LLDB
 
Take help from Dynamic Linker
Dynamic Linker (dyld)
    Older Post Home

    My Tutorial Blogs

    On Debugging
    >> Practical debugging with LLDB
    >> Debugging and Profiling with Valgrind
    >> Debugging iPhone and iPad Projects

    On Game Programming
    >> Game Programming : Beginning to Advanced
    >> Learn to Develop iPhone iPad Games using Cocos2d

    On Mobile Application Programming
    >> Learn Android By Example
    >> Learn iPhone Programming By Example

    On Extreme Programming
    >> XP at Game Development : Deliver Great Games

    Popular Posts

    • Enabling Guard Malloc
      Guard Malloc is a special version of the malloc library that replaces the standard library during debugging. Guard Malloc uses several ...
    • Detecting Heap Corruption
      To enable heap checking, assign values to the MallocCheckHeapStart and MallocCheckHeapEach environment variables. You must set both of th...
    • Debugging with LLDB
      Xcode offers two command-line debuggers: gdb and lldb. The LLDB project (hosted at http://llvm.org ) expands upon the standard GNU debugger...
    • Enable Zombie Objects
      Enabling Zombie Object is a great tool for tracking tricky memory problems with Objective-C objects. NOTE:  Zombie can be used when debu...
    • Configuring the Malloc Environment Variables
      The malloc library provides debugging features to help you track down memory smashing bugs, heap corruption, references to freed memory...
    Simple theme. Powered by Blogger.