mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-05 19:00:58 +02:00
DBG: Toggle breakpoint enabled with ctrl-click. (more efficient)
git-svn-id: trunk@32442 -
This commit is contained in:
parent
a65bbd7c40
commit
e7eb929eb2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user