there is also a "break" utility (break.bat in windows) which will stop a "runaway" program/function when executed..
On Thursday, November 26, 2020, 06:10:10 p.m. EST, chris burke <[email protected]> wrote: Use dbstopme to stop at a specific line, see the example below. A non-empty argument is a test, so stop if true. Caution: if using 902 beta, get the latest beta and qt addon, as there have been recent updates to debug. foo=: 4 : 0 a=. 2 + y dbstopme'' b=. a * 5 x + b ) dbg 1 2 foo 3 On Thu, Nov 26, 2020 at 2:20 PM HH PackRat <[email protected]> wrote: > > I could have sworn that, a couple of months ago, someone posted some > code that included a "stop" command of some sort in explicit coding, > but I can't remember how it was done. I cannot find such a command > anywhere in NuVoc. Searching the wiki brought back the > "Vocabulary/JBreak" ancillary page, which referred only to the desktop > icon for basically stopping a "runaway" program. > > What I'm looking for is a J command of some type (something like > "stop." or some synonym). As I'm testing a program, I often want to > stop ever so often without executing the entire program. "break." and > "end." obviously don't work, since J won't even load a program that > doesn't use those words correctly as part of a larger construction. > > All I want to do is stop the program in the middle without using a > deliberate error (such as "13!:8 2") and without continuing to the end > of the program. I would appreciate any help with this! > > Harvey > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
