Debugging a project with html, js and php files [message #549807] |
Wed, 28 July 2010 00:17  |
Eclipse User |
|
|
|
I have a project containing the files index.html, javascript.js, and server.php
The index.html file includes the javascript file, which uses Ajax to call server.php (using the POST method).
The goal is to debug the php code.
Is there any place where I can read what debug configurations I should be using? The following is my experience thus far:
when I right-click on the project, then do Debug As | Debug on Server, I get a dialog to select the server type, in which I make the following choices:
Server type = HTTP Server
Server's host name = localhost
Server name = http server at localhost
Server runtime environment = http server
Then, when I click finish, I get a dialog saying that the server is not in debug mode. I choose the "switch mode" option, then click OK.
However the debugger does not start, and the breakpoints in the PHP code are ignored.
Any suggestions will be appreciated. Most useful will be a pointer to detailed configuration instructions.
-sameer
|
|
|
|
|
Re: Debugging a project with html, js and php files [message #551046 is a reply to message #550113] |
Wed, 04 August 2010 21:38  |
Eclipse User |
|
|
|
Thanks for the suggestion.
My problem was that the page from which I was beginning the debugging, index.html, had been created as an html file (since it did not have any php code in it).
When I created it as a php file, index.php, then everything worked well. So it seems that even files which contain only html should actually be created as php files.
Regards.
|
|
|
Powered by
FUDForum. Page generated in 0.03208 seconds