如何调试外部JAR文件 [英] How can I debug external JAR files

查看:199
本文介绍了如何调试外部JAR文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用我的code一些Apache库。此刻我打各种我需要调试的问题。然而,问题是,当我通过数据转换成表示,Apache的图书馆之一,当我尝试使用NetBeans它根本处理在后台,不踏进code我要查看步入方法调用。

I'm using some apache libraries in my code. At the moment I'm hitting a variety of problems that I need to debug. However the problem is when I pass data into one of said Apache libraries, when I try to step into the method call using netbeans it simply does the processing in the background and doesn't step into the code I want to view.

有谁知道我是如何配置IDE,这样我可以调试阿帕奇code呢?现在,我只是将其添加为关联库将JAR与该项目。

Does anyone know how I configure the IDE so that I can debug the apache code as well? Right now I just associate the JAR's with the project by adding them as libraries.

推荐答案

您需要连接源罐子(如公共琅2.4 sources.jar)到你的依赖,指令的这里

You need to attach a source jar (e.g. commons-lang-2.4-sources.jar) to your dependency, instructions here

我也建议您使用 Maven2的来管理你的项目依赖,我没有用的Netbeans,至少5年来,但是两者的Eclipse和放大器;拥有的IntelliJ Maven插件,将导入所有依赖关系并将其链接到源/ javadoc的罐自动。

I should also recommend using Maven2 to manage your project dependencies, I've not used Netbeans for at least 5 years, but both Eclipse & IntelliJ have Maven plugins which will import all your dependencies and link them to sources/javadoc jars automatically.

这篇关于如何调试外部JAR文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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