简体   繁体   English

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

[英]How to remote save in Eclipse PDT like Netbeans?

I have a problem with Eclipse remote save. 我对Eclipse远程保存有问题。

I have been using Netbeans for 2 years, my projects are stored in local and also in remote test servers. 我使用Netbeans已有2年了,我的项目存储在本地以及远程测试服务器中。

When I opened, change and saved files in Netbeans, it also saves (overwrites) the files to remote location. 当我在Netbeans中打开,更改和保存文件时,它还会将文件保存(覆盖)到远程位置。

Configuration of Netbeans is described here : Netbeans Remote Sync 在此介绍Netbeans的配置: Netbeans远程同步

Another thing is checkouted code from SVN is in my local, and I only commit from local, never from remote, I mean I use remote server only for testing purposes. 另一件事是SVN的签出代码在我的本地,并且我只从本地提交,而不是从远程提交,我的意思是我仅将远程服务器用于测试目的。

I decided to switch Eclipse because of other reasons, but I cannot succeed to prepare a similar development environment. 由于其他原因,我决定切换Eclipse,但是我无法成功准备类似的开发环境。

I tried remote explorer,it's complicated and I cannot find a solution to my problem. 我尝试了远程浏览器,它很复杂,我找不到解决问题的方法。 There are some suggessions by using Ant, I think, this can be easy thing.Ant is much more for me. 我认为使用Ant有一些建议,这很容易,而Ant对我来说更重要。

I am open to any suggessions, to prepare a similar development environment I described above in Netbeans case. 我愿意接受任何建议,以准备我在Netbeans案例中上述的类似开发环境。

Regards... 问候...

The link to the NetBeans page only shows the settings for localhost connection. NetBeans页面的链接仅显示localhost连接的设置。
The remote connection requires an ftp server on the remote machine. 远程连接需要远程计算机上的ftp服务器。

First I will show the Eclipse settings for localhost connection. 首先,我将显示localhost连接的Eclipse设置。

File -- New -- PHP Project. 文件-新建-PHP项目。

Project Name : SwitchLoc 项目名称: SwitchLoc

Click 请点击

在此处输入图片说明

Folder -- Next 文件夹-下一个

在此处输入图片说明

Settings as shown on image. 设置如图所示。 Click Browse 点击浏览

在此处输入图片说明

Create a new connection. 创建一个新的连接。

Settings as shown on image. 设置如图所示。 Click Next 点击下一步

在此处输入图片说明

Only to see what's going on : Click Next or Finish 只看发生了什么:单击下一步或完成

在此处输入图片说明

Back to Connection select the one just created . 返回“连接”,选择刚刚创建一个

在此处输入图片说明

Select a folder under your www root. 在www根目录下选择一个文件夹。

在此处输入图片说明

Create a new php file 创建一个新的PHP文件
Right click on Switch new -- PHP File -- echo.php 右键单击Switch new-PHP File-echo.php

在此处输入图片说明

Richt click on echo.php -- Properties -- Run/Debug Settings -- New -- PHP Web Page Richt单击echo.php-属性-运行/调试设置- 新建 -PHP Web页面

Settings as shown on image. 设置如图所示。 Click Browse 点击浏览

在此处输入图片说明

Uncheck Auto Generate and change the URL 取消选中自动生成并更改URL

在此处输入图片说明

Switch to Tab Common 切换到通用标签
Settings as shown on image. 设置如图所示。 Click OK 点击确定

在此处输入图片说明

Start Debug 开始调试
select switch-local 选择switch-local

在此处输入图片说明

Output 输出量

在此处输入图片说明

Next: Create a remote connection to a Remote Server with FTP and remote debug. 下一步:使用FTP和远程调试创建到Remote Server的远程连接。

Follows in the sequel. 跟随续集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM