I am currently using NSLog everywhere in my code just to test it, is there a better and more professional way besides using standard NSLog? Mind sharing what other professional objective-C coders use to do logging while debugging?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- how do I log requests and responses for debugging
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
Here's my logging class. It just macros around NSLog but it allows you to have switchable levels. I borrowed and modified this from others but can't remember where - I wish I could give props. The comments are a good guide to use. Hope it helps.
I'm debugging in
Xcode
, using standard tools, for example, by adding breakpoints to some lines and viewing values of iVars when it stopped there. You can also useInstruments
to test performance and memory management.