Recent

Author Topic: Lazarus breakpoint not stoping  (Read 3535 times)

marcioarp

  • Newbie
  • Posts: 6
    • marciorossato.com.br
Lazarus breakpoint not stoping
« on: April 22, 2019, 11:56:46 pm »
I'm new to Lazarus, but I've been working with Delphi for a long time. In Delphi it is possible to add breakpoints, and when at runtime with debug (F9) the program stops at the point and I can run step by step by typing F8 viewing the values of the variables.
In Lazarus, I believe that I did not do something because it is not working.

https://i.stack.imgur.com/5n7EZ.png

https://i.stack.imgur.com/UF6y6.png

Márcio Rossato

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12405
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus breakpoint not stoping
« Reply #1 on: April 23, 2019, 12:17:25 am »
The file in which you try to stop seems to be without debug info.

In menu project > project options, page: debugger
Set "generate debug info for gdb"
and "type of debug info" to "dwarf with sets"

Is the file in question part of your main project? Or is it in a package?
If it is in a package, then you must do above steps for the package too. Open the package, and look at the options of the package.



Check http://wiki.lazarus.freepascal.org/Debugger_Setup
for further settings that you may have to correct



The 2 green bars (pause) mean the breakpoint is "on hold". It was not yet possible to set it.

In your case, this likely means it will not be set at all (until you fix the options).

Applications with libraries/dll can have such breakpoints, which will become active when the dll is loaded.
« Last Edit: April 23, 2019, 12:19:52 am by Martin_fr »

marcioarp

  • Newbie
  • Posts: 6
    • marciorossato.com.br
Re: Lazarus breakpoint not stoping
« Reply #2 on: April 24, 2019, 04:45:46 pm »
Tks, it's work for me.

Thank you !
Márcio Rossato

 

TinyPortal © 2005-2018