pad.pub0.org/bin/debugRun.sh

20 lines
406 B
Bash
Raw Normal View History

#!/bin/sh
2011-03-28 12:27:09 +00:00
hash node-inspector > /dev/null 2>&1 || {
2011-03-28 12:27:09 +00:00
echo "You need to install node-inspector to run the tests!" >&2
echo "You can install it with npm" >&2
2011-07-26 16:00:56 +00:00
echo "Run: npm install -g node-inspector" >&2
2011-03-28 12:27:09 +00:00
exit 1
}
node-inspector &
echo "If you new to node-inspector, take a look at this video: http://youtu.be/AOnK3NVnxL8"
if [ -d "../bin" ]; then
cd "../"
fi
cd "node"
2011-03-28 12:27:09 +00:00
node --debug server.js