remirobert / Dotzu

:iphone::eyes: In-App iOS Debugging Tool With Enhanced Logging, Networking Info, Crash reporting And More.
MIT License
1.8k stars 141 forks source link

`print()` only being overridden in `AppDelegate` #12

Closed jonchui closed 7 years ago

jonchui commented 7 years ago

For some reason print in other classes than AppDelegate is not getting overridden?

remirobert commented 7 years ago

Yes that's normal and, because of Swift, you need to import Dotzu on your files to get the print overridden. Sorry for that.

import Dotzu

Maybe the solution would be to add a definition in objective-c file and add to bridging header. So you won't have to import Dotzu each time. You have a Objective-c pod if you want to try.

remirobert commented 7 years ago

Reopen if you still have the issue.

jonchui commented 6 years ago

I get a 404 when clicking on it? ᐧ

Jon Chui | YwamKona.org | http://jonchui.com | @jonchui http://twitter.com/jonchui

life verse: Matt 13:44 | our family blog @ vickiandjon.com | ping me if you have exciting freelancing projects ;) | 424-241-2484

On Sun, Jan 7, 2018 at 4:17 PM, liman notifications@github.com wrote:

Hi, I released DebugMan https://github.com/liman123/DebugMan, it is forked from Dotzu https://github.com/remirobert/Dotzu. Welcome to use! 😃 thanks! @jonchui https://github.com/jonchui

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/remirobert/Dotzu/issues/12#issuecomment-355873222, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMgRAcFC6CUhioskdhzpS8Q2GSmtq8Uks5tIXq2gaJpZM4MUvcd .