My favorites | Sign in
Project Home Downloads Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Source this script to parse debug-related flags and load arguments into ARGC
# and ARGV. After this script has been run it will not be possible to access
# the command-line arguments ($1, $2, ...) directly. Instead the arguments that
# were not understood by the script will be stored as a count in ARGC and the
# argument values in the ARGV.

ARGC=0
declare -a ARGV
SUSPEND="n"
DEBUG_MODE="off"
DEBUG_PORT="not set"
while [ -n "$1" ]; do
case $1 in
--debug) DEBUG_MODE="on";;
--suspend) SUSPEND="y";;
--debug_port=*) DEBUG_PORT=${1#--debug_port=};;
*) ARGV[$ARGC]="$1"; ARGC=$(($ARGC + 1));
esac
shift
done

if [ $DEBUG_MODE = "on" ] ; then
DEBUG_FLAGS=-Xrunjdwp:transport=dt_socket,server=y,suspend=$SUSPEND,address=$DEBUG_PORT
fi

Change log

6e5dae2b6d37 by so...@google.com on Sep 28, 2010   Diff
Make echoey and probey connect to
websocket port. Also added DEBUG_FLAGS.
Go to: 
Sign in to write a code review

Older revisions

6c94f20894ed by Christian Plesner Hansen <christian.plesner.hansen> on Aug 11, 2010   Diff
Unfederated FedOne
Changed default behavior when running
an unconfigurated FedOne from dying
with an error to running with
federation disabled.
...
All revisions of this file

File info

Size: 761 bytes, 24 lines
Powered by Google Project Hosting