<< I assume setting trace on will be the way to do this? >> It's one way to help find the problem. But be aware that certain problems may not even occur with TRACE ON.
Other ways include SET ECHO ON and DEBUG WRITE statements that go to the console or to a file. I've even had problems where after some number of loop iterations (say, in the 14,000 range) R:Base would simply quit, so there was nothing left to see. I debug those by writing a lot of "got to this line", "got to that line" messages into a file and then checking the file after the program crashes. -- Larry

