A few tricks to write long strings to files when the Delphi debugger cuts them off (just because they like using 4k buffers internally);
TStringStream.Create(lRequestMessage).SaveToFile('c:\temp\temp.txt')TIniFile.Create('c:\a.txt').WriteString('a','a',BigStringVar)TFileStream.Create('c:\a.txt', fmCreate or fmShareDenyNone).WriteBuffer(Pointer(TEncoding.UTF8.GetBytes(BigStringVar))^,Length(TEncoding.UTF8.GetBytes(BigStringVar)))
They all work form the debug inspector, but they do leak memory. See comments below.
Via:
- [WayBack] I remember seeing a trick to write a string from the Debug Evaluate/Modify window to a file, but forgot where. – Jeroen Wiert Pluimers – Google+
- [WayBack] If my alzheimer doesn’t cheating on me there was a discussion about how to save things from evaluator. (Ctrl+F7). – Attila Kovacs – Google+
–jeroen


