如何像Netbeans一样在Eclipse PDT中远程保存?

时间:2012-10-05 08:38:47

标签: eclipse netbeans eclipse-pdt remote-server

Eclipse远程保存存在问题。

我已经使用Netbeans 2年了,我的项目存储在本地和远程测试服务器中。

当我在Netbeans中打开,更改和保存文件时,它还会将文件保存(覆盖)到远程位置。

此处描述了Netbeans的配置:Netbeans Remote Sync

另一件事是来自SVN的checkouted代码在我的本地,我只从本地提交,从不从远程提交,我的意思是我只使用远程服务器进行测试。

由于其他原因,我决定切换Eclipse,但我无法成功准备类似的开发环境。

我试过远程资源管理器,它很复杂,我无法找到解决问题的方法。使用Ant有一些建议,我认为,这可能很容易。对我来说更多。

我愿意接受任何建议,准备一个我在Netbeans案例中描述的类似开发环境。

...问候

1 个答案:

答案 0 :(得分:8)

NetBeans页面的链接仅显示localhost连接的设置 远程连接需要远程计算机上的ftp服务器。

首先,我将展示localhost连接的Eclipse设置。

文件 - 新建 - PHP项目。

项目名称: SwitchLoc

点击

enter image description here

文件夹 - 下一步

enter image description here

设置如图所示。点击浏览

enter image description here

创建新连接。

设置如图所示。点击下一步

enter image description here

仅查看正在发生的情况:点击下一步或完成

enter image description here

返回连接选择刚刚创建的

enter image description here

在www root下选择一个文件夹。

enter image description here

创建一个新的php文件
右键单击切换 new - PHP文件 - echo.php

enter image description here

Richt点击echo.php - 属性 - 运行/调试设置 - - PHP网页

设置如图所示。点击浏览

enter image description here

取消选中自动生成并更改网址

enter image description here

切换到标签常用
设置如图所示。点击确定

enter image description here

开始调试
选择switch-local

enter image description here

<强>输出

enter image description here

下一步:使用FTP和远程调试创建与Remote Server的远程连接。

续集中的内容。

相关问题