I remember seeing a trick to write a string from the Debug Evaluate/Modify window to a file, but forgot where.
I remember seeing a trick to write a string from the Debug Evaluate/Modify window to a file, but forgot where.
Anybody who remembered how to do is (if so: please share how).
Anybody who remembered how to do is (if so: please share how).
FWIW: I do stuff like FPicture.SaveToFile('some\path\a.bmp') there. Maybe you did something similar with TStringList?
ReplyDeleteUli Gerhardt I don't have a TStringList instance around in that area, but I was thinking along those lines.
ReplyDeleteMaybe just write a little helper procedure SaveStringToFile?
ReplyDeleteThis sort of works but leaks memory:
ReplyDeleteTStringStream.Create(lRequestMessage).SaveToFile('c:\temp\temp.txt')
Uli Gerhardt that's the issue: I'm debugging through units that are not mine and that are a bit tough to recompile, so I need to do this "low-tech".
ReplyDeleteAre you sure you wrote this, Jeroen?
ReplyDeletehttp://bo.codeplex.com/SourceControl/changeset/view/78543#1494219 :D
bo.codeplex.com - bo library
CHUA Chee Wee indeed I did, but the ODS doesn't show the full text of the string.
ReplyDeleteHey, you live in Amsterdam! I was there around Sep 11 or something. I should have looked you up...
ReplyDeleteCHUA Chee Wee just sent you a hangout message.
ReplyDeleteAttila Kovacs thanks. That's the one. It leaks too.
ReplyDelete