如何使用IntelliJ从jars(非JDK)进入代码? [英] how to step into code from jars (non JDK) using IntelliJ?

查看:132
本文介绍了如何使用IntelliJ从jars(非JDK)进入代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很熟悉IntelliJ(和Stackoverflow),并且对Java很新,在我的应用程序中,我使用了IntelliJ中添加的外部库的jar。我也有这些jar的源代码,但我不是编译它(它们是巨大和复杂的)。现在调试我的应用程序时,我想进入编译到这些jar中的库代码。如何设置IntelliJ?
还有另外一种方法是将整个jar库源代码附加到我的应用程序代码?

解决方案

您可以将源代码附加到库配置。在项目结构对话框中,您可以定义哪些JAR组成哪些库,还有一个附加源...按钮,可以指定一个或多个源JAR,ZIP或目录。


I am new to IntelliJ (and Stackoverflow) and fairly new to Java,In my application I am using code from jars that in IntelliJ I added as "External Libraries". I also have the source code for those jars, but I rather not compile it (they are huge and complex). Now while debugging my application I would like to step into the library code that is compiled into those jars. How can I set up IntelliJ to do that? Is there another way other that attaching the entire jar library source code to my application code?

解决方案

You can attach source code to the library configuration. In the Project Structure dialog where you define which JARs make up which libraries, there is an "Attach Sources..." button that allows you to specify one or more source JARs, ZIPs or directories.

这篇关于如何使用IntelliJ从jars(非JDK)进入代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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