Lazarus
Using the Lazarus IDE => Debugger => Topic started by: JLWest on July 16, 2019, 06:46:57 pm
-
Recently downloaded the latest version of the IDE.
It seemed to work Ok for a while. Then all of a sudden the debugger won't work.
I compile my program just fine.
Run without the debugger fine.
When I try to run in the debugger it goes to the begin statement in the project1.lpr file.
IF i try to F9 out it won't go. F7 brings up the Assembler box.
Any ideas?
-
Can you provide a log? https://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_debug_session
You may play with the value for "InternalStartBreak", in the property grid => Tools > Options > Debugger
You can also go to our sourceforge page, and under "windows 64" (or 32 if you need) > "Alternative GDB" get GDB 8.2
-
Wow
You can actually read the results?
-
Wow
You can actually read the results?
Read, and even comprehend (in parts at least). Though it is always tricky.
My best guess on your log:
You may have a breakpoint, that you cant see (breakpoint set to an address / might show in the asm win, if you open that right away, before tryineg F7). This could also be seen in the breakpoint window: View > Debug Windows > Breakpoints.
This would explain the early stop/break of your app.
The attached log seems to end when you reached this halt. It does not seem to contain any attempt of continuing with F9/F7?
But it may simply be that the breakpoint is in some code that is called hundreds of times. So F9 would just take you back to it.
-
Your best guess was pretty good. I deleted the breakpoints <View>Debug>Breakpoints and the debugger now works.
Thanks for your help.