I thought this was rather trivial but I am trying to figure out the best way to deal with this. Suppose RATS throws up an error like this:
The Error Occurred At Location 5041 of loop/block
Line 224 of loop/block
What can be the best and a quick way to get the line numbers to check and debug? Does it help if every line not used is commented by using * ? I know in Matlab, the exact line number corresponds to the matlab editor when the codes are written with or without "blank" lines. The same is true for GAUSS; I can find the exact line number using an editor like notepad++.
Debugging
Re: Debugging
The "count" for a loop/block, procedure or function starts with the DO, PROCEDURE or FUNCTION (ignoring any comments that come before it) but counts any comments after that. The simplest way to find line 224 is to go the start of the loop, see what the line number is (on the status bar at the bottom of the application window), add 223 to it, and page down to find that.