File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "debugging" Watch "debugging" New topic
Author

debugging

William Quantrill
Ranch Hand

Joined: Dec 23, 2002
Posts: 36
i know this kind of belongs in the IDE forum, but im having a dickens of a time getting over this issue with netbeans.
how do i keep netbeans from stepping into the API sources for such classes as ClassLoader, PrintStream etc...
My breakpoints are getting hit ok, but then i "step into", i wan to step into the source for the class method that im calling, not the API stuff


"The Rebel army is now the legitimate property of the Army of the Potomac." - Joseph Hooker spoke these pompous words shortly before he was soundly defeated by Robert E. Lee at Chancellorsville
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
I am not familiar with netbeans, but most IDE's have a "step-over" option.


"JavaRanch, where the deer and the Certified play" - David O'Meara
William Quantrill
Ranch Hand

Joined: Dec 23, 2002
Posts: 36
yes nb has "step over", and that works great in netbeans too. i think however, this is a "general" debugging issue, which is why i posted the question here instead of the ide forum.
lets say you have a hypothetical line of code like so:
System.out.println("some string " + some_statement);
where some_statement is a method call on an object. the object is an instance of a class you have written and want to debug.
now most debuggers will allow you to set a breakpoint on that line of code. what im wondering is under what cicumstances will an ide (any ide for that matter) step into the code for the println method vs going right to the code for your class method.
see what im getting at ?
on one hand it seems correct, because the debugger is just doing what it has been told, but id like to seperate somehow the code i wrote and API code when im debugging.
[ January 03, 2003: Message edited by: William Quantrill ]
Michael Bronshteyn
Ranch Hand

Joined: Mar 26, 2002
Posts: 85
each debugger has an option of "not stepping into" packages specified. by default those are packages like java.lant.* java.util.* etc. i think you can customize this.


Michael
SCJP2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: debugging