如何使用IntelliJ从jars(非JDK)进入代码? [英] how to step into code from jars (non JDK) using 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屋!