
Originally Posted by
bullzeye95
My method works fine if you save it to a file and include it first (I don't know why it has to be included, and can't just be in the main script..)
No, you're right, it's working for me just fine in the main script, long as it's above the includes.
Does this work for you too?:
Code:
program HelloRS;
procedure writeln( s: string);
begin
ReplaceDebugLine(GetDebugLineCount, 'DEBUG: ' + s);
end;
{.include SRL\SRL.scar}
begin
ClearDebug;
WriteLn( 'test1' );
SetupSRL; // note, 'SRL Compiled...' message is prefixed.
WriteLn( 'test2' );
end.
Code:
DEBUG: test1
DEBUG: SRL Compiled in 10 msec
DEBUG: test2
Successfully executed
Perfect, thanks!