Eclipse does not show source code of maven dependencies in debug view

前端 未结 2 1189
谎友^
谎友^ 2020-12-17 05:22

I\'ve filed a bug by now: 495662 - Source Lookup: Not seeing source code in the debug view.


My issue sounds familiar but it can\'t be since that issue appears

相关标签:
2条回答
  • 2020-12-17 05:35

    Tested for Eclipse Neon:

    Press 'Edit Source lookup ...', press Add button for 'Java Classpath Variable' in dialog and choose M2_REPO variable and press 'Extend...'. Then choose source jar file for wanted dependency from file system tree.

    After that press 'OK' on all dialogs and relaunch debug process.

    0 讨论(0)
  • 2020-12-17 05:48

    I don't know what the actual problem was and why it stopped working. As you can take out of my question I actually downloaded a clean version of Eclipse, checked out the naked project and imported it with maven without results.

    However, I found this com.ifedorenko.m2e.sourcelookup plugin. The link was provided in "Java Debugging: Source not found".

    Go to Help > Install New Software .. and use

    http://ifedorenko.github.com/m2e-extras/

    to search for the links. After installing this plugin I was finally able to debug the source code of dependencies.

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