mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 09:39:31 +02:00
Debugger: Add timeout protection for breakpoints during start up. Issue #0025277
git-svn-id: trunk@43362 -
This commit is contained in:
parent
ab9fde51c0
commit
79f500ab91
@ -5086,6 +5086,8 @@ begin
|
||||
end;
|
||||
SetTargetInfo(FileType);
|
||||
|
||||
DefaultTimeOut := DebuggerProperties.TimeoutForEval; // Getting address for breakpoints may need timeout
|
||||
|
||||
DetectForceableBreaks;
|
||||
|
||||
(* We need a breakpoint at entry-point or main, to continue initialization
|
||||
@ -5118,6 +5120,7 @@ begin
|
||||
DebugLn(DBG_VERBOSE, '[Debugger] Target PID: %u', [TargetInfo^.TargetPID]);
|
||||
|
||||
// they may still exist from prev run, addr will be checked
|
||||
// TODO: defered setting of below beakpoint / e.g. if debugging a library
|
||||
FTheDebugger.FExceptionBreak.SetByAddr(Self);
|
||||
FTheDebugger.FBreakErrorBreak.SetByAddr(Self);
|
||||
FTheDebugger.FRunErrorBreak.SetByAddr(Self);
|
||||
|
Loading…
Reference in New Issue
Block a user