dcdebug.pas
来自「SrcDecompiler is about creating a Delphi」· PAS 代码 · 共 41 行
PAS
41 行
unit dcDebug;
interface
uses
Dialogs;
procedure SendDebugEx(const Msg: String; MType:TMsgDlgType);
procedure SendDebug(const Msg: String);
implementation
uses
{$IFDEF DebugView}MainForm,{$ENDIF}
SysUtils, Forms, StatusForm;
{ SendDebug }
procedure SendDebugEx(const Msg: String; MType:TMsgDlgType);
begin
if MType = mtError then
begin
SendDebug('***************' + Msg);
raise Exception.Create('Error debug string: ' + Msg);
end
else
SendDebug(Msg);
end;
procedure SendDebug(const Msg: String);
begin
if StatusFrm <> nil then
with StatusFrm.lvDebug.Items.Add do
begin
Caption := Msg;
SubItems.Text := TimeToStr(Time);
end;
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?