I try to set the breakpoint at an Exit statement, like this:
procedure TForm1.Button1Click(Sender: TObject);
var
I: Integer;
begin
I := 5;
if I = 5 then
Exit;
end;
But when the program starts, the breakpoint will become a red cross which indicates it is not available. Why? I am using the "Debug" version of the project and using "Run" button to debug the project.
