I'm trying to learn debugging in J. It does seem to be much different from, 
say, C++. Now I've got a specific question which I'd like to ask.

Suppose I have verb AA, which in its body calls verb BB, which in turn calls 
verb CC. When I run AA, for some input data I'm getting exception, which shows 
me a line in verb CC, say, line 5.

My verbs do have side effects (I use global variables). How can I debug the 
problem in CC after getting the exception? "Debug" means that I want to see 
inputs for verbs before and on the line 5, to figure out which data is 
incorrect. I can't resume - repeat the line - the execution from the same point 
within CC, and to run AA again, I have first to revert globals to their 
original state. I feel this is approach foreign for J, but I'm not sure how I 
should proceed with debugging in general here.

Can you suggest practical approaches here?

Alex



      
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to