Ubuntu no console window with gdb on no debug if gdb off lazarus / 12-Debugger ---------------------------------------------------------------------- Sohen · 2021-11-05 03:43 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 · 2021-11-05 05:00 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 · 2021-11-05 06:31 Quote from: dbannon on November 05, 2021, 06:00:03 amJust 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 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 · 2021-11-05 10:54 Welcome to Linux, a little bit different ! You will soon come to love it ! Davo ---------------------------------------------------------------------- MarkMLl · 2021-11-05 11:02 Quote from: Sohen on November 05, 2021, 07:31:51 amWhen 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.  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 ---------------------------------------------------------------------- jujibo · 2021-11-05 11:46 You also can press Ctrl+Alt+o  to show the input/output console ---------------------------------------------------------------------- PascalDragon · 2021-11-05 12:12 Quote from: Sohen on November 05, 2021, 07:31:51 amI was expecting lazarus to open my normal terminal like it did in windows. On Windows this works, because there the executable has a flag that tells the OS whether a console is required or not (and Windows will then open a console window if necessary). For other operating systems there is no such flag and thus Lazarus doesn't automatically open its own console window, because it can't tell whether it's necessary or not.