<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 02/12/2018 22:01, Vojtěch Čihák via
lazarus wrote:<br>
</div>
<blockquote type="cite" cite="mid:20181202220110.676B646F@atlas.cz">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p style="padding:0 0 0 0; margin:0 0 0 0;">Hi,</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">sometimes, after I
close my project, I got this message dialog: "<span
style="font-size: 10pt;">Failed to wait for debug event.
Errcode: 4</span><span style="font-size: 10pt;">".</span></p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">I can see this in
console:</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">Hint: (lazarus)
[TMainIDE.DoRunProject] INIT Note: (lazarus)
[TMainIDE.DoBuildProject]
MainBuildBoss.DoCheckIfProjectNeedsCompilation nothing to be
done Hint: (lazarus) [TMainIDE.DoRunProject]
Debugger=TFpDebugDebugger Hint: (lazarus)
[TMainIDE.DoRunProject] END Got PID: 28074, TID: -1 Failed to
read data. Errcode: 3 Unable to reset breakpoint at
$0000000000437200 (Address 0 out of 1) Failed to continue
process. Errcode: 3 Failed to continue process. Errcode: 3</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">(this output is
always, dialog message is sometimes)</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> </p>
<p style="padding:0 0 0 0; margin:0 0 0 0;">I use Lazarus 2.1.0
r59715 FPC 3.3.1 x86_64-linux-qt and FpDebug.</p>
<p style="padding:0 0 0 0; margin:0 0 0 0;"> <br>
</p>
</blockquote>
<br>
I seen that on Windows too. At least the console part.<br>
<br>
If you change project, the IDE probably resets your debugger. If you
enable "reset dbg automatically after each run" then you see it as
soon as the project stops.<br>
FpDebug still tries to clear breakpoints, even though the process
is no longer running, hence the handle to the process is invalid.<br>
<br>
<br>
Not sure about the "<span style="font-size: 10pt;">Failed to wait
for debug event</span>"...<br>
</body>
</html>