Eclipse java debugging: source not found

后端 未结 30 1998
Happy的楠姐
Happy的楠姐 2020-11-22 15:43

While debugging a java app in eclipse I receive a \"Source not found\" error in two cases:

  • Stepping in to a file in a different project which
30条回答
  •  醉酒成梦
    2020-11-22 16:20

    You might have source code of a dependency accessible to Eclipse. But Eclipse does not know for source code for code that is dynamically loaded. E.g. through Maven.

    In case of Maven, I recommend that you use run-jetty-run plugin:

    http://code.google.com/p/run-jetty-run/

    As a workaround you can also connect to a running JVM with the debugger and you will see the code. Alternatively you can use Dynamic Source Lookup plugin for Eclipse from here:

    https://github.com/ifedorenko/com.ifedorenko.m2e.sourcelookup

    Unfortunately it didn't helped me as it has issues with Windows paths with spaces.

    I have filled an enhancement request on Eclipse Bugzilla and if you agree this issue "Source not found" should vanish forever, please vote for it here:

    https://bugs.eclipse.org/bugs/show_bug.cgi?id=384065

    Thanks!

    Sasa

提交回复
热议问题