Recent

Author Topic: How to configure Lazarus for debug a proyect  (Read 10413 times)

mac

  • Guest
How to configure Lazarus for debug a proyect
« on: September 27, 2003, 11:20:10 pm »
:?:
(Lazarus into a Linux system)

When my proyect is running and crashs, only a tipical 'Invalid floating point operation', for example. I need the line where the code crashs.

if I wrote in "Debugger Option" this:

- GNU debunger (gdb)
- /usr/bin/gdb (yes, it's here)

But no work properly.


Can you help me?
or
Do you know information about this?

Thanks

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
How to configure Lazarus for debug a proyect
« Reply #1 on: September 29, 2003, 11:18:50 am »
Make sure that you don't use a launching application (run parameters)

If this isn't the case what output is there in View-Debugger--Output ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Angello

  • New Member
  • *
  • Posts: 12
How to configure Lazarus for debug a proyect
« Reply #2 on: October 13, 2004, 04:23:49 pm »
first thanks to all people that made Lazarus :)
I think It will be nice to include a working binary of GDB in the distributions (linux, especially win32). I`ve tested debugging under win98,XP and linux.
under 98 - not working, at console I see: "[TDebugManager.DoInitDebugger] A" and message dialog "The launching application "C:\mingw\bin\gdb.exe" does not exists or is not executable See Run->Run parameters->local".
under winXP works, (i don`t know how to evaluate variables)
under linux works even better :-)

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
How to configure Lazarus for debug a proyect
« Reply #3 on: October 14, 2004, 09:29:22 am »
First I would like debugging in windows to be a bit more stable. If I think debugging is stable enough (for example you can add/modify/delete watches and  show stacktrace),  I will release a new lazarus installer. I will include a working binary of gdb too, of course.

I deliberately left it out, to lower the chance of getting bug reports about these known issues.

 

TinyPortal © 2005-2018