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 9158169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:11:11+00:00 2026-06-17T13:11:11+00:00

I have the following piece of code in xcode and would like to inspect

  • 0

I have the following piece of code in xcode and would like to inspect the contents of “link” which is a local object “ReaderDocumentLink *link” declared in the for loop and I set breakpoint at the line
“result = [self annotationLinkTarget:link.dictionary];” as show below:

-(id)singleTap:(UITapGestureRecognizer *)recognizer
{
    id result = nil; // Tap result object

    if (recognizer.state == UIGestureRecognizerStateRecognized)
    {
        if (_links.count > 0) // Process the single tap
        {
            CGPoint point = [recognizer locationInView:self];

            for (ReaderDocumentLink *link in _links) // Enumerate links
            {
                if (CGRectContainsPoint(link.rect, point) == true) // Found it
                {
                    result = [self annotationLinkTarget:link.dictionary]; 
                    break;
                }
            }
        }
    }

    return result;
}

I tried “po link” and it doesn’t work. (it reports error as below:

error: ‘link’ has unknown type; cast it to its declared type to use it

error: 1 errors parsing expression

So what shall I do to print out the details in the “link” object? including the contents of link.dictionary as well. Thanks.

  • 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-06-17T13:11:12+00:00Added an answer on June 17, 2026 at 1:11 pm

    Xcode added the notion of a log breakpoint. That’s what the OP is asking for. And he’s come upon one of it’s biggest stopping points: po has to be turned loose on a type that has a description method that does something. I don’t use these a lot for this very reason: there are too many integral types still in the code that you want to inspect.

    You could turn the item into an object inside the breakpoint, but that’s a nuisance too, e.g. [NSNumber numberWithFloat:5.5] and then po that.

    Link should work here. Maybe you are trying to do po on a line where it’s out of scope?

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

Sidebar

Related Questions

I have the following piece of code that I would like help with... public
I have the following piece of code which outputs a long article: <?php the_content();
I have the following piece of code: private Dictionary<object, object> items = new Dictionary<object,
I have the following piece of code, which should at the breakpoint show 123
I have following piece of code in my jsp file which getSession information: <jsp:useBean
I have the following piece of code to listen to a port which is
I have the following piece of code which fails with the following error: RuntimeError:
I have following piece of code, which should be able to log to console
I have following piece of code: private void nameTextBox_Leave(object sender, EventArgs e) { var
I have the following piece of code in which I am trying to fetch

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.