Below shows a test that causes debug to be turned off on an error.
I ran the script shown below which caused a deliberate error. 13!:0]1 was
set to turn debug on before the tst verb was run. Ran tst, then entered z
to show indented 6 spaces and indeed, the value for z was correct. Then I
entered the same line causing the failure with unknown names. The value
error displayed as it should but then the indentation was only 3 spaces.
Displaying z again showed that the pendented error and debug were gone.
The following includes the script and the test.
temp/22.ijs _____________
z=:'global'
erase 'i n'
tst=:3 : 0
z=.i.2 2 2
echo (<1 0){z
i{n
)
13!:0]1
tst''
Running in the term window _______________________
JVERSION
Engine: j902/j64avx2/windows
Beta-n: commercial/2020-11-21T12:09:32
Library: 9.02.08
Qt IDE: 1.9.0/5.12.10(5.12.10)
Platform: Win 64
Installer: J902 install
InstallPath: c:/j902
Contact: www.jsoftware.com
load 'c:/users/don/j902-user/temp/22.ijs'
4 5
|value error: tst
| i{ n
|tst[2]
z
0 1
2 3
4 5
6 7
i{n
|value error
| i{ n
z
global
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm