1
0
Fork 0

fix README_maintainers, provide debug output for invalid invocations

This commit is contained in:
jsteemann 2017-04-19 12:05:16 +02:00
parent e9f9f155e2
commit 054f1afeb0
3 changed files with 7 additions and 6 deletions

View File

@ -284,16 +284,16 @@ valgrind could look like this. Options are passed as regular long values in the
syntax --option value --sub:option value. Using Valgrind could look like this: syntax --option value --sub:option value. Using Valgrind could look like this:
./scripts/unittest single_server --test js/server/tests/aql/aql-escaping.js \ ./scripts/unittest single_server --test js/server/tests/aql/aql-escaping.js \
--extraargs:server.threads 1 \ --extraArgs:server.threads 1 \
--extraargs:scheduler.threads 1 \ --extraArgs:scheduler.threads 1 \
--extraargs:javascript.gc-frequency 1000000 \ --extraArgs:javascript.gc-frequency 1000000 \
--extraargs:javascript.gc-interval 65536 \ --extraArgs:javascript.gc-interval 65536 \
--javascript.v8-contexts 2 \ --javascript.v8-contexts 2 \
--valgrind /usr/bin/valgrind \ --valgrind /usr/bin/valgrind \
--valgrindargs:log-file /tmp/valgrindlog.%p --valgrindargs:log-file /tmp/valgrindlog.%p
- we specify the test to execute - we specify the test to execute
- we specify some arangod arguments via --extraargs which increase the server performance - we specify some arangod arguments via --extraArgs which increase the server performance
- we specify to run using valgrind (this is supported by all facilities) - we specify to run using valgrind (this is supported by all facilities)
- we specify some valgrind commandline arguments - we specify some valgrind commandline arguments

View File

@ -178,7 +178,8 @@ function main(argv) {
options = internal.parseArgv(argv, 0); // parse option with parseArgv function options = internal.parseArgv(argv, 0); // parse option with parseArgv function
} }
} catch (x) { } catch (x) {
print("failed to parse the json options: " + x.message); print("failed to parse the json options: " + x.message + "\n" + String(x.stack));
print("argv: ", argv);
return -1; return -1;
} }
} }