CodeLobster IDE

How to enable debugging of very simple php page
Page 1 of 1

Author:  raca [ Tue Jun 16, 2009 10:00 am ]
Post subject:  How to enable debugging of very simple php page

First question:
How to enable debugging of very simple php page?

I read all topics regarding starting a debugging a page.

I have mapped to in my hosts file.
I have Windows Vista OS. I am new to php development. I come from asp, 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
$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.


I checked my php.ini for the presence of debugger extensions.


My preferences for debugger settings sections are:

Virtual folder: E:\WebSites\PHP\X-Cart Pro v4.1.9\
Virtual host URL:
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"

<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all

<Directory "C:/php">
AllowOverride None
Options None
Order allow,deny
Allow from all

Listen 2081
Listen 2091


<VirtualHost *:2081>
DocumentRoot "D:/WebSites/PHP/xcart"

<VirtualHost *:2091>
DocumentRoot "D:/WebSites/PHP/X-Cart Pro v4.1.9"

Author:  Admin [ Tue Jun 16, 2009 3:27 pm ]
Post subject: 


1) You should set

virtual folder D:/WebSites/PHP/X-Cart Pro v4.1.9
for host


virtual folder D:/WebSites/PHP/xcart

Path to php.ini file you may see by the following command:

We suggest you to create several projects with this different preferences.

Also, how have you installed PHP?

2) Please, send us the sample of x-cart php application.
We will check our debugger with it.

Codelobster Team.

Author:  raca [ Tue Jun 16, 2009 11:50 pm ]
Post subject: 

1. Actually I made a mistake when I entered E:\ instead of D:\ in my post.
I believe my settings are correct.

I installed PHP by running php-5.2.9-2-nts-win32-installer.msi installer package. Basically I can run PHP applications with either IIS7 on Vista and Apache 2.2 (I run websites on different ports)

I followed this instructions to run PHP on Apache: ... dows.shtml
I used option b: b.Running PHP 5 as a CGI Binary

I will send my phpinfo settings in a separate email.


Author:  Admin [ Wed Jun 17, 2009 5:33 pm ]
Post subject: 


You use Non-thread-safe PHP version.
But now we support only Thread-safe.
We should do a research for supporting it.

Codelobster Team.

Author:  raca [ Sat Jun 20, 2009 1:53 am ]
Post subject: 

Should I then use:
PHP 5.2.10 installer (php-5.2.10-win32-installer.msi) or instead of
PHP 5.2.10 Non-thread-safe installer (php-5.2.9-2-nts-win32-installer.msi)
(which I think I used when installing PHP). Should I still used method

Should I run PHP as Apache Module (option a) or as a CGI Binary (option b in above link)?

Can I have both version of PHP running on Apache (thread safe and non-thread safe versions)?

Do you have some instrustions on properly installing PHP and Apache to enable PHP debugging with Codelobster IDE.


Author:  Admin [ Mon Jun 22, 2009 1:19 pm ]
Post subject: 


1) Yes, you should use
PHP 5.2.10 installer (php-5.2.10-win32-installer.msi) or

2) It doesn't matter what option you select: Apache Module or as a CGI Binary.

3) Sure, you may install both versions, but you need to write PHP for using in your Apache server, and it means that it can use only one version.

4) Unfortunately, now we have no good documentation.
You may search our forum or send your questions to support directly by email.

Codelobster Team.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group