Recent

Author Topic: Console output on Mac OS  (Read 7030 times)

Globule68

  • Newbie
  • Posts: 2
Console output on Mac OS
« on: May 15, 2011, 11:20:37 pm »
I have a problem to run a console application in the following configuration:

fpc 2.4.2
Lazarus 0.9.30
Xcode 3.0
Mac OS X 10.5.8
2GHz Intel Core Duo

It works very well in graphic environment. And console output works on window 7.
But on the Mac OS I am unable to start a simple fpc program in console mode from the IDE.

The exe code can be started manually by running "./Project" in a Mac consol but RunWait launched by the IDE return the error message:
/lazarus/tools/runwait.sh -t'Lazarus Run Output' -e .......  doesn't exist or is not executable, would you like to create one ?

How can I configure the IDE to run console execution on Mac OS ?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12202
  • Debugger - SynEdit - and more
    • wiki
Re: Console output on Mac OS
« Reply #1 on: May 15, 2011, 11:53:07 pm »
I don't know about the problem, nor can I currently test it.

but the runwait.sh seems to exist (in svn) => so maybe the installer didn't set the executable flag?

have you tried chmod a+x runwait.sh

Also, you should be able to change the launcher app in "run param" from the "run" menu.

But: some launcher do not work in gdb at all.

Also if you start a console app in gdb, you may have to specify a terminal for in/output first => or you will not see anything.
If you succeed with a starter app, you may be fine.

If you run without starter app, by default all output goes to dev/null => see "options" form the menu; page "debugger" there is a property grid, with a tty entry.

to get a tty => launch a shell, run the command "tty" (will only be valid, until you close the shell)

 

TinyPortal © 2005-2018