How to debug .class files in ECLIPSE?

I am using Eclipse 3.5 and I have bound src.zip to my global settings in Eclipse. Windows → Settings → Java → Installed JREs → rt.jar - Source Attachment -..... / jdk / src.zip

I can successfully enter the java library .class files and view the source code. I am creating a class that uses LinkedList, and I set a breakpoint in the LinkedList class.

When I debug breakpoints in my source code (my projects), they work fine, but when I need to go to java core lib.classes, I get the following error in my Eclipse eclipse error

Unable to set breakpoint in java.util.LinkedList due to missing line number attributes. Change the mapping options to create line number attributes.

, true. enter image description here , - .

.

+5
3

, , rt.jar . rt.jar( ), jdk.

+6

, Eclipse IDE

enter image description here

  • windows > preferences > Java > compiler.
  • , ( ) .
  • , .

ant

, ant:

  • build.xml , debug true javac task
  • , JBoss , , . , , C:/jboss/bin/run.bat :
    "set JAVA_OPTS=%JAVA_OPTS% -Xdebug –Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=n" 5000 / java.
  • , .
+2

JRE JDR src, JRE .

Eclipse Java, JDK . Java src.zip .

, JDK , ..

( , . JRE , ).

+2

All Articles