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

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

问题描述

我是 IntelliJ(和 Stackoverflow)的新手,对 Java 还相当陌生,在我的应用程序中,我使用的是来自 jar 的代码,在 IntelliJ 中我添加为外部库".我也有这些 jars 的源代码,但我宁愿不编译它(它们庞大而复杂).现在,在调试我的应用程序时,我想进入编译到这些 jar 中的库代码.我如何设置 IntelliJ 来做到这一点?还有其他方法可以将整个 jar 库源代码附加到我的应用程序代码中吗?

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?

推荐答案

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

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天全站免登陆