Using the Lazarus IDE > Debugger

breakpoints don't break

(1/1)

cpat:
I've set several breakpoints in the code, but when the code is executed none of the breakpoints break.

I'm using windows 10.

Handoko:
Maybe the execution never reach those lines or maybe you have not set the debugger correctly in the project option of that project. Try to start a new project, add some breakpoints and try if it will work or not.

Domenico Mammola:
Hi,
please ensure to have properly set to true the option "add debug information for GDB" in the "Debugging" panel of your project options or breakpoints will not work.

cpat:
Thanks,
I didn't have the project options set. I had put a few showmessage statements in the code to ensure that the code was executed.

Navigation

[0] Message Index

Go to full version