Recent

Author Topic: F7/F8 don't start debugging in 2.20RC1  (Read 1143 times)

440bx

  • Hero Member
  • *****
  • Posts: 2464
F7/F8 don't start debugging in 2.20RC1
« on: July 31, 2021, 03:12:55 pm »
Hello,

With 2.20RC1, after a build/compile, pressing F7 or F8 doesn't start debugging the program.

To debug, I have to put a breakpoint at the "begin", press F9 to cause the break at the "begin" then F7 and F8 work as expected.  They just don't seem to start stepping at the program's "begin".

I've tried with "Type of debug info" set to Dwarf2, Dwarf2 with sets and, Dwarf 3.  None of them makes the initial F7/F8 start debugging at the program's "begin".

I also tried "Automatic" and that one displays a message box stating there is a problem with the chosen debug format.  I think it would be good for the "Automatic" option to choose a format that works instead of whatever it is choosing now that it doesn't like.

Is there some configuration option I have to set to make F7 and F8 to start at the initial "begin" or is this a bug ?

Thank you for your help.
FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7390
  • Debugger - SynEdit - and more
    • wiki
Re: F7/F8 don't start debugging in 2.20RC1
« Reply #1 on: July 31, 2021, 03:45:39 pm »
You can switch back to use gdb based debugging.

Tools > Options > Debugger > Debugger Backend
Select from the toolbar at the top (gdb should be in there).

FpDebug does not yet support this
https://wiki.lazarus.freepascal.org/Debugger_Status#Start.2FStop

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7390
  • Debugger - SynEdit - and more
    • wiki
Re: F7/F8 don't start debugging in 2.20RC1
« Reply #2 on: July 31, 2021, 03:50:31 pm »
"run to line at cursor" should work though.

https://wiki.lazarus.freepascal.org/Debugger_Status#Start.2FStop

Note: This is NOT "STEP to line at cursor".
You need to assign a key first.

And for FpDebug, you must be at a line with actual code on it.
It will not stop at the next code line like gdb does (that is still a todo)

440bx

  • Hero Member
  • *****
  • Posts: 2464
Re: F7/F8 don't start debugging in 2.20RC1
« Reply #3 on: July 31, 2021, 04:02:20 pm »
Excellent.  Thank you Martin. :)
FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.

 

TinyPortal © 2005-2018