teoREtik
teoREtik

Reputation: 7916

Is it possible to debug java source files in eclipse

Eclipse provides an opportunity to view java source code by using Source attachement in project's Java Build properties, but is it possible also to debug java source code?

I try to install breakpoint inside some java .class file and get :

Unable to install breakpoints in java source file due to missing line number attributes

Upvotes: 1

Views: 759

Answers (2)

PVR
PVR

Reputation: 2524

You may have the compiler set to include debugging information in YOUR class files, but the class files in rt.jar weren't compiled that way. You need to either recompile all the source for the classes in rt.jar (not for the faint of heart), or download a debug build of the jdk.

Upvotes: 4

Alex Calugarescu
Alex Calugarescu

Reputation: 848

Try to install a Java decompiler like Jad...

Upvotes: -1

Related Questions