caused
2012-06-22 13:48:45
Is there a way to get it ?
I believe scar had a function for that, but I cant remember it :x ….
I believe scar had a function for that, but I cant remember it :x ….
2012-06-22 13:48:45
2012-06-22 14:02:16
function GetDebugLine(Line: Integer): string;
function GetDebugLineCount: Integer;
function GetDebugText: string;
procedure DeleteDebugLine(Line: Integer);
procedure ClearDebugLine(Line: Integer);
procedure ReplaceDebugLine(Line: Integer; Str: string);begin
ClearDebug;
WriteLn('Blah...');
WriteLn('This IS the last line!');
WriteLn('Last debug line currently is: "' + GetDebugLine(GetDebugLineCount - 1) + '"!');
end.
2012-06-22 14:07:57
2012-06-22 14:14:49
From: RunawayOf course that works in your own scripts, but it still would be great to have the debug box commands added in, simply because they are so much more stable (example: you can't get the data SRL, MSI or others add to debug box with the method you mentioned, well, at least without modifying the files manually first)..
Couldn't you just store the lastest writeln as a global var every time it's called?
2012-06-22 14:20:56
Var
OldDB: String;
Function TR: String;
Begin
Result := ' Time :' + TimeRunning + '.';
End;
Procedure ShowDB( S: String);
Var
DCB: Tpoint;
Begin
If S = OldDB Then
Exit;
Writeln( Tr + S);
OldDB := S;
End; 2012-06-22 15:13:23