How to install XDebug on WAMP?

  1. Download the latest release of xdebug for PHP version you are using.
  2. Copy xdebug dll file into php’s extension directory, in my case, as I use wamp, it is c:\wamp\php\ext
  3. Now we need to configure xdebug so that it get recognized by PHP, so open php.ini. For CLI it will be located at  c:\wamp\php\php.ini and Apache it will be located at c:\wamp\Apache2\bin\php.ini. You need to modify both above files
  4. Add following at the end of your php.ini file
  5. [xdebug]
    zend_extension_ts="c:/wamp/php/ext/php_xdebug-2.0.3-5.2.5.dll"
    xdebug.profiler_output_dir = "c:/wamp/tmp/xdebug"
    xdebug.profiler_output_name = "cachegrind.out.%p"
    xdebug.profiler_enable = 0
    xdebug.profiler_append=0
    xdebug.extended_info=1
    xdebug.remote_enable=1
    xdebug.remote_handler=dbgp
    xdebug.remote_mode=req
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    xdebug.idekey=xdebug
    xdebug.remote_log="c:/wamp/tmp/xdebug/xdebug_remot.log"
    xdebug.show_exception_trace=0
    xdebug.show_local_vars=9
    xdebug.show_mem_delta=0
    xdebug.trace_format=0

  6. Just create a folder ‘xdebug’ in ‘c:\wamp\tmp’ folder.
  7. Finally restart Apache service .

2 responses to this post.

  1. Amazing, I did not know about this topic up to now. Thx.

    Reply

  2. Nice tute. I found this one is also pretty helpful: http://wiki.netbeans.org/HowToConfigureXDebug

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.