Using the Lazarus IDE > Debugger

breakpoints don't break


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

I'm using windows 10.

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:
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.

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.


[0] Message Index

Go to full version