• 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
Re: How do I set a watchpoint?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I set a watchpoint?


  • Subject: Re: How do I set a watchpoint?
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 28 May 2015 17:16:27 -0700


On May 28, 2015, at 4:24 PM, Kate Stone <email@hidden> wrote:

Register values can be readily used in C-based languages as if they were pointers, but they have far less obvious meaning in a Swift context where everything is more strongly typed and is safe by design.

I think Swift syntax is actively getting in the way in LLDB. When debugging you want to be able to look at data in a more free-form way and get a bit closer to the metal. The C _expression_ syntax works pretty well for that, but in Swift mode I was stymied.

It does, when I enable MallocScribble. Could you explain the syntax to set a watchpoint, too? Thanks again…

Per LLDB’s command line help:

We’re going around in circles now. :/ Please look at my original message, wherein I was unable to get LLDB to accept any variant of  “watch set _expression_”. It kept giving errors like "_expression_ evaluation of address to watch failed”. That’s why I posted in the first place.

This might be another instance of Swift syntax not working well. I was stepping through assembly code and had the address of an object in a register, and wanted to detect when that object was modified. LLDB may have been rejecting my commands because the Swift mode wasn’t recognizing a numeric value as an address.

—Jens
 _______________________________________________
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: How do I set a watchpoint?
      • From: Kate Stone <email@hidden>
References: 
 >How do I set a watchpoint? (From: Jens Alfke <email@hidden>)
 >Re: How do I set a watchpoint? (From: Kate Stone <email@hidden>)
 >Re: How do I set a watchpoint? (From: Jens Alfke <email@hidden>)
 >Re: How do I set a watchpoint? (From: Kate Stone <email@hidden>)

  • Prev by Date: Re: How do I set a watchpoint?
  • Next by Date: OSX storyboard window instantiation -- Xcode 6.3.2
  • Previous by thread: Re: How do I set a watchpoint?
  • Next by thread: Re: How do I set a watchpoint?
  • Index(es):
    • Date
    • Thread