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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:14:46+00:00 2026-06-08T20:14:46+00:00

Im debugging C in Xcode and setting breakpoints in functions to examine the value

  • 0

Im debugging C in Xcode and setting breakpoints in functions to examine the value of various doubles. Xcode insists on displaying them using scientific notation, which is a real pain. I need to see a decimal representation. The right click "View Value" menu option of Decimal, does weird things. Anyone have any idea how to get this to play nice short of printf’n everything I want to see??

enter image description here

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

    Check out the LLDB Variable Formatting documentation, specifically the Type Format section near the top.

    You can use the type format command to change the default output.

    From the link above

    Type formats enable you to quickly override the default format for
    displaying primitive types (the usual basic C/C++/ObjC types: int,
    float, char, …).

    If for some reason you want all int variables in your program to print
    out as hex, you can add a format to the int type.

    This is done by typing

    (lldb) type format add –format hex int

    To change the default display of your jDate objects you should be able to do something like

    type format add -f float jDate
    

    You can get more info from the debugger itself with help <format> but the above linked page reads quite well.

    If that doesn’t solve your problem, you may need to read further down on Type Summaries. I can’t remember what Xcode displays, be it the format or the summary.

    Additionally, the WWDC2012 session # 415 “Debugging with LLDB” shows methods to change these display formats and add your own. The relevant bits are around the 35 minute mark, but the whole session is great.

    Hope that helps!

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

Sidebar

Related Questions

Can Xcode calculate the value of an expression while debugging? I mean like MS
Is there any watch window to see variable value in XCode during debugging? Can
I am debugging (looking for memory leaks) using Xcode for my small application. I
Xcode has apparently AppleScript debugging facilities : You can put breakpoints Executable options mentions
To help simplify debugging of some custom Objective-C objects in the Xcode debugger window,
In Xcode, GDB allows you to change local variables while debugging (see how to
I can build my project in Xcode(4.2) for debugging without issues, but when I
From times to times, while debugging an Application, I see this error on Xcode:
I have created a simple hello world application in xcode using the command line
I'm using Xcode 3.2.1 on OSX 10.6.8, and I want to study how Avogadro

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.