如何设置?

解决方案 »

  1.   

    1.在Delphi中,选择菜单 “tools”->"Environment Options"
    2.在弹出的对话框中,选择“Library”标签
    3.在"Library path"路径列表中,添加一个目录“$(DELPHI)\source\vcl”
      (添加方法是点击右边的按钮,大家都知道,略)保存,OK
      

  2.   

    举个凳子:1.新建一个Application ,一个Form,Form上一个edit,button2.在button的OnClick事件中写
    procedure TForm1.Button1Click(Sender: TObject);
    begin
      Edit1.Text := 'hello, vcl';//在这行下个断点
    end;3.下好断点,F9,运行4.点击按钮,程序断在上面的那行代码5.按F7,将会入$(DELPHI)\source\vcl\controls.pas,如下面的函数所示procedure TControl.SetText(const Value: TCaption);
    begin
      if GetText <> Value then SetTextBuf(PChar(Value));
    end;
    注:我的环境是D7
      

  3.   

    在project-->options中的compiler标签,点选上use Debug DCUs即可