I was wondering if this could be done. In the debugger, when I'm inspecting a variable (an array of bytes), that represent a string -- but at debug time, I just see the byte array elements as the ansi character number of each element. We have a function "AnsiCharArrayToString" that will convert this array of bytes to a string. Is there a way to somehow create a debugger construct to convert this byte array to a string in debugger insight? If I allow side effects and function calls when inspecting, I can get it to show the string, but I was wondering if there is an easier way..
I was wondering if this could be done. In the debugger, when I'm inspecting a variable (an array of bytes), that represent a string -- but at debug time, I just see the byte array elements as the ansi character number of each element. We have a function "AnsiCharArrayToString" that will convert this array of bytes to a string. Is there a way to somehow create a debugger construct to convert this byte array to a string in debugger insight? If I allow side effects and function calls when inspecting, I can get it to show the string, but I was wondering if there is an easier way..
Markus Joos mm, I guess that might work... I'll have to figure out how to do it.
ReplyDeletePhillip Woon http://edn.embarcadero.com/article/40268
ReplyDeleteJacek Laskowski Thanks Jacek, that's exactly what I need..
ReplyDelete