Terminal Doesn't open on MacBook Air M1 2020 lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- cjledbetter · 2022-02-06 21:54 Hi, I try to run a simple hello world command line program and the terminal doesn't open.  The executable file is created when I save and works.  I've used windows 10 and it works no problem.  I would rather use Mac.  Any help will be greatly appreciated. Running Monterey 12.2 Lazarus IDE 2.2.0 ---------------------------------------------------------------------- trev · 2022-02-06 23:44 You can either open a terminal yourself and run the console application from there or add an execute after command and have the output show up in the Messages window. See attached pics for how to do the latter. ---------------------------------------------------------------------- trev · 2022-02-07 00:57 Alternatively, create a script, eg: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i #!/bin/sh/S ystem/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal ~/tmp/project1 and add it to the Lazarus > Run > Run parameters > Host application field. This pops up a Terminal with which you can interact with your console application. Note: Does not work with debugging, only run w/o debugging. ---------------------------------------------------------------------- cjledbetter · 2022-02-07 01:34 Thank you @trev, I got the script to work (without debugging not ideal though).  How do I run the console application in the terminal? ---------------------------------------------------------------------- trev · 2022-02-07 03:15 Open an Applications > Utilities > Terminal, then: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i cd ~/tmp./project1 Or you can run it through the macOS lldb debugger: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i cd ~/tmplldb project1 ---------------------------------------------------------------------- Martin_fr · 2022-02-07 11:44 If debugging, you can not specify a terminal in "Run Params" But IIRC under Tools>OPtions>Debugger>Backend  is an option (checkbox in property grid) to open a terminal / you can't specify any params...). If that is on, and does not work, please send a log: https://wiki.lazarus.freepascal.org/GDB_Debugger_Tips#Log_info_for_deb ug_session ---------------------------------------------------------------------- cjledbetter · 2022-02-10 01:30 Thanks, using the terminal works.  This is solved for me. ---------------------------------------------------------------------- Spira · 2022-03-17 12:34 Hi, under Mac OS X in Preferences->Debugger->Debugger backend and set the option LaunchNewTerminal, I am using lldb debugger. It does function for me and the debugging of command line programms. Regards Spira