1) Fixed the Cross Plattform debugging bug. The path separator was not translated.
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.core / src / net / sourceforge / phpdt / internal / debug / core / PHPDBGProxy.java
index db66060..595d64d 100644 (file)
@@ -15,6 +15,7 @@ import java.net.ServerSocket;
 import java.net.Socket;
 import java.net.SocketTimeoutException;
 import java.util.Map;
+import java.util.Vector;
 
 import net.sourceforge.phpdt.internal.debug.core.breakpoints.PHPLineBreakpoint;
 import net.sourceforge.phpdt.internal.debug.core.model.PHPDebugTarget;
@@ -232,10 +233,10 @@ public class PHPDBGProxy {
 
                if (pathtranslation && remote) {
                        if (remoteSourcePath.toString ().substring (0, 1).equals ("/")) {
-                               path = path.replace ('\\', '/');
+                               path = path.replace ('/', '\\');
                        }
                        else {
-                               path = path.replace ('/', '\\');
+                               path = path.replace ('\\', '/');
                        }
                }
 
@@ -367,9 +368,9 @@ public class PHPDBGProxy {
         * It reads the variables from PHP via DBG
         *
         * @param frame The stackframe which wants the variables.
-        * @return      The array of variables for this stackframe.
+        * @return      The list of variables for this stackframe.
         */
-       public PHPVariable[] readVariables (PHPStackFrame frame) {
+       public Vector readVariables (PHPStackFrame frame) {
                try {
                return DBGInt.getVariables (frame);                                             // Get the variables from DBG interface
                } catch (IOException ioex) {