Curious
Curious

Reputation: 921

problems in debugging java source code 1.8 in eclipse

Problem 1: My eclipse suddenly stopped stepping into the java source code which used to be doing earlier i attaching source src.zip from jdk etc.. but still not stepping. How shall i fix this problem.

Problem 2: I tried to compile the src.zip from jdk so as to enable the inspecting the java source code 1.8 by following some old posts but compiling with following options is giving some 100 errors. How shall i fix this ?

javac -verbose -J-Xmx1024m -cp "e:\programs1\jre\lib\rt.jar" -d "e:\java_src\output" -g @files.txt

[total 76959ms] Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output

100 errors 100 warnings

Upvotes: 0

Views: 545

Answers (1)

user85421
user85421

Reputation: 29670

Problem 1: check that step filtering is set up as needed or disabled at all in Eclipse. I think that by default the debugger is configured to step over methods of standard packages ("java", "javax", ...).

Window > Preferences > Java . Debug > Step filtering

The debugger will not enter in the classes of packages selected in above preferences.

Problem 2: I never had the need to compile the source code... not so trivial since not all classes are included in src.zip (as I know). The errors you listed are more like warnings, but maybe you need to include the -Xdiags:verbose (as suggested) to get the real errors.

Upvotes: 0

Related Questions