| View previous topic :: View next topic |
| Author |
Message |
CMCDragonkai
Joined: 13 Jan 2009 Posts: 9
|
Posted: Tue Jan 13, 2009 12:41 pm Post subject: Wamp Server Xdebug |
|
|
Hello, I use wamp server http://www.wampserver.com/en/
I followed the tutorial, even though it didn't quite apply to wampserver. But in phpinfo() it's listed there, and also next to the Zend Logo but when I try debugging it, and then stopping the debugging session. Netbeans gives me a notice that:
"There is no connection from xdebug detected within 'X' seconds. The reason could be that xdebug is neither installed nor properly configured...... etc"
The php version is 5.2.8 and I'm using 5.2VC6 The dll file is placed in C:/wamp/bin/php/php5.2.8/ext/
In the php.ini I added:
| Code: | zend_extension_ts="C:/wamp/bin/php/php5.2.8/ext/php_xdebug-2.0.4-5.2.8.dll"
xdebug.remote_enable=on
xdebug.remote_handle=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000 |
to the Dynamic Extensions part. I've also checked the php error log, there's nothing and I've noticed whenever I do trigger an error when I normally access my php pages. It's styled with an orange background. So I guess somethings happening.
Attached is my php.ini
Does anybody know whats wrong?
Thanks in advance for any information.
| Description: |
|
| Filesize: |
21.2 KB |
| Viewed: |
6702 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
php.ini.txt |
| Filesize: |
49.13 KB |
| Downloaded: |
468 Time(s) |
|
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Tue Jan 13, 2009 2:35 pm Post subject: Wamp Server Xdebug |
|
|
CMCDragonkai wrote:
| Quote: | Hello, I use wamp server http://www.wampserver.com/en/
I followed the tutorial, even though it didn't quite apply to wampserver. But in phpinfo() it's listed there, and also next to the Zend Logo but when I try debugging it, and then stopping the debugging session. Netbeans gives me a notice that:
In the php.ini I added:
zend_extension_ts="C:/wamp/bin/php/php5.2.8/ext/php_xdebug-2.0.4-5.2.8.dll"
xdebug.remote_enable=on
xdebug.remote_handle=dbgp
| Typo, missing 'r'? This one should be right:
xdebug.remote_handler=dbgp
Radek
| Quote: | xdebug.remote_host=localhost
xdebug.remote_port=9000
to the Dynamic Extensions part.
Attached is my php.ini
Does anybody know whats wrong?
Thanks in advance for any information.[/code]
Attachments:
http://forums.netbeans.org//files/phpini_130.txt
|
|
|
| Back to top |
|
 |
CMCDragonkai
Joined: 13 Jan 2009 Posts: 9
|
Posted: Wed Jan 14, 2009 12:44 am Post subject: |
|
|
Ah, ok. I changed it to that. Restarted all services. But it's still showing up the same message.
Does wamp-server have zend optimizer or whatever they said on the tutorial for xamp? Because I may have to disable it... it's just that I don't know where it is in wampserver.
However I can find no zend debugger in it.
I've tried the testing if xdebug is running http://blogs.sun.com/netbeansphp/entry/howto_check_xdebug_installation
It says it does, | Code: | | connection established: Resource id #3 |
Also tried changing ports. It's still not working. Deactivated my antivirus firewall, still didn't make a difference...
Could it be that the debug file is wrong? There are other versions. I didn't know which one to use, I just picked the one that looked right. But there are other versions on the download page.
---EDIT----
Tried 5.2 VC6 Non-thread-safe under zend_extension_ts= and zend_extension. I did the same with previous 5.2 VC6.
Didn't work. It didn't even show on the phpinfo() so that file is out.
An interesting thing to note is, if I click the debug button, and I do not put in any errors. It just constantly loads the page, and when I click stop there is no error message displayed. On the bottom, it says it's running.
But if I purposely input an error, the loaded page stops at the error. It tries to connect, but then gives me the error message.
However I came across a post http://phphints.wordpress.com/2008/10/24/wampserver-phpini-settings-for-use-with-xdebugdll-pear-and-silverstripe-cms-framework/ that says you should disable mod_rewrite and curl to run xdebug... I tried it, but it didn't work again.
In the options, of Netbeans and in the php command line area, I've inputed this as the PHP interpreter. "C:\wamp\bin\php\php5.2.8\php.exe" But still to no avail.
I believe xdebug is working. It's definitely working when I just access my pages normally. The errors are different colours and all. But Netbeans is just not connecting to it... I think the developers behind Netbeans really need to think about another option for debugging. Or at least make sure NB can connect to xdebugger no matter what the networking is.
|
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Wed Jan 14, 2009 8:39 am Post subject: Wamp Server Xdebug |
|
|
CMCDragonkai wrote:
| Quote: | Ah, ok. I changed it to that. Restarted all services. But it's still showing up the same message.
Does wamp-server have zend optimizer or whatever they said on the tutorial for xamp? Because I may have to disable it... it's just that I don't know where it is in wampserver.
| See Flo's comment here:
http://blogs.sun.com/netbeansphp/entry/screancast_about_netbeans_php_ide
Radek
|
|
| Back to top |
|
 |
CMCDragonkai
Joined: 13 Jan 2009 Posts: 9
|
Posted: Thu Jan 15, 2009 12:21 am Post subject: |
|
|
| I read it, but I don't have any zend extensions in my php.ini
|
|
| Back to top |
|
 |
ernie242
Joined: 17 Jan 2009 Posts: 13
|
|
| Back to top |
|
 |
CMCDragonkai
Joined: 13 Jan 2009 Posts: 9
|
Posted: Sat Jan 17, 2009 2:59 pm Post subject: |
|
|
I actually use Notepad++ but I wouldn't call it an IDE...
Will look into that.
But if the problem is WAPM/configuration/settings. How do I fix it? And what is WAPM?
|
|
| Back to top |
|
 |
ernie242
Joined: 17 Jan 2009 Posts: 13
|
Posted: Sat Jan 17, 2009 3:47 pm Post subject: |
|
|
Start->Run->"CMD" and hit enter
in cmd type path to where php.exe is located and 'php -v':
ex:
C:/wamp/bin/php/php5.2.8/php -v
What message is given after that?
|
|
| Back to top |
|
 |
CMCDragonkai
Joined: 13 Jan 2009 Posts: 9
|
Posted: Sun Jan 18, 2009 1:01 pm Post subject: |
|
|
I typed what you wrote and..
It gives this:
PHP 5.2.8 (cli) (built: Dec 8 2008 19:31:23)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
|
|
| Back to top |
|
 |
ernie242
Joined: 17 Jan 2009 Posts: 13
|
Posted: Sun Jan 18, 2009 1:49 pm Post subject: |
|
|
Ok, I will analyse your php.ini first...
Have you already tried to run this with notepad++ ?
|
|
| Back to top |
|
 |
CMCDragonkai
Joined: 13 Jan 2009 Posts: 9
|
Posted: Mon Jan 19, 2009 1:50 am Post subject: |
|
|
| Not yet, will do today.
|
|
| Back to top |
|
 |
CMCDragonkai
Joined: 13 Jan 2009 Posts: 9
|
Posted: Mon Jan 19, 2009 2:54 am Post subject: |
|
|
It worked, everything works in Notepad++
However I am a bit confused about the local and remote paths. I just put them both as paths to my www directory. If I wanted to debug a file that was in another folder under the www directory what would I have to do? Add a new path?
|
|
| Back to top |
|
 |
CMCDragonkai
Joined: 13 Jan 2009 Posts: 9
|
Posted: Mon Jan 19, 2009 3:23 am Post subject: |
|
|
| Don't worry. Thanks for all your help. The notepad thing helped. The Netbeans also works.
|
|
| Back to top |
|
 |
leborgne
Joined: 27 Jan 2009 Posts: 3
|
Posted: Tue Jan 27, 2009 7:55 pm Post subject: |
|
|
hello
| Quote: | Tried 5.2 VC6 Non-thread-safe under zend_extension_ts= and zend_extension. I did the same with previous 5.2 VC6.
Didn't work. It didn't even show on the phpinfo() so that file is out. |
if u can't see xdebug in phpinfo's result, then, it's simply not loaded, event if you have it in the php.ini located in de wamp/bin/apache-xxx/bin.
take a look at the apache error log file, generaly in the directory wamp/bin/apache-xxx/log, i think you should see a problem with the xdebug-xxx.dll not loaded at the apache start.
you have to take the php_xdebug-2.0.1-5.2.1.dll from the xdebug site and configure this one in php.ini (put it in the wamp\bin\php\php-xxx\ext\ dir)
restart apache and load the phpinfo page, you should see it now.
hope this will help you
|
|
| Back to top |
|
 |
Robert Gonzalez Posted via mailing list.
|
Posted: Wed Jan 28, 2009 5:18 pm Post subject: Wamp Server Xdebug |
|
|
When you download xdebug for Windows you get a long named file for it
(like php_xdebug2.4_0_11.dll or something like that). What I did was
download the zip file with the dll and extract the dll file to my /ext
directory inside of the PHP directory as a php_xdebug.dll. Then I
added a line in my php.ini file to point to the
zend_extension_ts="full/path/to/the/dllfile". I also added the
xdebug.remote_enable=on line so that the IDE can actually trigger a
debug session.
Keep in mind that my installation of PHP is a thread safe version to I
use the zend_debugger_ts entry as opposed to the zend_debugger entry.
Also make sure to restart your web server after you install it, then
check your phpinfo() in either a php file or at the command using php
-i. You can also check your modules using get_loaded_extensions()
inside of a php file or by entering php-m at the command line. Under
the command line you will have two sections (if xdebug was installed
correctly): [PHP Modules] where xdebug shows up as xdebug and [Zend
Modules] where xdebug shows up as Xdebug.
Make sure when you download xdebug that you get the right version for
your installation of PHP. I just recently updated to xdebug 2.0.4
which gives you the option of a thread safe and non-thread safe
installation. I think 2.0.3 is an all in one flavor. But I could be
wrong about that.
On Tue, Jan 27, 2009 at 11:55 AM, leborgne <address-removed> wrote:
| Quote: | hello
| Quote: | Tried 5.2 VC6 Non-thread-safe under zend_extension_ts= and zend_extension. I did the same with previous 5.2 VC6.
|
| Quote: | Didn't work. It didn't even show on the phpinfo() so that file is out.
|
if u can't see xdebug in phpinfo's result, then, it's simply not loaded, event if you have it in the php.ini located in de wamp/bin/apache-xxx/bin.
take a look at the apache error log file, generaly in the directory wamp/bin/apache-xxx/log, i think you should see a problem with the xdebug-xxx.dll not loaded at the apache start.
you have to take the php_xdebug-2.0.1-5.2.1.dll from the xdebug site and configure this one in php.ini
restart apache and load the phpinfo page, you should see it now.
hope this will help you
|
--
Robert A. Gonzalez
|
|
| Back to top |
|
 |
|