I wonder whether I'm missing something: I can't get the on-the-fly debugging in j9.6 beta(15) jconsole to work.
foo =: {{ 'a'+1[ echo'bar'[ bar=. 'test'}} NB. test verb, causing an error
foo 1
bar
|domain error in foo, executing dyad +
|x is character
| 'a' +1[echo'bar'[bar=.'test'
Press ENTER to inspect NB. I pressed enter here.
dbr 0 to end inspection; use y___1 to look inside top stack frame (see
code.jsoftware.com/wiki/Debug/Stack#irefs)
bar
|value error: bar NB. why can't I access bar?
*foo[0]
dblocals'' NB. dblocals indicates bar should be a local
┌────────┬──────────┐
│dblocals│ │
├────────┼──────────┤
│foo │┌───┬────┐│
│ ││bar│test││
│ │├───┼────┤│
│ ││y │1 ││
│ │└───┴────┘│
└────────┴──────────┘
dbr 0 NB. exit on-the-fly debug
dbr 1 NB. regular debug
foo 1 NB. try again
bar
|domain error in foo, executing dyad +
|x is character
| 'a' +1[echo'bar'[bar=.'test'
|foo[0]
bar NB. here I can access bar
test
If I can't access and manipulate locals in the function causing the error, the on-the-fly debugging is not really helpful to me. Does anyone know what I'm doing wrong?