Jump to content

Recommended Posts

Hi,

 

I have over two decades of programming experience using mainly MS tools but I am quite a newbie using Apache/Eclipse/PHP.

 

On my local computer, I have setup Apache 2.2.22 (32bit) with PHP 5.4.9. I'm playing around with OpenCart and WordPress, both of which run fine locally. I use Eclipse basically as an editor of the PHP files of both these products.

 

What I want to do now is to be able to put a breakpoint in Eclipse to debug the php code. I've read about zend debugger and xdebug, I'm not exactly sure which one would be the best for what I want to achieve but I decided to try xdebug.

 

- I downloaded the file PHP 5.4 VC9 TS (32 bit) from here:http://xdebug.org/download.php

- copied it to my php folder (renamed from php_xdebug-2.2.2-5.4-vc9.dll to php_xdebug.dll)

- Added this section to my php.ini

[XDebug]

zend_extension_ts="php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.remote_autostart=1

When I restart my Apache server, there is no error in the log concerning xdebug, but in my phpinfo, I still can't find a mention of xdebug as I read that I'm supposed to find.

 

Anyone has any idea what I'm missing? I have included my phpinfo output as attachment.

 

Thanks in advance!

Frank

 

(p.s. I'm using Eclipse for PHP Developers, Version: 3.0.2)

phpinfo.zip

Edited by franktko
Link to comment
https://forums.phpfreaks.com/topic/277064-setting-up-a-debugger/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.