ios - How to change default type for "View Value as" in Xcode Debugger -


when enter breakpoint in xcode can see variables view in debugger area.

enter image description here

since uint32 type working represents unicode values, change display value decimal hexadecimal or unicode type. can right-clicking , selecting view value as.

enter image description here

which gives

enter image description here

but find myself having on , over.

is there way change default display type?

i thought had seen before, turns out a similar question android studio. looked in preferences couldn't see there either.

the "type format add" command want. do:

(lldb) type format add 

for more details. change default format variable of given type. can either enter these @ lldb prompt or in ~/.lldbinit. 1 caveat, xcode locals view doesn't update when formatters change, have "step" format change register.

another trick can use if have mix of uint32's use purpose , others use uint32's (and want see default format), can create typealias uint32, , use when intend unicode usage. can put formatter on typealias rather on uint32. way formatting want , not in other uses.

another little trick can use add special type formats category when make them (using -w option.) allows use "type category enable/disable" turn special formatting on , off without having remember "type format add" command. if this, note categories created "disabled", have enable category before see effects.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -