Sometimes, J scripts use try catch block so that it continue execution on errors. If you suspect that some error inside try block should be caught during debug, you need to modify the try catch block in order to let debug suspension works.
Чт, 07 июн 2018, Rudolf Sykora написал(а): > On 7 June 2018 at 14:39, chris burke <cbu...@jsoftware.com> wrote: > > 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 > > I added the 13!:0[1 line to the very beginning of my profile. But still: > > odin$ ./jconsole > install'all' > Updating server catalog... > tar: unknown option -- - > usage: tar {crtux}[014578befHhjLmNOoPpqsvwXZz] > [blocking-factor | archive | replstr] [-C directory] [-I file] > [file ...] > tar {-crtux} [-014578eHhjLmNOoPpqvwXZz] [-b blocking-factor] > [-C directory] [-f archive] [-I file] [-s replstr] [file ...] > Could not install the local repository catalog. > Could not install the local repository catalog. > tar: unknown option -- - > usage: tar {crtux}[014578befHhjLmNOoPpqsvwXZz] > [blocking-factor | archive | replstr] [-C directory] [-I file] > [file ...] > tar {-crtux} [-014578eHhjLmNOoPpqvwXZz] [-b blocking-factor] > [-C directory] [-f archive] [-I file] [-s replstr] [file ...] > Could not install the local repository catalog. > Could not install the local repository catalog. > > 13!:13'' > > How can I get the file and line number of the error? It should tell me > something like > jbld/j64/system/util/pacman.ijs: line_number_where_the_tar_is > > (It seems to me that the 'install' has not stopped its execution..., since > I see what appears as two invocations of tar) > > > Thanks > Ruda > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm