aspose file tools*
The moose likes Mac OS and the fly likes JDK and Lion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "JDK and Lion" Watch "JDK and Lion" New topic
Author

JDK and Lion

Dan Rh Jones
Greenhorn

Joined: Aug 16, 2011
Posts: 19
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

Joined: Jul 26, 2007
Posts: 10519
    
    9

The out in System.out is the PrintStream !!!
Use step over(F6) instead of step into(F5) for debugging.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Dan Rh Jones
Greenhorn

Joined: Aug 16, 2011
Posts: 19
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

Joined: Jul 26, 2007
Posts: 10519
    
    9

Interesting.
Eclipse->Preferences->Java-Debug->Step Filtering. Is there any difference if you compare Mac and M$ version?
Dan Rh Jones
Greenhorn

Joined: Aug 16, 2011
Posts: 19
Only just been able to take a look and it was that

Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDK and Lion