|How to use the PHP debugger under XAMPP [message #967437]
||Thu, 01 November 2012 19:15
| Alfred Molon
Registered: November 2012
I'm using XAMPP on my PC (Vista 64 bit) as a local Apache server. The PHP version is 5.3.8.
I tried to install Eclipse (eclipse-php-3.0.2.v20120611144-Win32) in order to use it as a PHP debugger, but haven't so far figured out how to get the debugger to work.
More specifically I want to be able to move step by step through PHP scripts and to check the values of variables. I was hoping to get away from this orgy of "echo $something" statements which so far I have been placing everywhere in the code to find the bugs.
I've done a web search and tried many different things, but so far the debugger doesn't seem to work. It runs the scripts until the end without stopping before or displaying disgnostic information.
Assuming the document root is for instance in C:\Root, do I place the eclipse files into the folder C:\Root\eclipse?
Following some advice on a site I tried adding this to httpd.conf:
Alias /eclipse "C:/Root/eclipse/"
Options Indexes MultiViews
Allow from all
and restarting Apache. But it didn't help.
Another question, I have a bunch of already existing PHP scripts under C:\Root, how do I put them into an Eclipse project?
And what is this workspace directory Eclipse is asking for? Do I set it to C:/Root/eclipse/, C:/Root/ or what else?
Powered by FUDForum
. Page generated in 0.02851 seconds