Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-23-2010, 04:01 PM   #1 (permalink)
Awesome
 
Esko2300's Avatar
 
Join Date: Jun 2009
Location: New York, N.Y.
Posts: 389
Esko2300 is on a distinguished road
Default Cool Tip i just learned

I was browsing the web looking up some tips for this program im working on and i came across this which i believe will help solve some of my problems while coding iphone applications. You ever have one of those bugs that you had no idea where to even begin to look where the bug could be happening cause the compiler just dosent tell you. Well alas my friends this tips for you then, what i found out today is that you can use
Code:
//at the beginning of any method
NSLog(@"Entering:%s",__PRETTY_FUNCTION__);
//and this at the end of any method
NSLog(@"Leaving:%s",__PRETTY_FUNCTION__);
and this will tell you exactly what class and what function the program is accessing, for instance the output would be
Code:
2010-08-23 16:52:34.820 MYAPP[5890:207] Entering -[MyClass MyFunctionName:]
now that i found this my entire debugging process will be littered with this little bad boys, might not be too efficant as a way to debug but any little help counts right people
Esko2300 is offline   Reply With Quote
Old 08-23-2010, 04:07 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

*cough*
|
|
|
|
vvvvvvvvvvvvvv
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 08-23-2010, 04:12 PM   #3 (permalink)
Awesome
 
Esko2300's Avatar
 
Join Date: Jun 2009
Location: New York, N.Y.
Posts: 389
Esko2300 is on a distinguished road
Default

oh wait dude that was you lol i wanted to add the website i found it off of and say hey people thank this dude but i xed out the webpage. im not trying to step on your toes dude i was just trying to help the masses like you helped me


Quote:
Originally Posted by BrianSlick View Post
*cough*
|
|
|
|
vvvvvvvvvvvvvv
Esko2300 is offline   Reply With Quote
Old 08-23-2010, 04:14 PM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

No problem. The more people know about it, the more problems they can solve for themselves.

I don't think there is any mention of the utility on my blog page though. I should add that.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Reply

Bookmarks

Tags
console output, debugging, hint, nslog

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 337
5 members and 332 guests
freewind, HemiMG, lendo, Newbie123, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,894
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:55 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0