re-attach sources in intellij?

后端 未结 3 1171
深忆病人
深忆病人 2021-02-04 01:49

I\'m hoping to debug into the source code of jaxb-impl.

I downloaded version 2.2.6, attached the sources and then realized the app I\'m debugging is using jaxb-impl ver

相关标签:
3条回答
  • 2021-02-04 02:35

    Project Structure | Libraries (or Module Dependencies if libraries are defined there):

    sources

    In case Maven is managing the dependencies, Download Sources in the Maven Projects should also work:

    download

    0 讨论(0)
  • 2021-02-04 02:46

    Project Structure | Libraries (or Module Dependencies if libraries are defined there):

    Project Structure

    Then in the libries tab click on the plus mark:

    Libraries

    Select the source type.

    Add source

    Then you have to select the source path and add the wanted libraries finally click apply!

    0 讨论(0)
  • 2021-02-04 02:52

    Another (non-GUI) option is to delete the downloaded source files from $USER_HOME$/.ideaLibSources/ and restart IntelliJ. I'm working on a Grails project and didn't see anything relevant in the GUI.

    0 讨论(0)
提交回复
热议问题