domesticcatsoftware / DCIntrospect

Small library of visual debugging tools for iOS.
domesticcat.com.au/projects/introspect
MIT License
2.18k stars 267 forks source link

Cannot fully disable DCIntrospect #42

Open schwa opened 12 years ago

schwa commented 12 years ago

It would be really nice if DCIntrospect could be fully disabled at compile time without removing the code from Xcode or performing other Xcode setting gymnastics.

We wrap DCIntrospect starting with:

if USE_DCINTROSPECT == 1

[[DCIntrospect sharedIntrospector] start];

endif

And even with this code disabled DCIntrospect still interfers with the Keyboard animations (see issue #9). It seems there are side effects to just including code in project (I imagine there's a +load somewhere loading code).

wcgray commented 12 years ago

Has this been fixed? When I comment out the [[DCIntrospect sharedIntrospector] start] the keyboard animation works as expected. Plus the [DCIntrospect sharedIntrospector] returns nil if DEBUG is not defined, so this should resolve the issue, right?