I think if you use catchd. rather than catch. debugging will continue.

Henry Rich

On 1/12/2022 1:17 PM, Don Guinn wrote:
To find out what works I built the following script:
_______________________

test=:{{

13!:0]1

try.r=. >:y

catch.

echo 'debug ', ":13!:17 ''

echo 'stack ', ":13!:18 ''

echo 'error number ', ":13!:11 ''

echo 'error message ',LF,":13!:12 ''

r=.'fail'

end.

13!:0]0

r

}}


test2=: {{

echo 'test2 run'

test y

}}

_________________________


Then tried it to see what worked.



    test2 3
test2 run
4
    test2 '3'
test2 run
debug 1
stack
error number 3
error message
|domain error: test
|   r=.    >:y

fail


Looks like the error number and message are good. But the debug flag is
still set even though it's temporarily disabled. No surprise that the stack
shows empty, but it would be nice to help in debugging.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


--
This email has been checked for viruses by AVG.
https://www.avg.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to