Since I use the debugging every now and then, I thought it would be easy to
answer Ruda's question but it was not.  My first thought is that the name
of the verb in question is not "gettplog" but "gettplot_jzplot_".  However
there appears to be both "gettplog_jzplot_" and "gettplog_jwplot"
which appear to be identical.  However, setting stops in both failed to
work:

   dbstop 'gettplog_jwplot_'
   dbstop 'gettplog_jzplot_'
   'ylog 1' plot 1 2 0 3
|NaN error: gettplog
|   pos=.min+step*i.>:>.(max-min)    %step
|gettplog[:11]

However, at this point I was able to do this:

      13!:19''    NB. Cut back the stack
      13!:1''      NB. Look at stack
*   x     gettplog y
|getticpos[:3]
|   'Step Min Max Int TicPos'=.pm     getticpos Int;TIC;Min;Max;LOG;mtc
|getaxis1[67]
...
      dbstop 'gettplog'   NB. Set stops
      13!:4''             NB. Resume execution
|stop: gettplog
|   'int tic lmin lmax log cnt'=.y
|gettplog[:0]

So, I am properly stopped at this point but I can't figure why my initial
stops don't have an effect.  At least the above will provide a work-around.



On Sun, Mar 29, 2020 at 6:42 PM bill lam <[email protected]> wrote:

> You can first isolate problem be related to pop up box by setting
> wdinfo_z_=: echo
> so there won't be any pop-up info box.
>
> If crash gone away then it is a jqt issue.
>
> On Mon, Mar 30, 2020, 12:43 AM Rudolf Sykora <[email protected]> wrote:
>
> > Dear list,
> >
> >
> > if I do
> >
> >    load 'plot'
> >    'ylog 1' plot 1 2 0 3
> >
> > then I get an error message about NaN in 'gettplog'. Something like that
> > is almost expected to happen (but not necessarily, __ coming from log 0
> > still isn't NaN, or is it?). I wanted to edit gettplog to see what could
> > be done, but first I wanted to trace the function (my situation is
> > furthemore complicated by the fact that immediately after the error
> > message my session crashes, for still unknown reason as disccused
> > elsewhere in this forum).
> >
> > Hence I
> >
> >    load 'debug'
> >    dbstop 'gettplog'
> >    dbr 1
> >
> > and then repeated the 'ylog 1' plot 1 2 0 3
> > only to get the error message again and another crash. The debugging did
> > not started as I wanted.
> >
> > How should I achieve to start the debugger upon entering the gettplog
> > function, with the ability to make further steps one by one and thus see
> > what's going on?
> >
> > Thank you.
> >
> >
> > Best regards
> > Ruda
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


-- 

Devon McCormick, CFA

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

Reply via email to