run hello world directly from lazarus lazarus / 11-Options ---------------------------------------------------------------------- hgraca · 2009-10-12 08:14 Hi, im trying to run a simple hello world program from lazarus, in linux. When I push RUN it looks as if it is running, but nothing shows up. I push the stop button and it says "execution stoped", so it is really executing. Now, im running it from the command line with "./helloworld", however there should be a way of making lazarus open a box, like when I'm working in windows. How can I make Lazarus show the output box (command line style) ? Tkx ---------------------------------------------------------------------- Vincent Snijders · 2009-10-12 09:04 Things in linux are not as comfortable as in Windows. You can use xterm as launching application (see Run Paramaters), but then it is not possible to debug your application. ---------------------------------------------------------------------- hgraca · 2009-10-12 09:28 tkx for your reply. I went to "run > run parameters" and ticked the checkbox "use launching application", however it gives me the following error: The launching aplication "/usr/X11R6/bin/xterm -T .... helloworld" does not exist or is not executable I searched the paths and found that "/usr/X11R6/bin/" does not exist, although "/usr/X11R6/lib/" does exist. What do I need to do to fix this? tkx ---------------------------------------------------------------------- theo · 2009-10-12 09:31 For me, it's enough to disable the debugger and add a readln at the end of of the simple program: Code: [Select]writeln('test'); readln;  This shows a console window and closes after pressing the return key ---------------------------------------------------------------------- hgraca · 2009-10-12 10:45 How do I disable de debugger? I went to "environment>options>debugger" and selected  "none" in the first option, but it still doesnt work for me, and still gives me the same error message. I also used synaptics to install X11, but still the same error and the BIN folder still doesnt exist...  any ideas? ---------------------------------------------------------------------- theo · 2009-10-12 12:04 Quote from: hgraca on October 12, 2009, 12:45:59 pmany ideas? Uncheck "use launching application" ---------------------------------------------------------------------- hgraca · 2009-10-12 16:46 I didnt had xterm installed, i did apt-get install xterm Unchecked "use launching application" disable de debugger in "environment>options>debugger" and selected  "none" in the first option and it worked tkx ---------------------------------------------------------------------- marinero · 2009-10-18 14:36 and it's planned to implement console debugging in linux in the future? or it's something that simply can't be done easily just a question, I'm not demanding anything ---------------------------------------------------------------------- Marc · 2009-10-19 09:27 I the far future yes. The problem with the current GDB implementation is that it mixes console output with gdb output. So for the gdb parser is is almost impossible to know what should be parsed and what not. I've already been looking at a patch which can work around this, but this solution was very gdb/lazdebugger specific, while it can be used more generic.