Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Die Delphi-IDE (https://www.delphipraxis.net/62-die-delphi-ide/)
-   -   [FMX] Debugausgaben (https://www.delphipraxis.net/163540-%5Bfmx%5D-debugausgaben.html)

wurzelzwerg 9. Okt 2011 19:43

AW: [FMX] Debugausgaben
 
Ja, 10.7 :|
Hab mir das jetzt selbst gebastelt, hoffe das geht auch bei IOS.
Den Kram mit Umgebungsvariablen brauch ich nicht.
Delphi-Quellcode:
unit Debug;

interface

uses
{$IFDEF MSWINDOWS}
  Winapi.Windows,
{$ENDIF}
  System.SysUtils;

procedure DebugPrint(Text: string); overload;
procedure DebugPrint(Fmt: string; const Args: array of const); overload;

implementation

procedure DebugPrint(Text: string);
begin
{$IFDEF DEBUG}
{$IFDEF MSWINDOWS}
  OutputDebugString(PChar(Text));
{$ENDIF}
{$IFDEF MACOS}
  WriteLn(Text);
{$ENDIF}
{$ENDIF DEBUG}
end;

procedure DebugPrint(Fmt: string; const Args: array of const);
begin
{$IFDEF DEBUG}
{$IFDEF MSWINDOWS}
  OutputDebugString(PChar(Format(Fmt, Args)));
{$ENDIF}
{$IFDEF MACOS}
  Writeln(Format(Fmt, Args));
{$ENDIF}
{$ENDIF DEBUG}
end;

end.

Union 9. Okt 2011 20:20

AW: [FMX] Debugausgaben
 
Bei IOS musst Du dann wohl NSLog(NSString()) verwenden.


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:41 Uhr.
Seite 3 von 3     123   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz