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.9.1 debugger on wrong file/line?

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



Joined: 14 Sep 2011
Posts: 1

PostPosted: Wed Sep 14, 2011 4:35 pm    Post subject: NetBeans 6.9.1 debugger on wrong file/line? Reply with quote

I am running the netbeans debugger and have set a breakpoint in file A on line X.

However, when I run the app in debug mode, the file brought up at the breakpoint is file B on line X. If I change the line # that is selected on file A, file B will mirror that line when in debug mode. This is making it basically impossible to debug.


Product Version: NetBeans IDE 6.9.1 (Build 201007282301)
Java: 1.6.0_25; Java HotSpot(TM) 64-Bit Server VM 20.0-b11
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Userdir: C:\Users\user\.netbeans\6.9
Back to top
Clutch234



Joined: 30 Jul 2013
Posts: 1

PostPosted: Tue Jul 30, 2013 9:33 pm    Post subject: Hacked solution Reply with quote

I ran into the same problem and was able to figure out that it is a project specific problem. You have to reset where netbeans looks for the source code. I was able to do it this way, there may be better ways, I opened the Loaded Classes tab (Window -> Debugging -> Loaded Classes). Then as I stepped through the files when I got to the file that was jumping wrong I found it in the Loaded Classes tab right clicked and said go to source where it gave me the compiled code view. I then clicked on attach source and pointed netbeans to the source I wanted it to use. Hope this helps.
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 cannot 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