3

I am connecting to a remote jvm and debug it. Some classes are generated in runtime and eclipse can not step through such classes.

How can I debug such classes without source code? I want at least to be able to step through bytecode of such classes.

Thanks

1 Answer 1

3

I'll sugguest Btrace, BTrace can be used to dynamically trace a running Java program (similar to DTrace for OpenSolaris applications and OS). BTrace dynamically instruments the classes of the target application to inject tracing code ("bytecode tracing").

In one world, write a btrace script, specify target method with annotation, then you can trace the data and behavior of jvm from outside by Btrace.

This is quite useful to debug Java program in production environment and programs without source code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.