From 47518c3e0f2efb140bd53f6f233922ce758ecac4 Mon Sep 17 00:00:00 2001 From: Michael Mathews Date: Sat, 8 Oct 2011 10:23:31 +0100 Subject: [PATCH] Fixed incorrect code sample in README for running the debugger. Closes #42. --- README.md | 5 +++-- jsdoc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5c972fa8..e7349b93 100644 --- a/README.md +++ b/README.md @@ -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" diff --git a/jsdoc b/jsdoc index 89cc407c..6d6a2e73 100755 --- a/jsdoc +++ b/jsdoc @@ -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} $@ \ No newline at end of file +#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} $@ \ No newline at end of file