F7/F8 don't start debugging in 2.20RC1 lazarus / 12-Debugger ---------------------------------------------------------------------- 440bx · 2021-07-31 13:12 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. ---------------------------------------------------------------------- Martin_fr · 2021-07-31 13:45 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 · 2021-07-31 13:50 "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 · 2021-07-31 14:02 Excellent.  Thank you Martin.