How can I see the java local variables value on the fly when thread blocked

Multi tool use


How can I see the java local variables value on the fly when thread blocked
I can use Btrace to see method parameters when the method called. but how can I see the variables when the thread are blocked or sleeping.
As I know, the dump file generated by jmap can only show global variables.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.