Bug 50531 - KVM: stepping with "this" expanded
Summary: KVM: stepping with "this" expanded
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Luc Bourlier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-23 21:54 EST by Darin Wright CLA
Modified: 2004-05-12 13:40 EDT (History)
1 user (show)

See Also:


Attachments
Patch to M7 org.eclipse.jdt.debug for KVM debugging (2.19 KB, patch)
2004-03-20 17:47 EST, Craig Setera CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2004-01-23 21:54:40 EST
When I expand the "this" variable, I see the following errors on every step.
 If the tree isn't expanded, I don't see the errors.  Don't know if there is
anything that can be done or not.

Signature cmd: exception java.lang.Exception: Couldn't get ClassFile object for
signature cmd
Interfaces cmd: exception java.lang.Exception: Couldn't get ClassFile object 
for
Interfaces cmd
Signature cmd: exception java.lang.Exception: Couldn't get ClassFile object for
signature cmd
Interfaces cmd: exception java.lang.Exception: Couldn't get ClassFile object 
for
Interfaces cmd
Signature cmd: exception java.lang.Exception: Couldn't get ClassFile object for
signature cmd
Interfaces cmd: exception java.lang.Exception: Couldn't get ClassFile object 
for
Interfaces cmd
Signature cmd: exception java.lang.Exception: Couldn't get ClassFile object for
signature cmd
Signature cmd: exception java.lang.Exception: Couldn't get ClassFile object for
signature cmd
Signature cmd: exception java.lang.Exception: Couldn't get ClassFile object for
signature cmd
Signature cmd: exception java.lang.Exception: Couldn't get ClassFile object for
signature cmd
Signature cmd: exception java.lang.Exception: Couldn't get ClassFile object for
signature cmd
Signature cmd: exception java.lang.Exception: Couldn't get ClassFile object for
signature cmd
Comment 1 Darin Wright CLA 2004-01-26 17:22:47 EST
Could you provide some steps to reproduce this problem. I tired with 
the "SmallBall" demo, and could not reproduce the problem.
Comment 2 Darin Wright CLA 2004-01-26 17:30:52 EST
Ah - the error message are in the WTK console. I am not able to see any errors 
in the Eclipse console, so I'm not sure there is anything we can do about 
this. It seems to be related to an "<unknown value>" we are getting for 
the "canvas". When I debug it - I see that the canvas has been garbage 
collected, which does not make much sense to me.
Comment 3 Craig Setera CLA 2004-02-01 14:57:47 EST
Darin, 

When this is run via my EclipseME plugin, the WTK console and Eclipse console
are one in the same thing.  So, maybe it looks worse to me.  On the other hand,
it is just an annoyance.

Comment 4 Craig Setera CLA 2004-03-12 20:42:37 EST
This appears to be causing more than just annoyance for some users.  See
http://sourceforge.net/tracker/index.php?func=detail&aid=904266&group_id=86829&atid=581073
for a few examples.

I took a look at the referenced bugs and related bugs on Sun's Bugzilla.  It
really appears to me that they are expecting for ClassPrepare events to occur
before things will work.  

http://developer.java.sun.com/developer/bugParade/bugs/4459954.html
http://developer.java.sun.com/developer/bugParade/bugs/4459390.html
http://developer.java.sun.com/developer/bugParade/bugs/4459388.html
http://developer.java.sun.com/developer/bugParade/bugs/4385248.html
http://developer.java.sun.com/developer/bugParade/bugs/4463162.html
http://developer.java.sun.com/developer/bugParade/bugs/4449649.html

Is there any chance that the class prepare event code that I suggested for
Eclipse bug 30816 could be incorporated to fix this problem?
Comment 5 Craig Setera CLA 2004-03-12 22:17:43 EST
I just tested the change to request class prepare events for KVM connection as I
documented in 30816.  It seems to completely solve this problem.
Comment 6 Darin Wright CLA 2004-03-13 13:08:50 EST
We will attempt to do something for this for 3.0. Perhaps we will have to add 
a preference such that we can allow users to turn this on for KVM.
Comment 7 Craig Setera CLA 2004-03-13 17:46:59 EST
I would guess that EclipseME (and other) users would be happy to have some way
to set this value as soon as possible.  I think eventually, it might be
necessary to provide some type of debugging "type" that can specify all of the
debugging values and then be flipped for individual projects.  That is
definitely not necessary for 3.0.
Comment 8 Justin Reynen CLA 2004-03-15 05:59:12 EST
I commented on the solution to this in bug #50531. Sun has a new WTK that 
works (I've confirmed it), but the only way to get at it is to download Sun 
ONE 5, Micro Edition, and rip it out.

Works flawlessly with the latest Eclipse I20040309. Will probably work with M7.
Comment 9 Justin Reynen CLA 2004-03-15 06:00:33 EST
Err, sorry, bug #50530
Comment 10 Craig Setera CLA 2004-03-15 08:24:46 EST
Although it sounds like the KVM is making steps in the right direction, this
will not help users attempting to debug using Eclipse for quite some time.  I
would still like to stress the importance of doing whatever we can for current
Eclipse and WTK users.  I don't really want to maintain a patched version of the
Eclipse debugging plugin, but I think this particular fix is important enough
that I would do that if necessary.
Comment 11 Craig Setera CLA 2004-03-20 17:47:14 EST
Created attachment 8729 [details]
Patch to M7 org.eclipse.jdt.debug for KVM debugging

I'm attaching a diff to the M7 code for org.eclipse.jdt.debug with the changes
I mention in bug 30816.  These changes seem to greatly improve the usability of
debugging against the KVM.  

Any chance we will see these changes in M8?
Comment 12 Darin Swanson CLA 2004-03-24 00:37:57 EST
It is unlikely this will be included in M8.
Your patch showed up just as we were locking down for the M8 build week and 
test pass.
Comment 13 Craig Setera CLA 2004-04-06 21:33:14 EDT
I have just verified that this patch still applies and functions as expected in
the M8 code from CVS.  Any chance this patch (or something similar) will be
applied for M9?
Comment 14 Darin Wright CLA 2004-04-07 08:57:44 EDT
Planning to have this fixed in M9.
Comment 15 Darin Wright CLA 2004-05-11 17:44:26 EDT
Applied patch. Looks like the simplest change we can make for KVM users. 
Changes to VirtualMachineImpl and EventRequestManagerImpl. The change will 
have no effect on non-KVM users.
Comment 16 Darin Wright CLA 2004-05-11 17:44:39 EDT
please verify, Luc.
Comment 17 Luc Bourlier CLA 2004-05-12 13:40:04 EDT
Verified.