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 > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 06-29-2011, 12:18 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2011
Location: New York
Posts: 18
TheStuFactor is on a distinguished road
Default Is it possible to show the console log within an app?

I'm not sure this is even possible, but figured this would be the place to ask.

Basically I'm trying to populate a UITextView within the app with the console log.

Right now I'm just calling a method on my RootViewController and passing a string. That string gets appended to an NSMutableString and I use the mutable string to populate the UITextView.

The problem I'm running into with this approach is that after the string reaches a certain size, it starts affecting performance and making the app all sluggish.

If I could somehow populate the UITextView with the console log, it will save me from the negative side-effects of maintaining a large string.

Anyone know how to do this? Is there another approach I should be considering?

Thanks in advance!
TheStuFactor is offline   Reply With Quote
Old 06-29-2011, 12:35 PM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

i don't understand what you want to do with the console.

However which size you reach for your string?...
__________________
dany_dev is offline   Reply With Quote
Old 06-29-2011, 12:46 PM   #3 (permalink)
Registered Member
 
Join Date: Jun 2011
Location: New York
Posts: 18
TheStuFactor is on a distinguished road
Default

Not sure of the exact size...but it'll get over 1 mg within 10 min use of the app (seems large but that size is normal and expected).

As to why I want to do this: I need to give my QA group a way to debug the application and qualify the bugs. They will not have access to XCode.

-S

Last edited by TheStuFactor; 06-29-2011 at 12:50 PM.
TheStuFactor is offline   Reply With Quote
Old 06-29-2011, 05:32 PM   #4 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

look 2nd reply, can be a solution
cocoa touch - Is there a way to capture the ouput of NSLog on an iPhone when not connected to a debugger? - Stack Overflow

However I would try to see which is the slow operation, maybe append? if so i would use an array to store the strings...
__________________
dany_dev is offline   Reply With Quote
Old 07-06-2011, 08:15 PM   #5 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 139
dudeofswim is on a distinguished road
Default

send the crash logs over? I remember there was something on github that did this.
dudeofswim is offline   Reply With Quote
Old 07-07-2011, 03:54 AM   #6 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

yes, i already posted many project to do it
https://github.com/guicocoa/hoptoad-ios
plcrashreporter - In-process CrashReporter framework for the iPhone and Mac OS X - Google Project Hosting
https://github.com/kaler/CrashKit
https://github.com/amazingsyco/CrashReporter
https://github.com/devinross/CrashReporterDemo
__________________

Last edited by dany_dev; 07-19-2011 at 06:27 AM.
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Tags
console, ios, nslog, nsmutablestring

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: 384
18 members and 366 guests
Absentia, AyClass, Diligent, dre, givensur, hussain1982, jbro, jPuzzle, momolgtm, Newbie123, Paul10, revg, sacha1996, skog, skrew88, taylor202, tomtom100
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,643
Threads: 94,110
Posts: 402,858
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Diligent
Powered by vBadvanced CMPS v3.1.0

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