• 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

debugging

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic