Debugging with XDebug

Debugging with XDebug

by ensiferum ka -
Number of replies: 5

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: -
In reply to ensiferum ka

Re: Debugging with XDebug

by ensiferum ka -

Solved.

In reply to ensiferum ka

Re: Debugging with XDebug

by ensiferum ka -

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

In reply to ensiferum ka

Re: Debugging with XDebug

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

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