This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

debugging

 
William Quantrill
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not familiar with netbeans, but most IDE's have a "step-over" option.
 
William Quantrill
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic