Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6827615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:17:10+00:00 2026-05-26T22:17:10+00:00

Been watching a WWDC video today about new features in xCode 4. They have

  • 0

Been watching a WWDC video today about new features in xCode 4. They have mentioned that it a good idea to use log message actions on breakpoints along with “automatically continue after evaluation actions” enabled to output a variable’s value for instance instead of using NSLogs all the time.

lets say I have something like that:

NSLog(@"URL is : %@", userDocumentsURL);

How would I write a log message action to display userDocumentsURL’s value? Is it really a good idea to use the above method instead of NSLog?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:17:11+00:00Added an answer on May 26, 2026 at 10:17 pm

    Create a Breakpoint ‘Log Message’ action. For the log message include something like:

    URL is @(char*) [[userDocumentsURL description] UTF8String]@
    

    Alternatively you can create a breakpoint ‘Debugger command’ action similar to:

    po [NSString stringWithFormat:@"URL is: %@", userDocumentsURL]
    

    I prefer using breakpoint actions for logging, as it’s arguably easier to clear out a bunch of breakpoints than it is to remove NSLogs. A possible downside to using breakpoints in this fashion is that they are significantly slower (during debugging) than a direct NSLog.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been watching a video of a conference (See: Good JavaScript Habits for
I have been watching various videos and reading various blogs where they go about
I'm fairly new to Haskell and have been slowly getting the idea that there's
I have been watching the growing visibility of functional programming languages and features for
I have been watching Xcode tutorials on youtube and learning from examples online but
I have just been watching a TekPub video on Lambda's and the code was
I've been watching Douglas Crockford's talks at YUI Theater, and I have a question
OK, So i have been watching some MVC vids and reading some bits. I
Recently I have been watching Plural Sight ASP.NET videos on data binding, and I
I have just been watching the Stanford iPhone lecture online from Jan 2010 and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.