null terminated character arrays formatting lazarus / 12-Debugger ---------------------------------------------------------------------- 440bx · 2024-06-26 08:52 Hello, In the screenshot, notice the array "Output" is there twice.  Once showing every character individually quoted and a second time as a string (with only two quotes.) The question is: is it possible to have the format as shown in the second instance (@Output[0]) but without having to create a second instance ?  Thank you for your help. ---------------------------------------------------------------------- Thaddy · 2024-06-26 09:12 As long as there is a PChar cast involved, no. You know that as opposed to PChars, Pascal strings can contain zero's at any spot. Looks to me only the first one is correct, but it is possible to see the content of the hex pointers in hex for the second one and since you can read hex, use that. ---------------------------------------------------------------------- Martin_fr · 2024-06-26 17:44 there is a setting on the setup of the display-formatter, that allows to show or hide the original value ---------------------------------------------------------------------- Martin_fr · 2024-06-26 17:47 Sorry, partly misread the question. But still, if you use the displayformatter for "array of char as string" then you can have both outputs => on the same line though, which means one may need scrolling. If you don't mark the display formatter as checked (in the list / config), then you can select it for individual watches, in the watch properties. ---------------------------------------------------------------------- 440bx · 2024-06-26 22:09 Hi Martin, First, I'm using Lazarus v3.4 (64 bit) Quote from: Martin_fr on June 26, 2024, 07:47:39 pmBut still, if you use the displayformatter for "array of char as string" then you can have both outputs => on the same line though, which means one may need scrolling. I am unable to find the option for "displayformatter for "array of char as string".  I've tried the field's properties in the watch window and the Tools->Options->Debugger but, I don't see an option like that.  Can you provide more specific information please ? Quote from: Martin_fr on June 26, 2024, 07:47:39 pmIf you don't mark the display formatter as checked (in the list / config), then you can select it for individual watches, in the watch properties. Same question, I can't find a place to "mark the display formatter as checked".  Where do I find that option ? Thank you for your help.