The following program will silently terminate as soon as the
debugserver is terminated while the program is still running. There
are no exceptions or any other messages, it just silently exits back
to the command prompt. I haven't yet tried with GDB to see where
exactly this happens. IIRC when I tried this on Windows yesterday this
didn't happen. (don't have a windows box available now to test it).
program debugservertest;
{$mode objfpc}{$H+}
uses
dbugintf, sysutils;
var
count : Integer;
begin
count := 0;
repeat
SendDebug(IntToStr(count));
writeln(count);
count += 1;
Sleep(1000);
until False;
end.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus