I hadn't but I have now. And I'm confused.

It seems that if debug is on that I am in debugging mode and even if an
error occurs within a try. block that it should suspend on the line in
error and not attempt any other recovery. I'm trying to debug something. Is
that what you meant about maybe the setting should on the try. instead on
the catchd. ? Maybe a tryd. ?

I apologize for being dense. Is there an example of using the catchd. to
allow me to debug from the line in error? Or an example using it?

On Wed, Jan 12, 2022 at 12:20 PM Raul Miller <[email protected]> wrote:

> Have you read the https://code.jsoftware.com/wiki/Vocabulary/trydot
> which Henry updated an hour or so ago?
>
> Thanks,
>
> --
> Raul
>
> On Wed, Jan 12, 2022 at 2:18 PM Don Guinn <[email protected]> wrote:
> >
> > I changed the catch. to catchd. and it still caught the error. Debug was
> > still on. Help implied that the catchd. block would not run at all if
> debug
> > were on before the try./catch. block. Since one can test to see if debug
> > was set in catch. , what is the purpose for catchd. ? What am I missing?
> >
> > What I would really like is to put the try./catch. in the highest level
> of
> > an application and it catch any error in the application. It seems
> awkward
> > to have to put try./catch. in every subroutine to handle errors.
> >
> > >
> > >
> > ----------------------------------------------------------------------
> > 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