How can I get more error information from subscriber

Hi all

As mentioned in a post few days before, I have a program which save the connection handle from downstream and then publish event to them, where the subscriber are code in Java and it use c.k() to get the result publish from the KDB process

Recently I found that from time to time there are “length” error happen when I call c.k() to get the result. However, is it possible to get more information? Can I somehow catch that length error at kdb and print the data causing “length” error?

Thanks,

you can set 
  .z.ps:.z.pg:{0N!value 0N!x}

to see the query/code (x) and the value sent back to Java (value x).  

Great, thanks a lot!