Eclipse java debugging: source not found -


while debugging java app in eclipse receive "source not found" error in 2 cases:

  • stepping in file in different project imported
  • stepping in file in installed maven repository

the files there, eclipse won't step them, instead shows button "attach source"

i tried attaching (which opened dialog define variable?!) , eclipse did jump file, debugger not inspect variables there. manually attaching source each dependency isn't practical, in case there thousands of dependency files.

i'm new eclipse\java explanation of why happening + how resolve lot!

eclipse debugging works class actually loaded program.

the symptoms describe sounds class in question not found in project, in distribution jar without debug info found before project working with.

this can happen several reasons have @ location classes showing behaviour found (look in navigation pane identify it). need change build path of project avoid using jar , have jvm use project instead.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -