Fixed incorrect code sample in README for running the debugger. Closes #42.

This commit is contained in:
Michael Mathews 2011-10-08 10:23:31 +01:00
parent 7d840bcaa3
commit 47518c3e0f
2 changed files with 4 additions and 3 deletions

View File

@ -65,9 +65,10 @@ JavaScript. Luckily it comes with a full-on debugger included that can be much
more useful than a simple stack trace. To invoke JSDoc with the debugger try the
following command:
$ java -classpath js.jar \
org.mozilla.javascript.tools.debugger.Main jsdoc.js \
$ java -classpath lib/js.jar \
org.mozilla.javascript.tools.debugger.Main -debug \
-modules node_modules -modules rhino_modules \
jsdoc.js \
your/script.js
This will open a debugging window. Choose "Break on Exceptions" from the "Debug"

2
jsdoc
View File

@ -5,4 +5,4 @@ PWD=`pwd`
BASEDIR=`dirname $0`
java -classpath ${BASEDIR}/lib/js.jar org.mozilla.javascript.tools.shell.Main -modules ${BASEDIR}/node_modules -modules ${BASEDIR}/rhino_modules ${BASEDIR}/jsdoc.js --dirname=${PWD}/${BASEDIR} $@
#java -classpath ${BASEDIR}/lib/js.jar org.mozilla.javascript.tools.debugger.Main -debug -modules ${BASEDIR}/node_modules -modules ${BASEDIR}/rhino_modules ${BASEDIR}/jsdoc.js ${BASEDIR}/jsdoc.js --dirname=${PWD}/${BASEDIR} $@
#java -classpath ${BASEDIR}/lib/js.jar org.mozilla.javascript.tools.debugger.Main -debug -modules ${BASEDIR}/node_modules -modules ${BASEDIR}/rhino_modules ${BASEDIR}/jsdoc.js --dirname=${PWD}/${BASEDIR} $@