Recent

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

Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1287
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  :)
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10673
  • 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

  • Jr. Member
  • **
  • Posts: 98
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?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10673
  • 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