Thanks, that's quite logical.

But for a moment seem not very practical. JforC recommends to always
specify rank, and indeed, the verb logic depends on it. I guess, to
have it all, I do need to have a habit of creating a main verb without
rank - and likely with name using some convention - and to always wrap
it with another verb. There is a price for indirect calling... Doesn't
seem right to debug a program and then remove those intermediate verbs...
Extra verbs in general complicate matters somewhat... But it's certainly
doable.

Alexander

> From: Don Guinn <[email protected]>
> 
> The debugger doesn't work well with explicit verbs where
> rank is specified.
> The explicit part is actually an anonymous verb (has no
> name) and the
> debugger displays it as a character string ignoring line
> feeds. In fact, the
> named part verb is tacit. Give the explicit part another
> name and refer to
> that name for the verb name with the rank override for
> debugging. Then later
> you can put it all back together.
> 
> On Sat, May 1, 2010 at 12:56 PM, Alexander Mikhailov <[email protected]>wrote:
> 
> > I'm studying the debug tool. It's explained in User
> Manual and in the Lab.
> >
> > An example for debugging used in the Lab is the
> following:
> >
> > foo=: 4 : 0
> >  NB. comment line
> >  a=. 2 + y
> >  b=. a * 5
> >  x + b
> > )
> >
> > This one gets displayed correctly in the debug tool
> window. If I modify the
> > verb, adding rank -
> >
> > foo=: 4 : 0 "0 0
> >  NB. comment line
> >  a=. 2 + y
> >  b=. a * 5
> >  x + b
> > )
> >
> > then in debug tool all lines are concatenated into
> one, and stepping
> > doesn't work.
> >
> > Am I doing something wrong? Is it a configuration
> issue?
> >
> > Thanks,
> >
> > Alexander



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

Reply via email to