Re: [Lazarus] Debugger problems

2009-02-22 Thread Graeme Geldenhuys
On Sun, Feb 22, 2009 at 2:44 PM, Lukas Gradl  wrote:
>
> Wasn't there a project to build a debugger in FPC?
> What's the status of that project?

I remember seeing something like that a while back, but I think it
only worked under Win32 platform.

A quick look in the Lazarus directory I also see "/debugger/fpd/"
which seems to be the start of a Object Pascal based debugger.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-22 Thread Lukas Gradl
Graeme Geldenhuys schrieb:
> On Fri, Feb 20, 2009 at 1:55 PM, Alexander Klenin  wrote:
>> On Wed, Feb 18, 2009 at 22:03, Alex du Plessis  
>> wrote:
>>> Any pointers on how to get the debugger going?
>> Currently a debugger in Lazarus is barely usable.
> 
> Yeah, that is one thing I seriously miss about Delphi and Kylix
> (thought not nearly enough to make me switch back). Is there no way we
> can hook (tie in) the Kylix or Delphi debugger into Lazarus?

Wasn't there a project to build a debugger in FPC?
What's the status of that project?

Like Graeme, the thing I miss most in FPC/Lazarus is the debugger I'm 
used to from Delphi.
At the moment I'm helping myself with Log-Files, but that's far more 
complicated to use to hunt down a bug in a larger project


Regards

Lukas

-- 

--
software security networks
Lukas Gradl 
Eduard-Bodem-Gasse 9
A - 6020 Innsbruck
Tel: +43-512-214040-0
Fax: +43-512-214040-21
--
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-21 Thread Martin Friebe
Hans-Peter Diettrich wrote:
> Marc Weustink schrieb:
>
>   
>>> tooltip on identifiers don't work,
>>>   
>> Always, unless used on properties. In that case I use the Evaluation 
>> dialog to inspect the membervar.
>> 
>
> Sorry, Graeme is right :-(
>
> In most cases I cannot inspect local variables, due to "no such symbol 
> in context" errors, even with fully disabled optimizations.
>
> Is this a platform issue? (I'm primarily using Windows)
>   
Check my other post, in case you have nested procedures, check the 
stackframe


Best Regards
Martin
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-21 Thread Marc Weustink
Graeme Geldenhuys wrote:
> On Fri, Feb 20, 2009 at 1:55 PM, Alexander Klenin  wrote:
>> On Wed, Feb 18, 2009 at 22:03, Alex du Plessis  
>> wrote:
>>> Any pointers on how to get the debugger going?
>> Currently a debugger in Lazarus is barely usable.
> 
> Yeah, that is one thing I seriously miss about Delphi and Kylix
> (thought not nearly enough to make me switch back). Is there no way we
> can hook (tie in) the Kylix or Delphi debugger into Lazarus?

Then you would have even less functionality. The delphi debugger uses 
its own debug symbol description. It doesn't understand any of the 
formats FPC produces.

Marc

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-21 Thread Graeme Geldenhuys
On Sat, Feb 21, 2009 at 12:49 AM, Hans-Peter Diettrich
 wrote:
>
> In most cases I cannot inspect local variables, due to "no such symbol
> in context" errors, even with fully disabled optimizations.

This is exactly the errors I get. I develop under Linux only, so it
doesn't seem to be a platform issue. I gave up trying the integrated
debugger and simply use Log(..) or Writeln(...) calls now.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-20 Thread dmitry boyarintsev
> Is this a platform issue? (I'm primarily using Windows)

it's debugger issue. GDB just don't understand some of the FPC expressions.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-20 Thread Hans-Peter Diettrich
Marc Weustink schrieb:

>> tooltip on identifiers don't work,
> 
> Always, unless used on properties. In that case I use the Evaluation 
> dialog to inspect the membervar.

Sorry, Graeme is right :-(

In most cases I cannot inspect local variables, due to "no such symbol 
in context" errors, even with fully disabled optimizations.

Is this a platform issue? (I'm primarily using Windows)

DoDi

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-20 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb:

>> Currently a debugger in Lazarus is barely usable.
> 
> Yeah, that is one thing I seriously miss about Delphi and Kylix
> (thought not nearly enough to make me switch back). Is there no way we
> can hook (tie in) the Kylix or Delphi debugger into Lazarus?

Which debugger for what platform? IMO the integration of the GNU/FPC 
debugger is the only way to cover all platforms at once.

I cannot sort out what's FreePascal and what's Lazarus specific with 
debugger problems. But I wonder about random popups from the debugger at 
start of my applications - it looks like uninitialized variables to me, 
somewhere in the LCL/RTL?

DoDi

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-20 Thread Alexander Klenin
On Fri, Feb 20, 2009 at 22:44, Marc Weustink  wrote:
> I wonder too what you do differently. How do you think I develop lazarus
> myself ?

I agree that issues Graeme mentioned are tolerable, although inconvenient.
For me, however, debugger, just crashes of freezes after 2-3 runs.

-- 
Alexander S. Klenin
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-20 Thread Marc Weustink
Graeme Geldenhuys wrote:
> On Fri, Feb 20, 2009 at 2:06 PM, Bee  wrote:
>> I don't know in Windows, but I use it on Linux and Mac in daily basis.
>> Yes, it has glitches here and there, but mostly it works to me. I can't
>> imagine writing a program without a proper debugger. ;)
> 
> 
> What do you do different to me then. 

I wonder too what you do differently. How do you think I develop lazarus 
myself ?

> I also use Linux. Most of the

Check

> times, break points don't trigger, 

Always. Sometimes more than I want.

> tooltip on identifiers don't work,

Always, unless used on properties. In that case I use the Evaluation 
dialog to inspect the membervar.

> selected code with tooltip evaluation never works, 

Most cases they do work.


> variable watches
> never work etc

All work.

Marc

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-20 Thread Graeme Geldenhuys
On Fri, Feb 20, 2009 at 2:06 PM, Bee  wrote:
>
> I don't know in Windows, but I use it on Linux and Mac in daily basis.
> Yes, it has glitches here and there, but mostly it works to me. I can't
> imagine writing a program without a proper debugger. ;)


What do you do different to me then. I also use Linux. Most of the
times, break points don't trigger, tooltip on identifiers don't work,
selected code with tooltip evaluation never works, variable watches
never work etc

Thank goodness 99% of my applications are tiOPF based, so I use the
tiLog unit to log debug information to a file, console or separate log
window.  And for those non-tiOPF based apps, I'm stuck with:
writeln('>> SomeProcname');
code goes here
writeln('variable = ', somevariable);
   code goes here
   writeln('<< SomeProcname');


PS:
Yes I know toolip evaluation or tooltip debugging over properties etc
are dangerous, but it's a damn sight better than not having it. Plus
the Delphi developers are perfectly happy with the way it works for
them.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-20 Thread Graeme Geldenhuys
On Fri, Feb 20, 2009 at 1:55 PM, Alexander Klenin  wrote:
> On Wed, Feb 18, 2009 at 22:03, Alex du Plessis  wrote:
>> Any pointers on how to get the debugger going?
>
> Currently a debugger in Lazarus is barely usable.

Yeah, that is one thing I seriously miss about Delphi and Kylix
(thought not nearly enough to make me switch back). Is there no way we
can hook (tie in) the Kylix or Delphi debugger into Lazarus?

Sorry, all I can do is complain about the debugger as I don't have the
skills to implement anything better. I'm an application/database/gui
toolkit developer by trade.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-20 Thread Bee
> Currently a debugger in Lazarus is barely usable.

I don't know in Windows, but I use it on Linux and Mac in daily basis. 
Yes, it has glitches here and there, but mostly it works to me. I can't 
imagine writing a program without a proper debugger. ;)

-Bee-
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Debugger problems

2009-02-20 Thread Alexander Klenin
On Wed, Feb 18, 2009 at 22:03, Alex du Plessis  wrote:
> Any pointers on how to get the debugger going?

Currently a debugger in Lazarus is barely usable.

However, if you submit a bug report http://bugs.freepascal.org/
and attach a sample project to demonstrate a bug, there is
a chance it will be fixed.

-- 
Alexander S. Klenin
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Debugger problems

2009-02-18 Thread Alex du Plessis
Hello List

I am having trouble trying to debug any application from Lazarus.  Any 
pointers to what could be wrong.

Lazarus is running on a Windows XP (SP2) box.  The application is a 
newly created project. and I get the error : "Project raised exception 
class 'External:SIGSEGV' ". When I click on the message box Lazarus 
shows another window (Backtrace - I think) and dies. When I restart - 
the main IDE window position has been changed and is hardly visible at 
the bottom of the screen.

I am using

Date: 2009-02-05
FPC Version: 2.2.3
SVN Revision: 18572

Any pointers on how to get the debugger going?

Regards

Alex du Plessis
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus