summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-04-02 11:58:26 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2013-04-02 11:58:26 +0100
commitde7e463e6210c28b56ba853ec2c2fdfd404a7a1f (patch)
treedaca09c9489d7289795ddf7453478114b996c79f /src
parentb8b108a2e3db8a24288bb62bdd5c2cfb493ba4c8 (diff)
downloadfpGUI-de7e463e6210c28b56ba853ec2c2fdfd404a7a1f.tar.xz
core: Debug output is now sent to the Debug Server instead of console output.
This makes testing a bit easier on all platforms.
Diffstat (limited to 'src')
-rw-r--r--src/corelib/fpg_main.pas15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/corelib/fpg_main.pas b/src/corelib/fpg_main.pas
index 89c5da1d..44ab6a82 100644
--- a/src/corelib/fpg_main.pas
+++ b/src/corelib/fpg_main.pas
@@ -457,6 +457,9 @@ uses
{$ifdef AGGCanvas}
Agg2D,
{$endif}
+{$IFDEF DEBUG}
+ dbugintf,
+{$ENDIF}
fpg_imgfmt_bmp,
fpg_stdimages,
fpg_translations,
@@ -832,14 +835,14 @@ begin
FClassName := AClassName;
FMethodName := AMethodName;
{$IFDEF DEBUG}
- Writeln(Format('%s>> %s.%s', [spacing, FClassName, FMethodName]));
+ SendDebug(Format('%s>> %s.%s', [spacing, FClassName, FMethodName]));
{$ENDIF}
end;
destructor TPrintCallTrace.Destroy;
begin
{$IFDEF DEBUG}
- Writeln(Format('%s<< %s.%s', [spacing, FClassName, FMethodName]));
+ SendDebug(Format('%s<< %s.%s', [spacing, FClassName, FMethodName]));
{$ENDIF}
dec(iCallTrace);
inherited Destroy;
@@ -1167,7 +1170,7 @@ begin
end;
{$IFDEF DEBUG}
- Writeln('GetNamedFontDesc error: "' + afontid + '" is missing. Default is used.');
+ SendDebug('GetNamedFontDesc error: "' + afontid + '" is missing. Default is used.');
{$ENDIF}
Result := FPG_DEFAULT_FONT_DESC;
end;
@@ -1328,7 +1331,7 @@ begin
begin
fr.Free;
{$IFDEF DEBUG}
- writeln('fpGFX: Error opening font.');
+ SendDebug('fpGFX: Error opening font.');
{$ENDIF}
end;
end;
@@ -1651,7 +1654,7 @@ end;
procedure TfpgApplication.HideHint;
begin
{$IFDEF DEBUG}
- writeln('HideHint');
+ SendDebug('HideHint');
{$ENDIF}
FHintTimer.Enabled := False;
if Assigned(FHintWindow) and TfpgHintWindow(FHintWindow).Visible then
@@ -2439,7 +2442,7 @@ begin
{$Note This occurs every now and again with TfpgMemo and CaretInvert painting! }
// Investigate this.
{$IFDEF DEBUG}
- writeln('TfpgCaret.InvertCaret cause an exception');
+ SendDebug('TfpgCaret.InvertCaret cause an exception');
{$ENDIF}
end;
end;