CodeSite 的使用方法 for Delphi XE2
来源:互联网 发布:在线影视站源码 编辑:程序博客网 时间:2024/06/01 09:43
CodeSite是调试程序的强大助手,启用CodeSite,要先引用CodeSiteLogging单元
在工程文件里做如下设置,可非常方便启用或禁用CodeSite,并用程序里关于CodeSite的代码也不用删除.
------------------------------------------工程文件里引用--------------------------------------------
var
Destination: TCodeSiteDestination;
begin
Application.Initialize;
{$IFDEF DEBUG}
CodeSite.Enabled := True;
CodeSite.Enabled := CodeSite.Installed;
if CodeSite.Enabled then
begin
Destination := TCodeSiteDestination.Create(Application);
Destination.LogFile.Active := True;
Destination.LogFile.FileName :=
ChangeFileExt(ExtractFileName(Application.ExeName), '.csl');
Destination.LogFile.FilePath := '$(MyDocs)\My CodeSite Files\Logs\';
Destination.Viewer.Active := True;
CodeSite.Destination := Destination;
CodeSite.Clear
end;
{$ELSE}
CodeSite.Enabled := False;
{$ENDIF}
------------------------------------------------------------------------------------------------------
使用方法,在需要显示变量处,加 CodeSite.Send即可, Send的参数如下图
ConstantValuecsmInfo$0csmWarning$1csmError$2csmCheckPoint$3csmReminder$17csmSeparator$bcsmInactiveSeparator$ccsmLevel1, csmRed$18csmLevel2, csmOrange$19csmLevel3, csmYellow$1acsmLevel4, csmGreen$1bcsmLevel5, csmBlue$1ccsmLevel6, csmIndigo$1dcsmLevel7, csmViolet$1e
CodeSite.Send(csmLevel1, 'Level 1 = Red');
- CodeSite 的使用方法 for Delphi XE2
- Delphi XE2 的皮肤
- delphi xe2的LibraryPath
- delphi对窗体的查询(delphi xe2)
- Delphi XE2
- Delphi报表组件:FastReports for Delphi XE2 Update 4
- delphi XE2自带的皮肤控件
- Delphi XE2下的MapX异常
- Delphi7到Delphi XE2的升级历程
- 恢复Delphi XE2的Library Path
- Delphi XE2 发布了
- DELPHI XE2马上推出
- Delphi XE2 Update4
- Delphi XE2 新技术说明
- Delphi XE2 - 点点滴滴设置
- Delphi Xe2下 PingIP
- delphi xe2下载地址
- delphi深度探索-codesite应用指南
- Notes of Managing Software Projects
- Silverlight 4系列 +VS2010 + ArcGIS9.3 最短路径分析
- 调试和测试 Swing 代码
- 函数setjmp,longjmp和sigsetjmp,siglongjmp
- EXCEL CSV文件输出 问题
- CodeSite 的使用方法 for Delphi XE2
- CodeSite使用小结
- 如果你不想一辈子做工程师,必看!
- directx中使用windows 对话框
- 大型机汇编(mainframe assembler/HLASM)之CICS调用
- 数字签名和数字证书
- 高通平台android开发总结
- 不能想当然
- Eclipse的HTML编辑器