Forum > Debugger

Ubuntu no console window with gdb on no debug if gdb off

(1/2) > >>

Sohen:
I'm trying to get Lazarus configured correctly on my linux box and I've run into a snag. I can't get both debugging and the output console windows to run at the same time.  If I enable debugging (gdb) under Tools->Options->Debugging->General. I don't get a console window on Ubuntu.  It "seems" to be debugging but I can't see the console.  If i turn off debugging the console window appears but now i can't debug.

I guess i should say I'm writing just console applications using the template in lazarus and I've enabled debugging on project options as well its set to automatic.

Any pointers in the right direction?  Just trying to get the ide working like i know it can (have used in windows).

dbannon:
Just to be clear here.

In the IDE, you click View->Debug Windows->ConsoleIn/Out and the console window does not open ?  Or it opens but you don't see any output in it ?

Davo

Sohen:

--- Quote from: dbannon on November 05, 2021, 06:00:03 am ---Just to be clear here.

In the IDE, you click View->Debug Windows->ConsoleIn/Out and the console window does not open ?  Or it opens but you don't see any output in it ?

Davo

--- End quote ---


THANK YOU! !!!!

When I follow your process with gdb running I do indeed get the console output. 

You have no idea how hard this has been to debug!

Well I am an idiot, didn't even know that existed. I was expecting lazarus to open my normal terminal like it did in windows.  This works just fine. 

Cheers!

dbannon:
Welcome to Linux, a little bit different !

You will soon come to love it !

Davo

MarkMLl:

--- Quote from: Sohen on November 05, 2021, 07:31:51 am ---When I follow your process with gdb running I do indeed get the console output. 

You have no idea how hard this has been to debug!

Well I am an idiot, didn't even know that existed. I was expecting lazarus to open my normal terminal like it did in windows.  This works just fine. 

--- End quote ---

An alternative is to start the program in a normal shell session, and then use the IDE's Run -> Attach ro program... facility. In both cases be careful about reading too much into spurious line breaks: the IDE is very much at the mercy of how gdb behaves.

MarkMLl

Navigation

[0] Message Index

[#] Next page

Go to full version