Re: LLDB: Printing Unicode in the Console
Re: LLDB: Printing Unicode in the Console
- Subject: Re: LLDB: Printing Unicode in the Console
- From: Rick Mann <email@hidden>
- Date: Tue, 13 Mar 2012 12:03:59 -0700
Dunno if this would help, but if you add some category methods to NSData to print the data the way you like, you can probably invoke those from LLDB.
On Mar 13, 2012, at 3:06 , Andreas Grosam wrote:
> Is it somehow possible to format and print a byte array or a pointer to bytes (say NSData, or a pointer to void) whose content is an Unicode sequence to the Debugger console?
>
> It seems, we can't print anything other than a char* as a zero terminated C-string, and NSString variables formatted as a human readable string.
>
> I would like to able to print any byte sequences interpreted as the specified Unicode encoding scheme (UTF-8, UTF-16LE, UTF-16BE, etc.) with an optional length attribute for the number of bytes consumed from the input, or optionally terminated by Unicode NULL.
>
> Other encodings would be nice, too. Is it possible to extend LLDB in any fashion?
>
> Andreas
> _______________________________________________
> 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
_______________________________________________
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