dephi中怎样通过调试手段进入VCL中呢?象Vc就可以进入MFC中查看代码 ( 积分: 100 )

L

ltyao

Unregistered / Unconfirmed
GUEST, unregistred user!
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
 
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
 
project->options->compiler->Use Debug DCUs 选上
 
调试的路径设置就好了
 
例如要跟踪进去看TButton的代码,
菜单:project->Options->Directis/Conditionals->Debug Source path->选中Tbutton所在单元StdCtrls.PAS的路径,XXXX/Delphi X.0/VCL/SOURCE
然后就可以跟踪到Tbutton的源代码了
 
在library Path里加入vcl源码所在的目录。
 
正如 lichengbin 所说,设置相应的 Project Options 就可以了。
 
多谢了,弟兄们:)
 

Similar threads

顶部