Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-01

Setting up debugger in Lazarus?????

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bo Berglund

I just tried to debug my first Lazarus project on my newly installed development PC (Win XP Pro SP3). I have installed FPC2.4.2 and then retrieved lazarus from SVN and built it.

But now when I try to set a breakpoint in my program code there is a pop-up telling me to set up a debugger first....

This is completely new to me, I have tested lazarus previously on another PC by using the official installer, but it installs an older version so for this development PC I have used the SVN lazarus sources and built from there.
Anyway, on the test PC this was never a problem, a breakpoint worked as I am used to from 15 years of Delphi development.

But now I am stumped! Do I need to install yet another program or similar on my development PC? If so what is this???? And how do I do it?

Bo Berglund Developer in Sweden

Reply by email

José Mejuto
to Bo Berglund

Hello Lazarus-List,

Saturday, January 15, 2011, 10:32:54 AM, you wrote:

BB> But now when I try to set a breakpoint in my program code there is a BB> pop-up telling me to set up a debugger first....

SVN versions does not provide all binaries as platform dependent installers because SVN is platform independent ;)

You only need to copy your gdb.exe from your previous Lazarus installation or download a gdb for your platform and setup it in the "Environment -> Options -> Debugger".

Best regards, Jos?

Reply by email

Martin
to José Mejuto
Jos? Mejuto wrote 14 lines
Hello Lazarus-List, Saturday, January 15, 2011, 10:32:54 AM, you wrote: BB> But now when I try to set a breakpoint in my program code there is a BB> pop-up telling me to set up a debugger first.... SVN versions does not provide all binaries as platform dependent installers because SVN is platform independent ;) You only need to copy your gdb.exe from your previous Lazarus installation or download a gdb for your platform and setup it in the "Environment -> Options -> Debugger".

the gdb.exe was update in the meantime. So don't just copy.

Either download from mingw (google mingw and gdb) version 7.2, Or svn from http://svn.freepascal.org/svn/lazarus/binaries

The svn is easier, since it contains the required extra library.

Both files go in the same folder (anywhere you like), then set it in Environments options

Reply by email

Sven Barth
to Bo Berglund: I just tried to debug my first Lazarus project on my newly installed development PC (Win…
Bo Berglund wrote
Anyway, on the test PC this was never a problem, a breakpoint worked as I am used to from 15 years of Delphi development.

As the others already pointed you to the needed debugger I'll answer this one.

It works in Delphi without any setup, because
1. it's a binary distribution (that is Lazarus' installer as well and there it works ^^ )
2. Delphi includes it's own Object Pascal debugger which is a feature Lazarus/Free Pascal can not yet provide, so we rely on a 3rd party open source debugger called GDB. It's not as good as the Delphi debugger, but often it's better than no ,
Sven

Reply by email

Bo Berglund
to Martin: the gdb.exe was update in the meantime. So don't just copy. Either download from mingw…
Martin wrote 8 lines
Either download from mingw (google mingw and gdb) version 7.2, Or svn from http://svn.freepascal.org/svn/lazarus/binaries The svn is easier, since it contains the required extra library. Both files go in the same folder (anywhere you like), then set it in Environments options

Thank you!
Downloaded and configured. Now my Lazarus works fine. :-)

Bo Berglund Developer in Sweden

Reply by email