Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: simple console output not displayed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple console output not displayed



The best way to do this if your tool needs input is probably to run it from Terminal.

Usually stdout of a process on OS X will go to the console (but you cannot perform input in Console.app). If you run the program in Terminal, both stdin and stdout go from/to the Terminal. If you run it in ProjectBuilder then they go to the Run tab (but I cannot remember at the moment of the run tab accepts input for stdin...)




I am not sure what the exception is all about, but if you'd like to run ProjectBuilder in gdb with a breakpoint on -[NSException raise] we would love to see a stack backtrace from the error...

gdb "/Developer/Applications/ProjectBuilder.app/Contents/MacOS/ProjectBuilder"
br '-[NSException raise]'
run

# Now PB should launch. Do what you did before to cause that exception and gdb should stop ProjectBuilder at the breakpoint. When it stops, in gdb, do:

thread apply all backtrace

# Now email all the gdb output to macosx-tools-
email@hidden along with a description of the actions leading up to the error.


Mike Ferris


Begin forwarded message:

From: Michael Benedict <email@hidden>
Date: Sat Feb 10, 2001 10:14:38 AM US/Pacific
To: email@hidden
Subject: simple console output not displayed

I'm attempting to use PB to do some intro cs homework which handles
all interaction with the user through the console, specifically
through cin and cout. I read in an earlier post here that this type
of output should be visible by running console.app in
applications:utilities. I can't seem to get it to display, so I have two
questions:
1) What could I be doing wrong? and
2) If I get output to display, will I then be able to accept input?
(ie. cin >> variable;)

I'm not sure if this is at all related, but when I run the app this is
dispalyed in the console:

Feb 10 13:13:54 ProjectBuilder[335] Exception raised during posting of
notification. Ignored. exception: *** -[NSCFArray objectAtIndex:]: index
(0) beyond bounds (0)

Thanks to anyone who can help.
--Michael
email@hidden
_______________________________________________
projectbuilder-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/projectbuilder-users




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.