• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDK and Lion

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Only just been able to take a look and it was that

Thanks!
reply
    Bookmark Topic Watch Topic
  • New Topic