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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:51:59+00:00 2026-06-11T20:51:59+00:00

I am trying to debug my Objective-C program, and I need to print my

  • 0

I am trying to debug my Objective-C program, and I need to print my unsigned long long variable in hex. I am using the lldb debugger.

In order to print short as hex, you can use this:

(lldb) type format add --format hex short
(lldb) print bit
(short) $11 = 0x0000

However, I can’t make it work for unsigned long long.

// failed attempts:
(lldb) type format add --format hex (unsigned long long)
(lldb) type format add --format hex unsigned long long
(lldb) type format add --format hex unsigned decimal
(lldb) type format add --format hex long long
(lldb) type format add --format hex long
(lldb) type format add --format hex int

I am running an iOS app on simulator, if that makes any difference.

  • 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-11T20:52:00+00:00Added an answer on June 11, 2026 at 8:52 pm

    type format add expects the type name as a single word — you need to quote the argument if it is multiple words. e.g.

       2    {
       3      unsigned long long a = 10;
    -> 4      a += 5;
       5      return a;
       6    }
    (lldb) type form add -f h "unsigned long long"
    (lldb) p a
    (unsigned long long) $0 = 0x000000000000000a
    (lldb) 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to debug an objective C program. It used to run, and I'm
I am having real problems trying debug my code to malfunctioning print statements. I
When trying to debug a program on Windows I can't seem to find where
I'm trying to debug an old VB6 program at my job. It's full of
I'm trying to debug this problem but not sure where exactly i need to
I am trying to debug a few regular expressions using: perl -Mre=debug file.pl The
Trying to debug PHP using its default current-line-only error messages is horrible. How can
While trying to debug my program in Xcode 4.2, I turned on breakpoints and
Im trying to debug the following code using System; public class Parent { string
When trying to debug an MVC2 app in VS2010 using IE 8, I sometimes

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.