For general debugging, we can use the vi editor along with certain options.
During debugging, many times we search for a pattern throughout the complete document. It is preferable to highlight the searched item. We will enable search pattern highlighting by using the following command in the vi editor when the document is opened:
:set hlsearch :set ic
We can even modify the vi editor configuration file-.exrc or .vimrc so that we need not give the previous command again and again.