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 > Mac OS X Development Forums > Mac OS X Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-05-2009, 10:39 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 148
rraagg is on a distinguished road
Default New to XCode, is there a VisualStudio style immediate window?

New to XCode, is there a VisualStudio style immediate window?
i.e when I've stopped on a breakpoint in debug mode, A place where i could type variable name and it gives me the value, for e.g.

? Person.Name
"Smith"

I have noticed you can hover over objects but I still cant see the values in NSString and NSDate objects I can only see loads of crap about unicode etc!

Hope someone can help.

Thanks in advance :-)
rraagg is offline   Reply With Quote
Old 09-05-2009, 01:28 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 27
ldv75 is on a distinguished road
Default

Quote:
Originally Posted by rraagg View Post
New to XCode, is there a VisualStudio style immediate window?
i.e when I've stopped on a breakpoint in debug mode, A place where i could type variable name and it gives me the value, for e.g.

? Person.Name
"Smith"

I have noticed you can hover over objects but I still cant see the values in NSString and NSDate objects I can only see loads of crap about unicode etc!

Hope someone can help.

Thanks in advance :-)
so far i'm missing this too. I ddn't find anything similar

waiting for help
__________________
My Apps:
--------------------------------------------------------------
On iTunes:
-iSuperBall!!: winning numbers for SuperBall and MegaMillion
-iNewYear
-EasterDay
-iAmore
-6Vincenti: Italian SuperEnalotto lottery
-iWinForLife: Italian Win for Life lottery
-myPicNotes
ldv75 is offline   Reply With Quote
Old 09-05-2009, 06:01 PM   #3 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 91
CaptainCode is an unknown quantity at this point
Default

Quote:
Originally Posted by rraagg View Post
New to XCode, is there a VisualStudio style immediate window?
i.e when I've stopped on a breakpoint in debug mode, A place where i could type variable name and it gives me the value, for e.g.

? Person.Name
"Smith"

I have noticed you can hover over objects but I still cant see the values in NSString and NSDate objects I can only see loads of crap about unicode etc!

Hope someone can help.

Thanks in advance :-)
In the debugger window you can type in any valid code.
To print out a variable type
po varName
It works for most things
CaptainCode is offline   Reply With Quote
Old 09-27-2009, 05:43 AM   #4 (permalink)
Desi Jatt!
 
Join Date: Sep 2009
Location: Aotearoa [NZ]
Posts: 4
desijattnz is on a distinguished road
Default

I don't think there a a gui, but make yourself familiar with gdb! Thats the beast you need to learn how to tame! Once you got that, you'll know what to do!
desijattnz is offline   Reply With Quote
Old 09-27-2009, 04:58 PM   #5 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 148
rraagg is on a distinguished road
Default

Quote:
Originally Posted by desijattnz View Post
I don't think there a a gui, but make yourself familiar with gdb! Thats the beast you need to learn how to tame! Once you got that, you'll know what to do!
Yeah will start looking into that.
nice tag man
Sasriakal!
rraagg is offline   Reply With Quote
Old 09-30-2009, 12:25 AM   #6 (permalink)
Desi Jatt!
 
Join Date: Sep 2009
Location: Aotearoa [NZ]
Posts: 4
desijattnz is on a distinguished road
Default

Quote:
Originally Posted by rraagg View Post
Sasriakal!
It's actually, Sat Sri Akal

Thanks!
desijattnz is offline   Reply With Quote
Old 01-15-2011, 02:26 PM   #7 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 1
Ironman_E is on a distinguished road
Default

Quote:
Originally Posted by rraagg View Post
New to XCode, is there a VisualStudio style immediate window?
i.e when I've stopped on a breakpoint in debug mode, A place where i could type variable name and it gives me the value, for e.g.

? Person.Name
"Smith"

I have noticed you can hover over objects but I still cant see the values in NSString and NSDate objects I can only see loads of crap about unicode etc!

Hope someone can help.

Thanks in advance :-)
When running your code, stop at a breakpoint and go to Run->Show->Expressions...

You can use Run->Debugger to see the local variables or jump out or deep into your code. Wherever you are you can see the local variables and use Expressions to variable values.

Both are very useful tools and provide you with more confidence in your code.
Ironman_E is offline   Reply With Quote
Reply

Bookmarks

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: 462
14 members and 448 guests
alexeir, David-T, Dj_kades, foslock, iAppDeveloper, jeroenkeij, Mijator, myach, pipposanta, QuantumDoja, robsmy, sacha1996, SLIC, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

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