Bug 21305 - Debug element rendering can be more robust
Summary: Debug element rendering can be more robust
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: Other All
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Darin Swanson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-08 10:27 EDT by Jared Burns CLA
Modified: 2002-07-23 15:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Burns CLA 2002-07-08 10:27:40 EDT
This problem was exposed by Bug 12966, which deals with debugging Sun's 
J2ME WTK. The debug proxy for this toolkit is a bit flaky, which in turn 
exposed this weakness in our code.

JDIModelPresentation.getText catches DebugException and returns "<not 
responding>". The methods that it delegates to just throw DebugException. 
The end result is that if we get an exception when asking about any single 
piece of data for a stack frame, we don't give the user any information. We 
can do better.

I've fixed JDIModelPresentation.getStackFrameText() and getVariableText() 
to wrapper each query (declaring type, receiving type, method name, line 
number, etc.) in a try/catch. This way, we can just say "<unknown x>" if an 
exception occurs retrieving any information x.

This is a big win. Instead of seeing "<not responding>" on the stack frame,
I now get 
"com.sun.kvem.midp.lcdui.EmulEventHandler$EventLoop(java.lang.Object).getClass()<unknown
line number>"
Comment 1 Jared Burns CLA 2002-07-08 10:55:53 EDT
Fixed. Please verify.
Comment 2 Darin Swanson CLA 2002-07-15 14:12:37 EDT
Verified code.
Comment 3 Darin Wright CLA 2002-07-23 15:15:35 EDT
Fixe released to 2.0.1 branch and HEAD (2.1)