[Lazarus] Impossible to debug with Lazarus IDE

Martin Schreiber fpmse at bluewin.ch
Thu Oct 30 11:42:59 CET 2008


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



More information about the Lazarus mailing list