This works for restartable (purely functional) code. It also works for single stepping.
It's not so simple for code with side effects, breaking into the debugger after hitting an error. But perhaps that issue should be dealt with through documentation, rather than code, except for the trivial issues that are always going to be present (even in "pure" code). Thanks, -- Raul On Mon, Jan 21, 2013 at 3:21 PM, Don Guinn <dongu...@gmail.com> wrote: > I think a sentence analyzer which allows for stepping through a sentence > like debug steps through lines of code would do the job. Henry's approach > only pausing and showing intermediate results as each token is processed in > a sentence. If the token happens to be defined then allow stepping into it > just as the debugger now can step into explicit definitions. > > On Mon, Jan 21, 2013 at 12:19 PM, Raul Miller <rauldmil...@gmail.com> wrote: > >> I certainly agree with you about the nature of the problem, when writing J. >> >> It's just that we also need to solve the implementation issues >> (hopefully without making a horrible mess of things) if we want to >> solve this. >> >> Thanks, >> >> -- >> Raul >> >> On Mon, Jan 21, 2013 at 2:13 PM, Don Guinn <dongu...@gmail.com> wrote: >> > Why do I want to put something like (3 : 0)"0 to start the definition? In >> > many cases it makes the definition clearer. And avoids having to repeat >> the >> > "0 in every use to avoid the definition failing if it only works for rank >> > 0. Also, sometimes I want to get some information before the enclosing >> > local names are hidden. >> > >> > The problem I ran into when wanting to include rank or some other tacit >> > processing on the data before entering the explicit definition is that >> the >> > debugger then treats the entire explicit part as one line. To avoid this >> I >> > have to define the verb without the "0 for testing, then add it >> afterward. >> > >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm