Setting up localhost xdebug

I am new user of jetBrains PhpStorm 2.1.1. I have difficulty setting up my xdebug. I have used netbeans before, it is lot easier to configure.

I have read this document, http://blogs.jetbrains.com/webide/l2011/03/configure-php-debugging-in-phpstorm-2-0/, find it difficult to understand.

I have enable xdebug:

; Enable xdebug extension module
zend_extension=/usr/lib/php/modules/xdebug.so

and phpinfo show that it is working.

The application is using virtual host port 8081, and all the files is in /home/kelvinfix/public_html/mywebsite/.

Now how can I start to configure PhpStorm xdebug? should I use PHP remote debug? or PHP web application?

What is the step by step of setting it up?

Thank you.

0
2 comments
Avatar
Permanently deleted user

Hello kelvin,

Debugging with PhpStorm and Xdebug almost doesn't require any configuration at all(except very specific and rare cases) - please read http://blogs.jetbrains.com/webide/2011/02/zero-configuration-debugging-with-xdebug-and-phpstorm-2-0/.

Briefly you need to:

  1. Enable debug connections listener(a button with handset on toolbar)
  2. Initiate debug session from browser(using bookmarklets)


The only requirement is to configure Xdebug itself. But you have got it work with Netbeans, it should work with PhpStorm too. Here is Xdebug installation guide.

Please let me know if it won't help.

I have read this document, http://blogs.jetbrains.com/webide/l2011/03/configure-php-debugging-in-phpstorm-2-0/, find it difficult to understand.

Please elaborate and share your ideas with us. It can help us to make this tutorial better.

Thank you for feedback!

0
Avatar
Permanently deleted user

Thank you, Nikolay. It is working now using zero configuration debugging method.

I found it difficult to understand this document http://blogs.jetbrains.com/webide/l2011/03/configure-php-debugging-in-phpstorm-2-0/, because I am new to PhpStorm and I am not sure which method to use.

0

Please sign in to leave a comment.