Everything is in right place and folder and script is working almost %99 but I have a minor problem that I need to debug... I start the consol and I have tried to put break all over the places but somehow script executes without going to the breaks so I can not follow it up and see what is the problem...
You could add 'console.println()' statements in your code to display the progress and values as the script runs.
The same file also describes how to use the debugger to do actual debugging
by adding break-points and stepping through the script. See page 37 onwards.
Can you show an example of debugging with setInterval or setTimeOut ?