On Debug

Using Michael's verb in a script, loading it, starting the debugger (ctl-k) and setting a stop on line one with the Stop manager, I am expecting to be able to run line by line with Step into.

On launching, the debugger stops on line 0, but when I click Step into, execution does not progress.

      JVERSION
Engine: j902/j64avx/windows
Beta-n: commercial/2020-11-21T12:14:21
Library: 9.02.08
Qt IDE: 1.8.7/5.12.7(5.12.7)
Platform: Win 64
Installer: J902 install
InstallPath: c:/users/mouton/j902
Contact: www.jsoftware.com


~ Gilles

Le 2020-11-22 à 13:15, 'Michael Day' via Beta a écrit :
Two things,  one trivial,  the other on debug.

Trivial.  In JQt - I've only noticed yesterday/today, so I THINK it's a beta-n feature: Intermittently,  I type a function call, at the bottom of the terminal screen,  which would
normally produce a result immediately below,  something like
    i.4
0 1 2 3
but find I'm waiting for the result because a blank line appears with the result hiding a
further line below;  it isn't revealed until the window is scrolled down.

Debug.
I'm probably not "savvy with the debugger" as you'd like me to be; I just persist in using it
as I have for the last few years:  in JQt,  evoked with ctrl-K.

I've just tried it on a minimal function in response to your query.   I had been thinking that setting a stop-line and then running tended to finish up on an adjacent line.  That
might still be the case in earlier betas,  but not now.

Here's my little functino - I mistyped,  but perhaps it's appropriate! The function is ok - it doesn't do much but returns with no error.  Just trying debug to see what happens.

       zzzz
3 : 0
ai  =. y
rk  =. /:/: ai
lks =. /:~each a:,~ }.< \. rk
)

I type ctrl-K,  and set the stop line at
rk  =. /:/: ai
... and then run zzzz on a list of six integers,  eg ?~ 6.
Sure enough, it does stop at the correct line.  BUT none of the three step tabs work. I can't step over or into or out. In fact, nothing that I normally use works except the two arrows, back and forward.  I CAN close the debug window, but then it
will not open again, whether with ctrl-K or with Run/Debug.

This might be system dependent,  so:
JVERSION
Engine: j902/j64avx2/windows

Beta-n: commercial/2020-11-21T12:09:32

Library: 9.02.06

Qt IDE: 1.8.7/5.12.7(5.12.7)

Platform: Win 64

Installer: J902 install

InstallPath: c:/d/j902

Contact: www.jsoftware.com


I haven't tried the dbg options,  as I'm not familiar with them.

Cheers,

Mike



On 22/11/2020 14:17, Henry Rich wrote:
The changes in beta-n are code rearrangement for debug. If you are savvy
with the debugger, please check it out.

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



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

Reply via email to