Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Source not found at debugging in eclipse juno!

 
Mandar Khire
Ranch Hand
Posts: 568
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I write swing program for study how it works in background...
How panel initialize & how assign values etc, all debugging related issues...

When i debug it i got following error at first step only..

In debug i can see

abcd at localhost:4950 is highlighted.
In buildpath i added JRE System Library [JavaSE-1.7]
Where i make mistake?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That "error" means that you cannot step into a method that is implemented using native code. I suspect that you hit the "step into" button when you should have hit "step over".
 
Mandar Khire
Ranch Hand
Posts: 568
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peter Johnson,
I suspect that you hit the "step into" button when you should have hit "step over".

I just put break point at


For more simpler i tried following code:-

When i put break point at 1st line of above code i got error message...
Reason behind why i put break point at 1st line of code...
Just want to see how class is initialize & what happen in vm at time of that line executing?
I think
This question is not bound with eclipse version...when i tried above small code in helios,indigo,juno...same happened...
I want to see from jdk which class file's which line used at particular point...
 
Divya Janyavula
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure if we can see the VM behavior while debugging. If you want to understand when instances are created etc. then you can use constructors, static blocks, instance blocks.

 
Mandar Khire
Ranch Hand
Posts: 568
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Divya Janyavula,
Sorry for late reply...
I tried netbeans7.2
& i got solution what i try to find out in eclipse juno. Might i dont know how to configure it.
I tried as below:-
I use following code:-

When each line i put breakpoint & try to debug in eclipse juno i got 1st result:-

When same tried in netbeans7.2 (without special settings...as following default installation instructions & created java project), i got 1st result:-

Its look like netbeans win(just for understand) in this scenario...so question is its really win or eclipse also has same facility & i don't know about it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic