Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 6ff261dcf0789896ddf26c61e38f88e3 > files > 23

fpc-doc-3.0.4-6.mga7.i586.rpm

{
    This file is part of the Free Pascal run time library.
    Copyright (c) 2003 by the Free Pascal development team

    Interactive test for debugserver.

    See the file COPYING.FPC, included in this distribution,
    for details about the copyright.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 **********************************************************************}
program testdebug;

uses dbugintf;

Var
 S : String;

begin
  SendMethodEnter('Program');
  If (SendError<>'') then
    begin
    Writeln('Error : ',SendError);
    Exit;
    end;
  Repeat
    Writeln('Enter message to send to debug server (STOP exits): ');
    Write('> ');
    Readln(S);
    SendDebugEx(S,dlError);
    If (SendError<>'') then
      Writeln('Error : ',SendError);
  Until (S='STOP');
  SendMethodExit('Program');
  SendDebug('Ending');
end.