是否可以为我没有源代码的类添加断点? [英] Is it possible to add breakpoints to a class which I don't have the source code for?

查看:156
本文介绍了是否可以为我没有源代码的类添加断点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Eclipse中的类中添加一个断点,但是我没有源代码。是否可以在其中添加断点?在我的情况下,我真的只需要知道什么时候调用一个方法。



(作为旁注:有没有人有源代码j2ee_api_1_3.jar?)

解决方案

下载jad反编译器/通过windows-> preferences在eclipse中配置其路径,并打开需要放置的类的源代码断点 - 然后调试可以正常运行,您可以在变量视图中看到所有变量信息。


I want to add a breakpoint in a class in Eclipse, but I don't have the source code for it. Is it possible to add a breakpoint in it anyway? In my case I really only need to know when a method is called.

(As a side note: does anyone have the source code for j2ee_api_1_3.jar?)

解决方案

Download jad decompiler /configure its path in eclipse through windows->preferences and open the source of the class where you need to place the breakpoint - and then debug can run as it does normally and you can see all the variable information in the variable view.

这篇关于是否可以为我没有源代码的类添加断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆