[Lazarus] Impossible to debug with Lazarus IDE

Bogusław Brandys brandys at o2.pl
Thu Oct 30 12:03:50 CET 2008


Martin Schreiber pisze:
> On Thursday 30 October 2008 11.03:06 Graeme Geldenhuys wrote:
>> Hi,
>>
>> Has anybody actually noticed that it's impossible to debug an
>> application with Lazarus IDE. I normally use tiOPF's Log() methods to
>> debug code or writeln() statements, but today I had a tough problem
>> and wanted to step through a procedure. So I used breakpoints and the
>> Watch List window. Only local declared variables in that method was
>> watchable. Everything else gave errors like "No symbol ?? in current
>> context" or "Syntax error in expression....". Also the tooltip
>> expression evaluation doesn't work either, except again only for local
>> variables.
>>
>> See the screenshot in the bug report.  Oh, and in my projects Compiler
>> Options, I had -g and -gl parameters enabled for GDB debugging. No
>> smart linking or optimization enabled.
>>
> Did you add -O- to compiler options? FPC optimizations disturb gdb.
> 
> [...]
> 
>> Anybody know if MSEide does any better? 
> 
> Try it out. ;-)
> 
> Martin
> _______________________________________________


I can say that I have a lot of "this is not an aggregate" or something 
like that errors when trying to use watches window.

When we could test native Lazarus debugger ? ;-)

Boguslaw



More information about the Lazarus mailing list