a begginer's question... lazarus / 1-Linux ---------------------------------------------------------------------- someone2011 · 2011-01-23 15:48 i started learning programming with pascal a few months ago. i switched to linux a few days ago and installed lazarus(also newbe here). so i tried to make a simple 'hello' (custom) program everything seems to work fine but i dont see anywhere the output some help...? ---------------------------------------------------------------------- typo · 2011-01-23 15:54 Have you tried the Lib folder? ---------------------------------------------------------------------- Leledumbo · 2011-01-23 16:15 Quotei dont see anywhere the outputPut ReadLn just before the end. ---------------------------------------------------------------------- someone2011 · 2011-01-23 16:18 Quote from: typo on January 23, 2011, 04:54:14 pmHave you tried the Lib folder? as i said im new to all these what do you mean exacly? ---------------------------------------------------------------------- typo · 2011-01-23 16:20 I thought you could not find the executable file. ---------------------------------------------------------------------- Martin_fr · 2011-01-23 16:25 Have you tried running your executable, outside the IDE? Just open a terminal, and run your app there? What version of Lazarus? You may have to configure the debugger in Lazarus, you may have to add a starter app (under "run param" from run menu), but starte app + debugger => dos not work well... Debugging console app is not fully integrated... (but possible...). Hence which version of Laz? ---------------------------------------------------------------------- someone2011 · 2011-01-23 16:44 Quote from: Martin_fr on January 23, 2011, 05:25:26 pmHave you tried running your executable, outside the IDE? Just open a terminal, and run your app there? What version of Lazarus? You may have to configure the debugger in Lazarus, you may have to add a starter app (under "run param" from run menu), but starte app + debugger => dos not work well... Debugging console app is not fully integrated... (but possible...). Hence which version of Laz? the version is Lazarus 0.9.28.2-10ubuntu1 r22277 FPC 2.4.0 x86_64-linux-gtk 2 (beta) if you need any other information let me know ---------------------------------------------------------------------- someone2011 · 2011-01-23 16:47 ... i installed through the ubuntu software center ---------------------------------------------------------------------- Martin_fr · 2011-01-23 18:18 Have you tried to start your app from a terminal, outside the IDE? I assume: - your app does compile? - you get a executable file, on your harddisk (.e.g. project1) 1) So in a terminal (xterm, gnome-terminal, ...) you can start it? 2) In Lazarus you can go to the "run" menu, and in "Run Param" you can define a starter app (e.g xterm). However starter app only works if you choose no debugger (Environment options). 3) If you want to debug your app in Lazarus, you need the latest snapshot (0.9.31). And it is a little tricky, as debugging console apps (writeln, readeln) is not fully integrated yet. http://bugs.freepascal.org/view.php?id=12172 Configure gdb in the environment options. Then you need to first start a terminal, then in that terminal run "tty", which will give you something like "/dev/pty/1" or /dev/ttyN" or ...) This you just enter in the debug config as the "ConsoleTTy" in "debugger => general" ("debugger specific options") When you start your app, it's in/output will be on this extra terminal. ------------ It's easier under windows, because windows hives you a separate terminal window anyway... The problem only exists for console apps. GUI apps are easier to debug.