Java IntelliJ-调试时选择源代码位置

Java IntelliJ-调试时选择源代码位置,java,debugging,intellij-idea,Java,Debugging,Intellij Idea,我试图进入JDK源代码,但是本地JDK和远程JDK的版本不同,因此行号不匹配。我已经下载了远程JDK的源代码,但是我不知道如何告诉IntelliJ使用它们 如何告诉IntelliJ使用特定的JDK源进行调试?您可以根据以下内容设置JDK: 你能不能不下载远程设备,将其添加到本地并使用它?我正在调试一个云应用程序,它在JVM更新后崩溃。我已经下载了JVM和它;,但我不知道如何告诉intellij使用它。我的想法是使用捆绑的JVM 8,它是Idea下载的一部分,而我的应用程序使用Java 7。我也

我试图进入JDK源代码,但是本地JDK和远程JDK的版本不同,因此行号不匹配。我已经下载了远程JDK的源代码,但是我不知道如何告诉IntelliJ使用它们

如何告诉IntelliJ使用特定的JDK源进行调试?

您可以根据以下内容设置JDK:


你能不能不下载远程设备,将其添加到本地并使用它?我正在调试一个云应用程序,它在JVM更新后崩溃。我已经下载了JVM和它;,但我不知道如何告诉intellij使用它。我的想法是使用捆绑的JVM 8,它是Idea下载的一部分,而我的应用程序使用Java 7。我也不知道;I don’我不想在其他JDK上运行Idea,因为它不支持任何GUI内容。设置项目JDK:@Mark谢谢Mark,请将您的评论添加为答案,以便我可以接受:)添加为答案。:)
To configure a project SDK

    Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S).
    In the left-hand pane, under Project Settings, click Project.
    On the page that opens in the right-hand part of the dialog, select the necessary SDK from the Project SDK list.
    If the desired SDK is not present in the list, click New and select the necessary SDK type.
    In the dialog that opens, select the SDK home directory and click OK.

    As a result, a new SDK is added to IntelliJ IDEA and selected as the project SDK.
    To view or edit the SDK name and contents, click Edit. (The SDK page will open.)
    Click OK in the Project Structure dialog.

To configure a module SDK

    Open the Project Structure dialog (e.g. Ctrl+Shift+Alt+S).
    In the left-hand pane, under Project Settings, click Modules.
    In the area under project_structure_toolbar_2_modules, select the module of interest.
    In the right-hand part of the dialog, on the Module page, select the Dependencies tab.
    Select the SDK from the Module SDK list. (To select the project SDK, select Project SDK. Note that if you change the project SDK later, the module SDK will change accordingly.)
    If the desired SDK is not present in the list, click New and select the necessary SDK type.
    In the dialog that opens, select the SDK home directory and click OK.

    As a result, a new SDK is added to IntelliJ IDEA and associated with the module.
    To view or edit the SDK name and contents, click Edit. (The SDK page will open.)
    Click OK in the Project Structure dialog.