Avoid terminating process at inappropriate state. It breaks console output. (with...
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.core / src / net / sourceforge / phpdt / internal / debug / core / PHPDBGProxy.java
index 77d751e..96919b2 100644 (file)
@@ -86,13 +86,13 @@ public class PHPDBGProxy {
                DBGInt.setShouldStop ();                                //  Notify the DBG interface to stop the waiting for response
                }
 
-               if (!remote) {                                              // If it's not a remote proxy session
-               try {
-                       getDebugTarget ().getProcess ().terminate ();       //
-               } catch (DebugException e) {
-                       e.printStackTrace ();
-               }
-               }
+//             if (!remote) {                                              // If it's not a remote proxy session
+//             try {
+//                     getDebugTarget ().getProcess ().terminate ();       //
+//             } catch (DebugException e) {
+//                     e.printStackTrace ();
+//             }
+//             }
 
                phpLoop.notifyWait ();
        }
@@ -176,6 +176,15 @@ public class PHPDBGProxy {
        }
 
        /**
+        * Get the DBG interface which is linked to this proxy
+        *
+        * @paran DBGInt The DGB interface which is linked with this proxy
+        */
+       public PHPDBGInterface getDBGInterface () {
+               return DBGInt;
+       }
+       
+       /**
         * Give back a buffered input stream for the socket which is
         * linked with this proxy
         */
@@ -417,7 +426,8 @@ public class PHPDBGProxy {
        }
 
        /**
-        *
+        * Is called by the DebuggerRunner
+        * 
         * @param debugTarget
         */
        public void setDebugTarget (PHPDebugTarget debugTarget) {