So I am debugging an application that transfers data over a socket connection. I want to inspect received data so I put a breakpoint in the method that does the handling of the response. But when I get there and want to see what has been received Lazarus does not show it...
Here is what I do: function TSSRemoteClient.StatusReadLog(DayNumber: integer; Body: TStrings): boolean; begin Result := false; if SendCommand(ccSTATLOG, 'DAY=' + IntToStr(DayNumber)) then begin WaitForResponse(ccSTATLOG); Body.Text := FRxArgs[ccSTATLOG]; Result := Body.Count > 0; //<== Put breakpoint here end; end; When I reach this breakpoint and I hover the mouse over Body.Text or Body.Count Lazarus shows a message saying: Body.Text = Type TSTRINGS has no component named TEXT and Body.Count = Type TSTRINGS has no component named COUNT What is that? If that was true then the code above would not even compile and here I am running into the line in the debugger... Result is set to true so obviously Body.Count contains some number > zero. If I hover over DayNumber instead then it resolves into 44103 Is there some setting I am missing to enable inspection of these kinds of data? -- Bo Berglund Developer in Sweden -- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus