Forum > Debugger

Lazarus Debugger error Linux mint 19 when using run parameters

(1/2) > >>

Mladen:
Hello, after trying to use Lazarus on Linux Mint 19 or Ubuntu MATE 18.04, when using run parameters "/usr/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)" to run my web application in terminal I get the following error.

The GDB command:
"info address main"
returned the error:
",msg="No symbol \"main\" in current context.""

On Linux Mint 18.3(Ubuntu 16.04) it worked fine and it had GDB version 7.11 installed.

GDB version is 8.1 now.

Cheers

Martin_fr:
It probably is the different xterm version.

You can try the "startup break method" (or similar name) from the property grid under Tools > Options > Debugger.  try the value "AddZero" instead.

But it may not help. And even if it can start it, it may not be able to debug it (eg set breakpoints). If so, you need to check if xterm may fork any sub processes, and if there are settings to prevent this. If not, then I do not know of any solution.

There is a window in the IDE showing your apps output: Menu View > Debug windows > console in/out


See also http://forum.lazarus-ide.org/index.php/topic,34922

Mladen:

--- Quote from: Martin_fr on July 13, 2018, 12:33:32 pm ---It probably is the different xterm version.

You can try the "startup break method" (or similar name) from the property grid under Tools > Options > Debugger.  try the value "AddZero" instead.

But it may not help. And even if it can start it, it may not be able to debug it (eg set breakpoints). If so, you need to check if xterm may fork any sub processes, and if there are settings to prevent this. If not, then I do not know of any solution.

There is a window in the IDE showing your apps output: Menu View > Debug windows > console in/out


See also http://forum.lazarus-ide.org/index.php/topic,34922

--- End quote ---

Thank you for your answer. I will use console window from now on.

Cheers!

Hartmut:
I have the same problem with Lazarus 1.8.4 on Ubuntu 18.04 with KDE-Plasma Desktop. When I enable Menu "Run / Run Parameters / Use launching application" then on program start I get an error (see screenshot1):


--- Code: ---The debugger could not set a breakpoint on the application's entry point.
This may be caused by missing debug info.

The GDB command:
"info address main"
returned the error:
",msg="No symbol \"main\" in current context.""
--- End code ---

I spent a couple of time searching at google and in this forum for that problem, but I found no solution. Often was recommended to disable the debugger. But in Lazarus 1.8.4 I found no setting to do this (maybe I'm blind? ;-). So please can somebody describe how exactly I can disable the debugger - thanks a lot.

Also I tried to set Menu Tools / Options / Debugger / General / InternalStartBreak to gdsbAddZero, but nothing changed. Please see attached my debugger options.

My program is a simple "Hello world". I created it via Menu "File / New / Simple Program".

As "launching application" I can choose between 3 predefined possibilities:

/usr/bin/konsole -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)
/usr/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)
/usr/bin/gnome-terminal -t 'Lazarus Run Output' -e '$(LazarusDir)/tools/runwait.sh $(TargetCmdLine)'

I tried all 3 but no difference. All 3 console programs exist and do start in the above path.

I tried Menu "View / Debug Windows / Terminal Output" but found so many disadvantages that I don't want to really use it.
I would be very happy if one of the debugger experts could help me.
Thanks a lot in advance.

howardpc:
You disable the debugger via Tools->Options
In IDE Options dialog select Debugger in the treeview on the left, and set the first dropdown in the "Debugger type and path" section to "(none)".

Navigation

[0] Message Index

[#] Next page

Go to full version