Recent

Author Topic: Cannot debug Lazarus itself  (Read 6807 times)

anatol

  • Newbie
  • Posts: 2
Cannot debug Lazarus itself
« on: February 18, 2007, 08:17:17 am »
I'd like to help improve Lazarus under Linux. However, being new to it I don't know how to make it work with debug info included. When I try

make clean all LCL_PLATFORM="gtk2" OPT=-dDEBUG

everything seems to compile fine though with many warnings about type missmatch. Now, the only thing I can see after launch is a message window informing me about a range check error. No matter which button, OK or Cancel, I click, the program exits. Can anyone give me a hand?

P.S. I use Lazarus SVN revision 10649 and FPC version 2.0.4.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: Cannot debug Lazarus itself
« Reply #1 on: February 18, 2007, 09:29:14 am »
You don't have to do anything special to include debug info. Debug info is included by default.

Also, lazarus has a menu on the IDE, called Configure Build Lazarus. It's probably better to use that menu to build it

If you wish to use the command line, don't add OPT=-dDEBUG

This is a conditional define, not a instruction to add debug info.

But even then, this error shouldn't exist, Please report it as a bug on the bug tracker.

anatol

  • Newbie
  • Posts: 2
RE: Cannot debug Lazarus itself
« Reply #2 on: February 18, 2007, 01:25:13 pm »
Thank you for advice, your were right about the possibility to debug Lazarus out of the box. I should have tried it before reading online FAQ, :).

The bug is reported as Mantis 8357.

 

TinyPortal © 2005-2018