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

  • Home
  • SEARCH
  • 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 3243992
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:29:54+00:00 2026-05-17T18:29:54+00:00

I am trying to understand how to accomplish some basic debugging stuff with gdb

  • 0

I am trying to understand how to accomplish some basic debugging stuff with gdb

I want to check the length of this control (UILabel)
if I type the following in the console I get nothing, what’s the proper way to do it?

(gdb) po self.mylabel.frame.size.width
There is no member named frame.

or if I try without self:

(gdb) po mylabel.frame.size.width
There is no member named frame.

There must be a way, not obvious for sure. Visual Studio has such a fantastic debugger helpers in tracking the values of objects and co…

  • 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-17T18:29:54+00:00Added an answer on May 17, 2026 at 6:29 pm

    If you just type po myLabel, it will output the frame details. Of you can also use po NSStringFromCGRect(myLabel.frame). (See this link for some useful function along the lines of NSStringFromCGRect.)

    Alternatively, width is a float, so you can use p (float) myLabel.frame.size.width.

    In general, po is used to print the value of objects, while p is used for basic types.

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

Sidebar

Related Questions

Sorry for long winded post. I am trying to understand UIScrollView and running into
I am trying to parse some text and diagram it, like you would a
I have been trying for quite a while to work out how to accomplish
Background : I've inherited some MATLAB code to analyze data for my Ph.D. research.
I encountered a problem when running some old code that was handed down to
So, for the past few days I have been struggling to understand how to
Here is the code that will help you understand my question: create table con
I will try and be brief, I am finding when trying to create a
I have a Java class in which every method was defined as static .
Earlier today I asked a question about passing dictionary values to a function. While

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.