Sign in Join

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

Mailing lists / lazarus / 2003-07

debugging in lazarus

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Vincent Snijders

Hi,

I thought some debugging (stepping through code and setting breakpoints) was working in lazarus.

When I try to step through a program it doesn't seem to run.

In the debug output window is:
============================
-break-insert testlcl.lpr:22>
&"No symbol table is loaded. Use the \"file\" command.\n"

^error,msg="No symbol table is loaded. Use the \"file\" command."

<-environment-cd /home/vsds/lazarus/projects/testlcl/> ^done

(gdb)
=============================
In the compiler options linker I have checked 'genrate debugging info.
In the environment, debugging options I set the path to the debugger.

Am I missing something?

Vincent Snijders.

Reply by email

Marc Weustink
to Vincent Snijders
you wrote 19 lines
Hi, I thought some debugging (stepping through code and setting breakpoints) was working in lazarus. When I try to step through a program it doesn't seem to run. In the debug output window is: ============================ -break-insert testlcl.lpr:22> &"No symbol table is loaded. Use the \"file\" command.\n" ^error,msg="No symbol table is loaded. Use the \"file\" command." <-environment-cd /home/vsds/lazarus/projects/testlcl/> ^done (gdb) =============================

AFIAK The lazarus debugger itself should alsoi compliant in this case.

Show quoted text 5 lines
In the compiler options linker I have checked 'genrate debugging info. In the environment, debugging options I set the path to the debugger. Am I missing something?

Nope, it should work. Is the -g flag set if you look at the Compiler options -> show options.

Marc

Reply by email

Vincent Snijders
to Vincent Snijders: I thought some debugging (stepping through code and setting breakpoints) was working in…
Show quoted text 33 lines
At 21:56 26-7-2003 +0200, you wrote: >Hi, > >I thought some debugging (stepping through code and setting >breakpoints) was working in lazarus. > >When I try to step through a program it doesn't seem to run. > >In the debug output window is: >============================ >-break-insert testlcl.lpr:22> >&"No symbol table is loaded. Use the \"file\" command.\n" > >^error,msg="No symbol table is loaded. Use the \"file\" command." > ><-environment-cd /home/vsds/lazarus/projects/testlcl/> >^done > >(gdb) >============================= AFIAK The lazarus debugger itself should alsoi compliant in this case. >In the compiler options linker I have checked 'genrate debugging >info. >In the environment, debugging options I set the path to the debugger. > >Am I missing something? Nope, it should work. Is the -g flag set if you look at the Compiler options -> show options. Marc

I looked further into it and this behaviour was probably caused by choosing 'use launching application' in the run parameter dialog.

When I clear this checkbox (which I probablu should). I can step through the code. Works good.

Thanks for the help,
Vincent Snijders.

Reply by email