How to remote save in Eclipse PDT like Netbeans?

匿名 (未验证) 提交于 2019-12-03 09:19:38

问题:

I have a problem with Eclipse remote save.

I have been using Netbeans for 2 years, my projects are stored in local and also in remote test servers.

When I opened, change and saved files in Netbeans, it also saves (overwrites) the files to remote location.

Configuration of Netbeans is described here : Netbeans Remote Sync

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.

I decided to switch Eclipse because of other reasons, but I cannot succeed to prepare a similar development environment.

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.

I am open to any suggessions, to prepare a similar development environment I described above in Netbeans case.

Regards...

回答1:

The link to the NetBeans page only shows the settings for localhost connection.
The remote connection requires an ftp server on the remote machine.

First I will show the Eclipse settings for localhost connection.

File -- New -- PHP Project.

Project Name : 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.

Create a new php file
Right click on Switch new -- PHP File -- echo.php

Richt click on echo.php -- Properties -- Run/Debug Settings -- New -- PHP Web Page

Settings as shown on image. Click Browse

Uncheck Auto Generate and change the URL

Switch to Tab Common
Settings as shown on image. Click OK

Start Debug
select switch-local

Output

Next: Create a remote connection to a Remote Server with FTP and remote debug.

Follows in the sequel.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!