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?
Millions saw the apple fall, but Newton asked why.
If you understand, say "understand". If you don't understand, say "don't understand". But if you understand and say "don't understand". How do I understand that you understand? Understand!
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?
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...
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.
Joined: Sep 11, 2007
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?