Don,

start J:
   break 0 NB. display break usage

Jqt program in a loop, start jconsole and enter: break''

Jconsole program in a loop, enter: ctrl+c

JHS program in a loop, enter: ctrl+c in the jconsole server  window.

Start jconsole

On Thu, Nov 26, 2020 at 10:05 PM Don Kelly <d...@shaw.ca> wrote:

> that is fine-but when  a J  program is running  wild- how do I bring up
> "break.bat"?  I would like to know how to do this, other than ctrl
> alt-del  and then shut down J.
>
> Don Kelly
>
> On 2020-11-26 4:30 p.m., 'Pascal Jasmin' via Programming wrote:
> > 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 <
> cbu...@jsoftware.com> 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 <hhpack...@gmail.com> 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
> ----------------------------------------------------------------------
> 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