I created a custom behavior in Xcode 4 (Xcode > behaviors > edit behaviors > +) in order to launch a shell script (which is configured to be executable). I can invoke the behavi
Your script probably is running, but the output of such scripts is not piped to the debugger console. The output should be visible in the Console application (/Applications/Utilities/Console) as in the following example:
As for debugging this kind of thing, you can add the following line at the top of your script to send all output to a log file:
exec &>/path/to/logfile
You could then add something like this at the end of your script to allow you to peruse the log:
open -a TextEdit /path/to/logfile