title: lldb - How to overwrite a value in a dictionary?
body: <p>So I'm debugging an app remotely with lldb (no Xcode) and there is a value in a dictionary I want to modify. 
  The dictionary looks like this when I do 'po $x0':</p>
  
  <pre><code>{
      amount = "2.00";
      idNumber = 87677;
  }
  </code></pre>
  
  <p>When I print the 'class' of 2.00 I get NSDecimalNumber
  I've tried getting access to it and was able to read just the 'amount' value:</p>
  
  <pre><code>po [$x0 objectForKey:@"amount"]
  2.95
  </code></pre>
  
  <p>I want to be able to overwrite the amount value to 1.00 -- I tried doing this:</p>
  
  <pre><code>e (NSString*)[$x0 objectForKey:@"amount"]
  (NSString *) $24 = 0x00000001c2c22180
  (lldb) memory write 0x00000001c2c22180 @"1.00"
  error: '@1.00' is not a valid hex string value.
  (lldb) memory write 0x00000001c2c22180 "1.00"
  error: '1.00' is not a valid hex string value.
  </code></pre>
  
  <p>How can I write an NSdecimal number to the 'amount' field?
  It won't let me simply do $x0[@"amount"] = 1.00
  Thank you!</p>
  
  <p>EDIT: I've also just tried this:</p>
  
  <pre><code>(lldb) p/x 0.10
  (NSTaggedPointerString *) $26 = 0xa00000030312e304 @"0.10"
  (lldb) memory write 0x00000001c2c22180 0xa00000030312e304
  error: Value 0xa00000030312e304 is too large to fit in a 1 byte 
  unsigned integer value.
  </code></pre>