A monadic function threw an error, so I used ctrl-K to invoke the debugger, and set stop all lines, expecting to be able to step through it to see what was happening.
Unfortunately, the lines were not displayed separately in the trace. It's difficult to explain succinctly so here goes with a toy function which DOES work ok: JVERSION Engine: j901/j64avx/windows Beta-j: commercial/2019-09-06T12:39:55 Library: 9.01.08 Qt IDE: 1.8.2/5.12.2 Platform: Win 64 Installer: J901 install InstallPath: c:/d/j901 Contact: www.jsoftware.com test 3 : 0 n =. y q =. 1 for_i. i.n do. q =. q + 1 end. q ) test 3 NB. use it without the debugger... 4 So far so good. I'll now do ctrl-K and set a stop on all lines, and then run test 3 again: test 3 ... now Debug shows this in the top window:
|>[0] 3 : 0[]n =. yq =. 1[]for_i. i.n do.[] q =. q + 1[]end.[]q[])
please note the "[]" characters are my version of an APL-ish squish I would expect to see something like: >|[0] n =. y |[1] q =. 1 |[2] for_i. i.n do. |[3] q =. q + 1 |[4] end. |[5] q The middle window is similar: stop test[0] 3 : 0[]n =. yq =. 1[]for_i. i.n do.[] q =. q + 1[]end.[]q[]) I've seen this sort of unrewarding display previously, but for adverbs and conjunctions, or memoised functions, not for "simple" monads or dyads. This might not be a particular feature of Beta version j - I'm not sure I've used debug in version i, but probably have in version h. Thanks Mike --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
