$ vi simple_code.sh
In the above code, line 3 and 4 are commented out, it's an easy and simple work. But what if the block of code that are going to be commented out is more than hundreds of lines, it could cost you hours to finish it.
Here I introduce a more convenient way to do it, just comment out hundreds of lines by enclosing them in one never-used function block.
$ vi hundreds_code.sh
Once you have finished debugging, just uncomment the block by removing the function declaration and the pair of curly brackets.