Debugging `try` blocks : Tip

Debugging `try` blocks : Tip

I find it annoying that if one line inside a `try` block has an error, the Deluge arser points the beginning of the block to the location of the error.

BUT, if you temporarily comment out the initial `try {`  

The parser goes through the whole block and identifies specific errors even though the overall control structure is not valid.
If all the steps in the block are OK, you will see an error like:​
Reached end of the function block. Remove the code after the line number 39.

You can then uncomment the initial `try {`