When debugging the Java source code is not visible.
This problem mostly occurs in case of external libraries that do not belong to the Java standard. The solution is to add the source files manually. But for that you have to have access to that files.
There are basically two possibilities to attach source files (e. g. you have to download the .zip file from Github etc.):
- In the
Package Explorer
go to theMaven Dependencies
and search for the JAR-File you want to attach the source files to, then rightclick it and selectProperties
. In the menu chooseJava Source Attachment
. Click onExternal location
and select the corresponding.zip
file or.jar
file. - When you try to debug code that has no source file attached you will get an information page stating that the source file is missing. On that page there is a button to attach them. A click on that button will again open the
Properties
window. Proceed as explained above!
Eclipse freezes (e.g. after including the approuter source files [Node modules])
In order to prevent that behaviour you have to exclude the corresponding Node modules
from the validation. In other words you have to specify a resource filter.
See exercise 22 for further details.
Auto-Completion of static imports (e.g. Hamcrest
matchers) does not work.
You have to add a new Type Favorite
in Eclipse.
See exercise 4 for further details.
-
© 2018 SAP SE