How to do remote debug in PHPstorm with xdebug?

How should a PHP & WordPress beginner debug PHP?

  • As a novice developer using php in the context of WordPress, I would like to know the best ways (tools, workflows, or resources) to learn how to debug php, while also learning it (php/wordpress) at the same time. Something like xdebug or firephp seem to advanced. I would like to use something similar in feel to ruby irb, where I could tinker with different functions.

  • Answer:

    Don't learn PHP if you can avoid it. Learn Javascript, and Python and then Ruby as you have to. You will be a poor programmer if you do not learn to discriminate.

Ciaran O'Donnell at Quora Visit the source

Was this solution helpful to you?

Other answers

Netbeans has a pretty good visual debugger for PHP.  You need to install Xdebug first, which is a bit of a pain, but there are plenty of resources online on how to do it.  Once it's set up, you can step through any php code including Wordpress.

Dave Hagler

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.