NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

netbeans 6.7 debugger enters java standard code

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
alsNetBeans



Joined: 29 Sep 2009
Posts: 2
Location: New Jersey

PostPosted: Tue Sep 29, 2009 7:08 pm    Post subject: netbeans 6.7 debugger enters java standard code Reply with quote

I've just upgraded from 6.5 to 6.7. Now, while debugging standard java program that updates data from one database into another, I found that while stepping thru programs, if I create a new object, say a Calendar object, I will step into Calendar.java (r/o). I did have this happen in 6.5, and I don't know how to prevent this entry.

Where is the switch to prevent this from happening?

Al
Back to top
Mari
Posted via mailing list.





PostPosted: Tue Sep 29, 2009 8:20 pm    Post subject: netbeans 6.7 debugger enters java standard code Reply with quote

1) Open the (Debugging) Sources window
(main menu: Window > Debugging > Sources, Alt+Shift+Cool.
2) In the window, select tab "Remote Attach".
It displays a list of sources available to the debugger.
3) Scroll down to the end of the list a uncheck the check-box
on the line representing the JDK sources (archive).

Mari
Back to top
Mike Riley
Posted via mailing list.





PostPosted: Tue Sep 29, 2009 10:39 pm    Post subject: netbeans 6.7 debugger enters java standard code Reply with quote

alsNetBeans wrote:
Quote:
I've just upgraded from 6.5 to 6.7. Now, while debugging standard java program that updates data from one database into another, I found that while stepping thru programs, if I create a new object, say a Calendar object, I will step into Calendar.java (r/o). I did have this happen in 6.5, and I don't know how to prevent this entry.



Where is the switch to prevent this from happening?

It sounds like you are using <F7> (Step Into) instead of <F8> (Step Over).

Mike
Back to top
Vojtech Sigler
Posted via mailing list.





PostPosted: Wed Sep 30, 2009 9:31 am    Post subject: netbeans 6.7 debugger enters java standard code Reply with quote

The reason could also be that you have jdk sources enabled. In 6.5, jdk
sources were disabled by default whereas in 6.7 they are enabled by
default. Go to Window -> Debugging -> Sources and uncheck the line
containing jdk sources (usually someting containing a directory named
after your jdk version and ending with src.zip - e.g.
/home/user/jdk1.6.0_16/src.zip).

Vojta

Mike Riley wrote:
Quote:
alsNetBeans wrote:
Quote:
I've just upgraded from 6.5 to 6.7. Now, while debugging standard
java program that updates data from one database into another, I
found that while stepping thru programs, if I create a new object,
say a Calendar object, I will step into Calendar.java (r/o). I did
have this happen in 6.5, and I don't know how to prevent this entry.



Where is the switch to prevent this from happening?

It sounds like you are using <F7> (Step Into) instead of <F8> (Step
Over).

Mike
Back to top
alsNetBeans



Joined: 29 Sep 2009
Posts: 2
Location: New Jersey

PostPosted: Wed Sep 30, 2009 1:41 pm    Post subject: Reply with quote

Thanks to all for your input. The problem was resolved by accessing the Windows>Debugging>Sources window, and clicking on my application tab. Then I unchecked the sources for jdk..... and NetBeans 6.7.1\java2\junit-4.5-src.jar. This way, when I stepped into and thru a method, I was not diverted to the java routines. It makes it much simpler than looking at the line and determining whether to step into or step over.

Again, thank you all for your help

Al
Razz
Back to top
Mike Riley
Posted via mailing list.





PostPosted: Wed Sep 30, 2009 6:44 pm    Post subject: netbeans 6.7 debugger enters java standard code Reply with quote

alsNetBeans wrote:
Quote:
Thanks to all for your input. The problem was resolved by accessing the Windows>Debugging>Sources window, and clicking on my application tab. Then I unchecked the sources for jdk..... and NetBeans 6.7.1\java2\junit-4.5-src.jar. This way, when I stepped into and thru a method, I was not diverted to the java routines. It makes it much simpler than looking at the line and determining whether to step into or step over.

Personally I use <F8> almost exclusively, and only for specific methods I
want to go into do I use <F7>.

However, I have found being able to look at the source for the JDK methods
useful from time to time, if for no other reason than to see how they work.

Mike
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo