[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
|
Re: [jdt-debug-dev] StackFrames and Variables
|
From the description provided, it sounds like you are doing the right
thing to avoid suspending the thread.
We have tests that demonstrate this behavior (see
org.eclipse.jdt.debug.tests plugin - JavaBreakpointListenerTests). To be
sure, I added a test for method breakpoints, and it all seems to be
working. Perhaps you could provide us with a test case or small example
that demonstrates the problem you are having (i.e. code that we can use to
replicate the problem)?
Darin
Joe Tague <jtague@xxxxxxxxxxxxxxxx>
Sent by: jdt-debug-dev-admin@xxxxxxxxxxx
02/23/2005 08:04 AM
Please respond to
jdt-debug-dev
To
jdt-debug-dev@xxxxxxxxxxx
cc
Subject
[jdt-debug-dev] StackFrames and Variables
In the course of trying to record some information when debugging I have
an implementation of IJavaBreakpointListener. When my
JavaMethodBreakpoints are hit I simply printout some information to the
console. My breakpoints have been set up to not suspend execution of the
debugee.
I have the following code to print out some information:
System.out.println
("<METHOD=\""+breakpoint.getMarker().getAttribute("METHOD").toString()+"\"
");
System.out.print
("SIGNATURE=\""+breakpoint.getMarker().getAttribute("SIG").toString()+"\"
");
System.out.print
("LINE=\""+breakpoint.getMarker().getAttribute(IMarker.LINE_NUMBER).toString()+"\"/>");
IJavaStackFrame[] frames = (IJavaStackFrame[]) thread.getStackFrames();
for(int i=0;i<frames.length;i++){
List variables = frames[i].getArgumentTypeNames();
Iterator iter = variables.iterator();
while(iter.hasNext()){
System.out.println
("<VARIABLE =\""+iter.next().toString()+"\"/>");
}
}
This is contained in my breakpointHit(..) method that always returns a
result of IJavaBreakpointListener.DONT_SUSPEND. However this code seems
to suspend the execution of the debugee. I launch the debugee by using
the Debug As.. button in the Run-time Workbench, before this would
execute the debugee without suspending the execution when the
breakpoints were hit.
How can I get the information from StackFrames, Variables and their
Values without suspending the execution of the debugee?
TIA for any help anyone can provide
Joe
(Note: I know the information for method/signature can be returned from
the breakpoint itself, however I have annotated other information to the
marker that I use it's just not shown here)
_______________________________________________
jdt-debug-dev mailing list
jdt-debug-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-debug-dev