Recent

Author Topic: Breakpoint dosn't work  (Read 4048 times)

Joanna

  • Hero Member
  • *****
  • Posts: 1415
Re: Breakpoint dosn't work
« Reply #15 on: December 06, 2024, 12:33:53 am »
It’s definitely possible that the gdb has bugs I’ve managed to crash it many times. That’s interesting that lack of blue dots could indicate dead code.
I’ve noticed that code sometimes stops after a breakpoint in a commented area. Thanks for the clues  :)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12089
  • Debugger - SynEdit - and more
    • wiki
Re: Breakpoint dosn't work
« Reply #16 on: December 06, 2024, 12:43:37 am »
It’s definitely possible that the gdb has bugs I’ve managed to crash it many times. That’s interesting that lack of blue dots could indicate dead code.
I’ve noticed that code sometimes stops after a breakpoint in a commented area. Thanks for the clues  :)

gdb will set the breakpoint at the line, or if there is no code at the next line below (even 1000 lines below).

But there is also some code in Lazarus that can cause it a few lines down. No options for that yet.

LemonParty

  • Sr. Member
  • ****
  • Posts: 393
Re: Breakpoint dosn't work
« Reply #17 on: December 07, 2024, 10:54:12 am »
Is it possible to set up Lazarus so debugger from "Project options - Debugger" is added for all new projects?
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12089
  • Debugger - SynEdit - and more
    • wiki
Re: Breakpoint dosn't work
« Reply #18 on: December 07, 2024, 01:36:30 pm »
Is it possible to set up Lazarus so debugger from "Project options - Debugger" is added for all new projects?

Not that I am aware off. But then why not change the IDE global setting?

The per project setting is meant for cases where you for example need a remote debugger, or something that is special to that project.

----

Someone recently mentioned (and I have not used that, so don't know), that instead of "save compiler options as default" (which as the name says, doesn't include debugger), there is some sort of template somewhere.... Not sure if that would do it.... Not sure about any info on it.

 

TinyPortal © 2005-2018