Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to use pdt for develepmont and debugging
How to use pdt for develepmont and debugging [message #6151] Fri, 16 March 2007 13:41 Go to next message
Eclipse UserFriend
Originally posted by: taylanfb.hotmail.de

Hallo,

I am very new by the newsgroup and hope that here is right to find an
answer.

I have a php project (oscommerce) which is already developed by
someoneelse and I want to change some properties. to do this I have found
the eclipse pdt plugin. (I have already worked with jsp and servlet
development with wst plugin.)

I have eclipse 3.2.0 and installed the pdt plugin via Update manager.

now I can create PHP project and under run menu I can see "PHP script" and
"PHP web Page" options. and I can run the php pages. but I can not do any
debug.

is there any documentation about this? how can I create a new project or
how can I import an existing php project to eclipse and do debug process?

thanks a lot
Re: How to use pdt for develepmont and debugging [message #6198 is a reply to message #6151] Sat, 17 March 2007 11:38 Go to previous messageGo to next message
exceptione is currently offline exceptioneFriend
Messages: 96
Registered: July 2009
Member
hey,
If you are on Windows, have a look here:
http://www.thierryb.net/pdtwiki/index.php?title=PDT_User_Gui de


"taylan " <taylanfb@hotmail.de> schreef in bericht
news:249c939760ebe9a8f9feb9c3929b107b$1@www.eclipse.org...
> Hallo,
>
> I am very new by the newsgroup and hope that here is right to find an
> answer.
>
> I have a php project (oscommerce) which is already developed by
> someoneelse and I want to change some properties. to do this I have found
> the eclipse pdt plugin. (I have already worked with jsp and servlet
> development with wst plugin.)
>
> I have eclipse 3.2.0 and installed the pdt plugin via Update manager.
>
> now I can create PHP project and under run menu I can see "PHP script" and
> "PHP web Page" options. and I can run the php pages. but I can not do any
> debug.
>
> is there any documentation about this? how can I create a new project or
> how can I import an existing php project to eclipse and do debug process?
>
> thanks a lot
>
>
>
Re: How to use pdt for develepmont and debugging [message #10261 is a reply to message #6198] Tue, 27 March 2007 13:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: taylanfb.hotmail.de

thanks for your answer

this is a very good documentation. :)

I have installed now everything that I need and can debug the projects but
I have a problem.

I have my project in c:/apache/htdochs/myproje.

I want to use eclipse to edit and debug this project. I have done the
following but the changes that I have done in eclipse doesn't effect this
project. I should export the changes after my work to server directory (by
me it is localhost)

I have created a new PHP project in my workspace (C:/eclipse/workspace)
and then imported the files from the project.
configured the run as following :
php web page
-->new configuration
--> server : defaul php server
--> file/project : /newproject/index.php
-->url : http://localhost/myproje/index.php

I can now run the project but if I make a change in afile I can not see
the change until I export the project from workspace to the apache htdocs
folder.

what do I false?
is there any way to see the changes in eclipse?

thanks a lot
Re: How to use pdt for develepmont and debugging [message #10395 is a reply to message #10261] Tue, 27 March 2007 18:05 Go to previous messageGo to next message
exceptione is currently offline exceptioneFriend
Messages: 96
Registered: July 2009
Member
"taylan" <taylanfb@hotmail.de> schreef in bericht
news:f71378bec0f71da0a1384610f5b80544$1@www.eclipse.org...
> thanks for your answer
>
> this is a very good documentation. :)
>
> I have installed now everything that I need and can debug the projects but
> I have a problem.
>
> I have my project in c:/apache/htdochs/myproje.
>
> I want to use eclipse to edit and debug this project. I have done the
> following but the changes that I have done in eclipse doesn't effect this
> project. I should export the changes after my work to server directory (by
> me it is localhost)
>
> I have created a new PHP project in my workspace (C:/eclipse/workspace)
> and then imported the files from the project.
> configured the run as following :
> php web page
> -->new configuration
> --> server : defaul php server
> --> file/project : /newproject/index.php
> -->url : http://localhost/myproje/index.php
>
> I can now run the project but if I make a change in afile I can not see
> the change until I export the project from workspace to the apache htdocs
> folder.
>
> what do I false?
> is there any way to see the changes in eclipse?

If I understood it correctly, Eclipse requires you have the files of your
project in the webserverdirectory. I am not sure if the same applies for the
workspace. But if you need to have your files outside the webserver document
root tree, than you can use the option Publish files to server in Debug
panel. Then it will copy the needed files automatically for you once you
start debugging. I've read that somewhere, give it a try!
Re: How to use pdt for develepmont and debugging [message #10461 is a reply to message #10395] Tue, 27 March 2007 20:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: taylanfb.hotmail.de

Thanks again for your answer

I have tried it like you have said. but now I have 3 directory which
consists the same things :)
1-) original project directory in apache server.
2-) die directory in my workspace
3-) the new directory in apache server in which the files are published.

and I lose the control :(

could you please tell me how should I open an existing project (in my case
this located in the apache/htdocs) in eclipse to edit and debug purposes?

I create a new project in workspace and import the files from the
directory above but I think this is not the correct way.

many thanks

best regards
Re: How to use pdt for develepmont and debugging [message #10525 is a reply to message #10461] Wed, 28 March 2007 10:38 Go to previous message
exceptione is currently offline exceptioneFriend
Messages: 96
Registered: July 2009
Member
"taylan" <taylanfb@hotmail.de> schreef in bericht
news:5d814a6a950f2074922f4d585f9c2dd0$1@www.eclipse.org...
> Thanks again for your answer
>
> I have tried it like you have said. but now I have 3 directory which
> consists the same things :) 1-) original project directory in apache
> server.
> 2-) die directory in my workspace
> 3-) the new directory in apache server in which the files are published.
>
> and I lose the control :(
> could you please tell me how should I open an existing project (in my case
> this located in the apache/htdocs) in eclipse to edit and debug purposes?
>
> I create a new project in workspace and import the files from the
> directory above but I think this is not the correct way.

If your project and document root of apache are on the same server, I
suggest you to use one dir for all files.
Suppose your workspace is C:\eclipse-projects\
Suppose your web site files are in C:\apache\htdocs\awebsite

Then you need to create a project. Just use your workspace, create a new
project, and choose to create it at an external lcoation, namely
C:\apache\htdocs\awebsite.
Doing it this way frees you frome many headaches; you won't need the publish
to server option.

Does this work for you?
Previous Topic:Configuring File > New
Next Topic:pdt update?
Goto Forum:
  


Current Time: Fri Nov 08 21:58:29 GMT 2024

Powered by FUDForum. Page generated in 0.02843 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top