mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-24 21:50:29 +01: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;
|
end;
|
||||||
SetTargetInfo(FileType);
|
SetTargetInfo(FileType);
|
||||||
|
|
||||||
|
DefaultTimeOut := DebuggerProperties.TimeoutForEval; // Getting address for breakpoints may need timeout
|
||||||
|
|
||||||
DetectForceableBreaks;
|
DetectForceableBreaks;
|
||||||
|
|
||||||
(* We need a breakpoint at entry-point or main, to continue initialization
|
(* 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]);
|
DebugLn(DBG_VERBOSE, '[Debugger] Target PID: %u', [TargetInfo^.TargetPID]);
|
||||||
|
|
||||||
// they may still exist from prev run, addr will be checked
|
// 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.FExceptionBreak.SetByAddr(Self);
|
||||||
FTheDebugger.FBreakErrorBreak.SetByAddr(Self);
|
FTheDebugger.FBreakErrorBreak.SetByAddr(Self);
|
||||||
FTheDebugger.FRunErrorBreak.SetByAddr(Self);
|
FTheDebugger.FRunErrorBreak.SetByAddr(Self);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user