General developer forum

Debugging with XDebug

 
Picture of ensiferum ka
Debugging with XDebug
 

Hello! 

I'm trying to debug a question in quiz.

I installed xdebug (and xdebug helper in browser) and tried to configure PHPStorm as it's written in this tutorial: https://wpdevkvk.wordpress.com/2014/12/12/configure-phpstorm-to-debug-php-with-xdebug-and-chrome/

I did all the settings and then I have opened 'question/preview.php' at phpstorm and set a breakpoint at the top of file and start the listening. In browser, on the Moodle site I opened preview of my question ('localhost/question/preview.php?blablabla...). But I didn't get 'Incoming Connection From Xdebug' window in PHPStorm, that means there is no connection, I guess.

What can I do with it? Thanks for help.

 
Average of ratings: -
Picture of ensiferum ka
Re: Debugging with XDebug
 

Solved.

 
Average of ratings: -
Picture of ensiferum ka
Re: Debugging with XDebug
 

But there is the new problem smile Moodle works extremely slowly. It's just impossible to debug.

 
Average of ratings: -
Picture of Marcus Green
Re: Debugging with XDebug
Core developersParticularly helpful MoodlersPlugin developersTesters

I use xdebug with Visual Studio Code on Windows and OSX. It is slower than without, but usable and very useful.

 
Average of ratings: -
Picture of Richard Oelmann
Re: Debugging with XDebug
Core developersParticularly helpful MoodlersPlugin developersTesters

Make sure you have theme designer mode turned off (if you have it enabled)

 
Average of ratings: -
Picture of ensiferum ka
Re: Debugging with XDebug
 

theme designer mode is off

 
Average of ratings: -