> Can I do something so that upon encountering an error I also get the name
and the line of (in) the file being read?

Yes, though errors in startup are harder to debug because the system is not
initialized.

In your bin/profile.ijs file, set debug on, i.e. at the beginning add:

13!:0[1

Now when starting jconsole the system will suspend on error. Use the debug
commands to
examine the state, e.g. 13!:13'' gives the stack. See
http://jsoftware.com/help/dictionary/dx013.htm

On Thu, Jun 7, 2018 at 5:06 AM, Rudolf Sykora <rudolf.syk...@gmail.com>
wrote:

> On 7 June 2018 at 10:00, bill lam <bbill....@gmail.com> wrote:
> > For my winxp, the sequence is longer.
> >
> >    >4!:3''
> > D:\j807\bin\profile.ijs
> > D:\j807\system\util\boot.ijs
> > D:\j807\system\main\stdlib.ijs
> > D:\j807\system\util\scripts.ijs
> > D:\j807\system\main\regex.ijs
> > D:\j807\system\main\task.ijs
> > D:\j807\system\util\configure.ijs
> > c:\documents and settings\bill\j807-user\config\recent.dat
> >
> > ...
>
> >> In jconsole I can get, e.g.:
> >>
> >>     >4!:3''
> >> /home/ruda/soft/jsource/jbld/j64/bin/profile.ijs
> >> /home/ruda/soft/jsource/jbld/j64/system/util/boot.ijs
> >> /home/ruda/soft/jsource/jbld/j64/system/main/stdlib.ijs
>
> Ok. So if I understand right, while reading stdlib.ijs I encounter
> an error (either due to setlocale, trying to read /proc/cpuinfo, or
> whatever; basically because the script thinks I run linux, which I don't)
> and the whole process of 'booting' is stopped. That's why I don't have
> commands such as install, jpath, etc.
>
> By commenting out several things in stdlib.ijs, I am now a step further.
> I can issue
> install 'all'
> which starts, but ends instantaneously, due to wrong invocation of tar.
>
> The question I have is this:
> Can I do something so that upon encountering an error I also get
> the name and the line of (in) the file being read?
> So that I can easily navigate to the place instead of grepping and
> guessing?
>
> Thanks
> Ruda
> ----------------------------------------------------------------------
> 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