<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Hi Martin,</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">

<span style="font-family:arial">2014-02-14 1:14 GMT+08:00 Martin Frb </span><span dir="ltr" style="font-family:arial"><<a href="mailto:lazarus@mfriebe.de" target="_blank">lazarus@mfriebe.de</a>></span><span style="font-family:arial">:</span><br>

</div><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><div class="">

<div>With -O2 and above the debugger does not always work.<br></div></div>
    <br>
    In case of such optimization the debug info compiled into the exe by
    fpc is not always accurate.<br>
    <br>
    It is not just blue dots, inspecting variables may show random data,
    ....<br>
    <br>
    Debugging with O2 and up, if you must, requires to only look at the
    disassembler and register window. registers can only be trusted in
    the ttop stackframe. selecting any other may not show correct info. <br></div></blockquote><div><br></div><div class="gmail_default" style="font-family:'courier new',monospace">I never use optimization option other than O1, I think O1 is the default.  As Sven suggested, I tried turning off optimization, and back on, still at O1 level.</div>

<div class="gmail_default" style="font-family:'courier new',monospace">​​</div></div></div></div>