Recent

Author Topic: Debug question  (Read 4849 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Debug question
« on: July 12, 2010, 07:56:15 am »
Can someone explain why if I put a breackpoint this is ignored? How can I debug without properly?

Thank you
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4709
  • I like bugs.
Re: Debug question
« Reply #1 on: July 12, 2010, 12:01:25 pm »
Can someone explain why if I put a breackpoint this is ignored? How can I debug without properly?

Select Environment -> Options -> Debugger.
It should be GDB.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Debug question
« Reply #2 on: July 12, 2010, 01:35:41 pm »
is already so!
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Laksen

  • Hero Member
  • *****
  • Posts: 802
    • J-Software
Re: Debug question
« Reply #3 on: July 12, 2010, 02:49:34 pm »
Have you built your project with debug info? It should be compiled with -g, all of it :)

Try making sure that's enabled and rebuild it all again(If the LCL or RTL isn't compiled with -g, you won't be able to debug it, but I think it is by default?)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Debug question
« Reply #4 on: July 12, 2010, 02:53:37 pm »
Thank you!
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018