-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDebug.pas
41 lines (32 loc) · 862 Bytes
/
Debug.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
unit Debug;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Graphics, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.StdCtrls,
Base, FMX.Controls.Presentation, FMX.Layouts, FMX.ListBox, FMX.ScrollBox,
FMX.Memo;
type
TfrmDebug = class(TfrmBase)
Memo1: TMemo;
private
{ Private declarations }
public
{ Public declarations }
procedure Debug(Msg: String);
end;
var
frmDebug: TfrmDebug;
implementation
{$R *.fmx}
procedure TfrmDebug.Debug(Msg: String);
begin
// with lstDebug do begin
// if Items.Count > 50 then begin
// Items.Delete(0);
// end;
// ItemIndex := Items.Add(FormatDateTime('hh:nn:ss', Now) + ': ' + Msg);
// end;
Memo1.Lines.Add(FormatDateTime('hh:nn:ss', Now) + ': ' + Msg);
Memo1.GoToTextEnd;
end;
end.