[RDT-Dev] [PATCH] Open debug perspective on suspend

2006-10-31 Thread Shugo Maeda
Hi,

It seems that RDT doesn't open debug perspective on suspend such
as breakpoints (JDT does).
I read LaunchSuspendTrigger#handleDebugEvents() and created a patch
for this problem.
Please check it.

Thanks,
Shugo
Index: RubyThread.java
===
--- RubyThread.java (revision 116)
+++ RubyThread.java (revision 117)
@@ -223,5 +224,12 @@
public void setId(int id) {
this.id = id;
}
+   
+   public Object getAdapter(Class adapterType) {
+   if (adapterType.equals(ILaunch.class)) {
+   return getLaunch();
+   }
+   return super.getAdapter(adapterType);
+   }
 
 }
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Rubyeclipse-development mailing list
Rubyeclipse-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rubyeclipse-development


Re: [RDT-Dev] [PATCH] Open debug perspective on suspend

2006-10-31 Thread Markus Barchfeld

 It seems that RDT doesn't open debug perspective on suspend such
 as breakpoints (JDT does).
 I read LaunchSuspendTrigger#handleDebugEvents() and created a patch
 for this problem.
 Please check it.
   
Small, but effective. Excellent. Thanks, it is committed.

The debugger will need some serious refactoring. Currently I work on the
integration of ruby-debug which will probably make the debugger 2,5
times faster (e.g. wait 10 instead of 25 secs until reaching a
breakpoint). Unfortunately ruby-debug needs some refactoring (if it is
feasible at all) to support threads in the same way as the current debugger.

There is some basic support already checked in which supports a very
basic scenario. It still needs patching of ruby-debug, hopefully we will
get a compatible ruby-debug release in the future. So, if you want to
get further involved, have a look.

Markus

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Rubyeclipse-development mailing list
Rubyeclipse-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rubyeclipse-development