• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
lldb expression shows wrong variable values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lldb expression shows wrong variable values


  • Subject: lldb expression shows wrong variable values
  • From: Beinan Li <email@hidden>
  • Date: Mon, 17 Nov 2014 15:04:27 -0500

Hello Xcode,

I used to use breakpoint action:
"""
expr (int) printf("X is: %u\n", x)
"""

to print out local variables.

Now with Xcode 6.1 on an ARM64, I just get all sorts of wrong values.

For example:

code: 

unsigned int x = 10800;

The above debug action gives me:

(int) $0 = 15
X is: 55574528

What am I missing here?

Thanks,
Beinan

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: lldb expression shows wrong variable values
      • From: Kate Stone <email@hidden>
  • Prev by Date: Re: Any way to prevent Xcode SourceKitService crashing?
  • Next by Date: Re: Any way to prevent Xcode SourceKitService crashing?
  • Previous by thread: Re: Any way to prevent Xcode SourceKitService crashing?
  • Next by thread: Re: lldb expression shows wrong variable values
  • Index(es):
    • Date
    • Thread