Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDK and Lion

 
Dan Rh Jones
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having spent the whole night trying to do this, Apple has officially made me feel dumb

I am trying to debug some code for the Cattle Drive in Eclipse.

I am running Lion and I have installed the JDK 1.6 from the Apple developer site.

I have added the src.jar to the classpath variable

However, when I step through the code when I get to something like System.out.print(...); it takes me off to the PrintStream.class file and I have to step through all this as well.

At work I have eclipse installed and when I step through I don't see the PrintStream.class file open. it only steps through code I have written.

Is this something I am doing wrong, some set up config on my Mac that is wonky?

The code compiles and runs fine via eclipse, I just want to use it to debug, I use textwrangler to write the code (starting out so don't want the IDE helping me!)

Any help is greatly appreciated.
 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The out in System.out is the PrintStream !!!
Use step over(F6) instead of step into(F5) for debugging.
 
Dan Rh Jones
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I understand that.

However, if I have my PC and my mac side by side and do exactly the same thing, Eclipse resonpds differently

So if I step through on the PC and the MAC (F5) when I get to the System.out.print(...) line on the PC it just prints to the console but on the mac it will step through the printStream code.

Why on the mac does it do that and not on the PC or vice versa?

I am not stepping over on the the PC
 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting.
Eclipse->Preferences->Java-Debug->Step Filtering. Is there any difference if you compare Mac and M$ version?
 
Dan Rh Jones
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only just been able to take a look and it was that

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic