I have couple of ThreadLocal
s populated in my web app. And, while remote debugging the webapp, I want to see the value of these ThreadLocal
variables in Eclipse
(just like the way Eclipse
shows other variables in the variables tab in Debug perspective).
Any idea how can I view the value of ThreadLocal
variables during debugging in Eclipse
?
Thanks!
When you hit any breakpoint, just use view Expressions
to display the value of Thread.currentThread()
and you will be able to inspect every ThreadLocal value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With