Recent

Author Topic: Debug the IDE  (Read 3985 times)

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Debug the IDE
« on: March 02, 2015, 03:23:52 pm »
I am trying to understand better the Lazarus IDE project (and possibly make some patches).
However, when I open Lazarus.lpi project, I can't compile it and debug it inside the IDE. The following message pops up:
Quote
The project's compiler options has no compile command.
See Project / Compiler Options ... / Compilation

I can't find "Project / Compiler Options ... / Compilation". I looked into "Project/Project Options.../Compiler Options/Compilation and Linking", but I cannot find what is not set there - everything looks same as in my personal projects.

Can you help me?

I tried to debug the latest trunk version of Lazarus.lpi (rev. 48093). I tried with trunk version itself, and I tried to open it with 1.4RC3.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Debug the IDE
« Reply #1 on: March 02, 2015, 03:45:13 pm »
You can compile it using "Build Lazarus ... " from tool menu. Use "configure build ..." to add options such as
-gh -g -gw -godwarfsets   -Criot -gtt -O-


After that, you can press F9 to start it in the debugger.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8747
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Debug the IDE
« Reply #2 on: March 02, 2015, 04:01:07 pm »
I can't find "Project / Compiler Options ... / Compilation". I looked into "Project/Project Options.../Compiler Options/Compilation and Linking", but I cannot find what is not set there - everything looks same as in my personal projects.
So what's written there (attached)? Don't forget the "Call On" checkboxes.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Debug the IDE
« Reply #3 on: March 02, 2015, 04:11:48 pm »
So what's written there (attached)? Don't forget the "Call On" checkboxes.

Lazarus cannot be built as a normal project yet. It will change some day.

Indeed debugging with lazarus.lpi may not be documented anywhere. I remember asking the same questions years ago.
Maybe Zoran adds it to wiki somewhere now that he knows how to do it.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Debug the IDE
« Reply #4 on: March 03, 2015, 01:37:10 pm »
Thank you, all!

Indeed debugging with lazarus.lpi may not be documented anywhere. I remember asking the same questions years ago.
Maybe Zoran adds it to wiki somewhere now that he knows how to do it.

Now I found - yet another contribution by BigChimp: http://wiki.freepascal.org/Extending_the_IDE#Debugging_the_IDE

 

TinyPortal © 2005-2018