debugtest.pp 985 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2003 by the Free Pascal development team
  4. Interactive test for debugserver.
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. program testdebug;
  12. uses dbugintf;
  13. Var
  14. S : String;
  15. begin
  16. SendMethodEnter('Program');
  17. If (SendError<>'') then
  18. begin
  19. Writeln('Error : ',SendError);
  20. Exit;
  21. end;
  22. Repeat
  23. Writeln('Enter message to send to debug server (STOP exits): ');
  24. Write('> ');
  25. Readln(S);
  26. SendDebugEx(S,dlError);
  27. If (SendError<>'') then
  28. Writeln('Error : ',SendError);
  29. Until (S='STOP');
  30. SendMethodExit('Program');
  31. SendDebug('Ending');
  32. end.