简体   繁体   中英

remote debug without source code

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM