DBG: Toggle breakpoint enabled with ctrl-click. (more efficient)

git-svn-id: trunk@32442 -
This commit is contained in:
martin 2011-09-20 19:34:58 +00:00
parent a65bbd7c40
commit e7eb929eb2

View File

@ -3683,9 +3683,14 @@ begin
end;
if not BreakFound then begin
DebugBoss.DoCreateBreakPoint(Filename, Line, True, ABrkPoint);
if Ctrl and (ABrkPoint <> nil)
then ABrkPoint.Enabled := False;
DebugBoss.LockCommandProcessing;
try
DebugBoss.DoCreateBreakPoint(Filename, Line, True, ABrkPoint);
if Ctrl and (ABrkPoint <> nil)
then ABrkPoint.Enabled := False;
finally
DebugBoss.UnLockCommandProcessing;
end;
end;
end;