作为示例,给定下面的代码提取,我想定义一个断点,当对象字段值改变()并且可选地,在条件(在这种情况下为False或True)时触发.
type TForm1 = class(TForm) EnableButton: TButton; DisableButton: TButton; procedure EnableButtonClick(Sender: TObject); procedure DisableButtonClick(Sender: TObject); private FValue: Boolean; // <== Would like to define a breakpoint here whenever FValue changes. public end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.DisableButtonClick(Sender: TObject); begin FValue := False; end; procedure TForm1.EnableButtonClick(Sender: TObject); begin FValue := True; end;