Getting Console app to format like Xcode console?
Getting Console app to format like Xcode console?
- Subject: Getting Console app to format like Xcode console?
- From: email@hidden
- Date: Mon, 23 Mar 2009 17:42:08 +0100
I am try to dump out some formatted debugging info in the Console so
that an end user can send me some useful info for a problem I am
trying to debug.
I have written a nice formatter for CFDataRef that works exactly how I
want when viewed in the Xcode Debugging console:
e.g:
CFData 408 bytes:
0044 003A 005C 0041 0070 0058 005F 0069 006E 0073 0074 0061 006C 006C
0065 0072 | D:\ApX_installer
0073 005C 0035 0030 0062 0065 0074 0061 0032 005F 0031 0030 0032 005C
004D 006F | s\50beta2_102\Mo
0064 0075 006C 0065 0073 005C 0054 0050 005F 0052 0061 0073 0074 0065
0072 0049 | dules\TP_RasterI
006D 0070 006F 0073 0065 005C 0054 0050 005F 0052 0061 0073 0074 0065
0072 0049 | mpose\TP_RasterI
006D 0070 006F 0073 0065 005C 0069 006E 0073 0074 0061 006C 006C 005F
0069 006E | mpose\install_in
0066 006F 005C 0074 0070 005F 0072 0061 0073 0074 0065 0072 0069 006D
0070 006F | fo\tp_rasterimpo
0073 0065 002E 0070 006E
0067 | se.png
However, when run outside of Xcode, my nicely formatted string gets
totally screwed up by the Console app and its impossible to decipher:
e.g (for some different data, but that should be formatted identically
to the above)
23/03/09 17:36:31 [0x0-0x84084].com.agfa.apogee[32545] CF
23/03/09 17:36:31 [0x0-0x84084].com.agfa.apogee[32545] Data 144 bytes:
23/03/09 17:36:31 [0x0-0x84084].com.agfa.apogee[32545] 0034 0034 0063
23/03/09 17:36:31 [0x0-0x84084].com.agfa.apogee[32545] 0064 0039 0031
0063 0031 002D 0037 0064 0061 0064 002D 0031 0031 | 44cd91c
23/03/09 17:36:31 [0x0-0x84084].com.agfa.apogee[32545] 1-7dad-11
23/03/09 17:36:31 [0x0-0x84084].com.agfa.apogee[32545] 0064 0064 002D
0061 0062 0065
23/03/09 17:36:31 [0x0-0x84084].com.agfa.apogee[32545] 0062 002D 0030
0030 0030 0062 0063 0064 0036 0063 | dd-abeb-
23/03/09 17:36:31 [0x0-0x84084].com.agfa.apogee[32545] 000bcd6c
23/03/09 17:36:31 [0x0-0x84084].com.agfa.apogee[32545] 0066 0037 0034
0064
23/03/09 17:36:31 [0x0-0x84084].com.agfa.apogee[32545]
23/03/09 17:36:31 [0x0-0x84084].com.agfa.apogee[32545] | f74d
Is it possible to stop this from happening, or am I doing something
fundamentally wrong.
FYI - My console string get created in a CFMutableString, uses '\n'
between lines and is printed out using CFShow.
Matt Gough
_______________________________________________
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