First question:
How to enable debugging of very simple php page?
I read all topics regarding starting a debugging a page.
I have
www.mybusiness.com mapped to 127.0.0.1 in my hosts file.
I have Windows Vista OS. I am new to php development. I come from asp, asp.net and IIS world.
I managed to install Apache 2.2 and to create 2 websites that run on different port on my machine with 1 static IP address
that I pay for through my ISP.
I am trying to debug a very simple php script helloworld.php that runs OK as
http://www.mybusiness.com:2091/helloworld.php
$hello = "Hello world, I love evil kittens!";
echo ($hello);
There is no way I can Step Into (the button is disabled) or when I try to debug a page using either F5 or F8, IE 8 opens the page with no
debugger attached.
Please help. I am using Codelobster 3.1.3 trial.
My second question is:
Can I use Smarty feature to work with x-cart php application? Will it be useful for designing pages including *.tpl files.
Thanks,
Rad
I checked my php.ini for the presence of debugger extensions.
[CLDbg]
extension=php_cl_dbg_5_2.dll
clport=6000
My preferences for debugger settings sections are:
Virtual folder: E:\WebSites\PHP\X-Cart Pro v4.1.9\
Virtual host URL:
http://www.mybusiness.com:2091/
Path to php ini: C:\php\
Web Server: Apache2.2
Php version: 5.2.9
Port: 6000
This is partial listing of my Httpd.conf file:
DocumentRoot "D:/WebSites/PHP"
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"
</IfModule>
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<Directory "C:/php">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Listen 2081
Listen 2091
NameVirtualHost
www.mybusiness.com:2081
NameVirtualHost
www.mybusiness.com:2091
<VirtualHost *:2081>
ServerName
www.mybusiness.com:2081
DocumentRoot "D:/WebSites/PHP/xcart"
</VirtualHost>
<VirtualHost *:2091>
ServerName
www.mybusiness.com:2091
DocumentRoot "D:/WebSites/PHP/X-Cart Pro v4.1.9"
</VirtualHost>