⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dcdebug.pas

📁 SrcDecompiler is about creating a Delphi program decompiler. The program is written for Delphi 4 or
💻 PAS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -