Lazarus

Using the Lazarus IDE => Debugger => Topic started by: egsuh on July 16, 2021, 07:59:40 am

Title: Why debugger opens at step-over (F8) while no error at normal run?
Post by: egsuh on July 16, 2021, 07:59:40 am
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).
Title: Re: Why debugger opens at step-over (F8) while no error at normal run?
Post by: ccrause on July 16, 2021, 09:58:22 am
I'm not sure which debugger window you are seeing, can you perhaps post a screen shot of this window?
Title: Re: Why debugger opens at step-over (F8) while no error at normal run?
Post by: egsuh on July 16, 2021, 10:11:40 am
I mean the assembler windows.
Title: Re: Why debugger opens at step-over (F8) while no error at normal run?
Post by: ccrause on July 16, 2021, 10:54:11 am
Which debugger (gdb, fpdebug, lldbg...)?
Which debugging options are enabled for this project?
Does this happen when all break & watch points are deleted?
Title: Re: Why debugger opens at step-over (F8) while no error at normal run?
Post by: Martin_fr on July 16, 2021, 06:50:48 pm
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