Just execute the main file and point your browser to http://localhost:3000/
user@box jsdetox $ ./jsdetox [JSDetox] Loading framework ... done. [JSDetox] Starting webserver (hit Ctrl-C to quit) ... => Padrino/0.10.5 has taken the stage development at http://127.0.0.1:3000 [2012-06-24 18:12:06] INFO WEBrick 1.3.1 [2012-06-24 18:12:06] INFO ruby 1.9.3 (2012-02-16) [x86_64-linux] [2012-06-24 18:12:06] INFO WEBrick::HTTPServer#start: pid=18030 port=3000
The default ip/port can be changed using the -l/-p parameter:
user@box jsdetox $ ./jsdetox -h Usage: ./jsdetox [options] Options: -pUse the specified TCP port -l Listen on the specified IP address -h, --help Show this message
To get an idea of a typical workflow with JSDetox, have a look at my blog or watch some screencasts.
JSDetox provides some special functions to interact with JSDetox from the executed script.
Function | Description |
---|---|
jsdetox.puts(msg[, data]); | Log the value of 'msg', optionally save the value of 'data' with the log message. The value of 'data' can then be viewed in a special window with the option to send it to the "Code Analysis" tab. |
jsdetox.break(err); | Break the execution and log the error message 'err'. |