Recent

Author Topic: Why debugger opens at step-over (F8) while no error at normal run?  (Read 2153 times)

egsuh

  • Hero Member
  • *****
  • Posts: 860
Sometimes this happens.

For now, I called a method of record, which depends on then data of the record.
There are no error message during runtime, but debugger window opens during stepover (F8).

ccrause

  • Sr. Member
  • ****
  • Posts: 481
I'm not sure which debugger window you are seeing, can you perhaps post a screen shot of this window?

egsuh

  • Hero Member
  • *****
  • Posts: 860
I mean the assembler windows.

ccrause

  • Sr. Member
  • ****
  • Posts: 481
Which debugger (gdb, fpdebug, lldbg...)?
Which debugging options are enabled for this project?
Does this happen when all break & watch points are deleted?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7516
  • Debugger - SynEdit - and more
    • wiki
Are you on MS Windows?

If, yes - on Windows only:

There is a known issue (either fpc, gdb or both) that could be what you describe.

If you "step over", gdb sometimes tries to "step in". And it does so, even if there is no debug info for the code that is called (that may be internal code / string handling or other).
That then opens the assembler.

--------
There is an option in
Tools > Options > Debugger
in the property grid:
"Fix incorrect step ..."

----------
Also in Lazarus 2.2 you can use FpDebug. This does not have the problem.

 

TinyPortal © 2005-2018