开发者

How to change Eclipse's "associated source" for debugging?

开发者 https://www.devze.com 2023-02-12 20:05 出处:网络
I have a jar file that supplies some classes in my development environment.When I\'m debugging in Eclipse, when I first step into a class supplied by that jar, Eclipse prompts me 开发者_开发知识库to g

I have a jar file that supplies some classes in my development environment. When I'm debugging in Eclipse, when I first step into a class supplied by that jar, Eclipse prompts me 开发者_开发知识库to give the location of the associated source files. I do so, and everything's fine.

Some time later, I replace the jar with a newer version. How can I instruct Eclipse to look in a different place for the newer source?


Right click on the Debugger panel, select Edit Source Lookup

How to change Eclipse's "associated source" for debugging?


In the Project Explorer (or Navigator), find the JAR (should be listed under "library path"), right-click, properties, there you can delete the association to a source, and/or provide a new association.

How to change Eclipse's "associated source" for debugging?

Note: you must go to the properties for an individual JAR. You cannot get the equivalent dialog if you click on "JRE System Library"


In the package explorer, where the jar is in a library (JRE, Maven dependencies, etc...); right click => properties => java source attachement.

Alternately in the project properties => Java build path => Library tab => select the jar => edit.

0

精彩评论

暂无评论...
验证码 换一张
取 消