Chen Kinnrot
Chen Kinnrot

Reputation: 21015

Blank page when debuggin with xdebug

I'm using php storm and xdebug extenstion to debug my php code, when I activate debugging at the end of the request i see white page, with no respone, if I deactivate the debuggger helper, the page renders successfully.

Is it normal?

Upvotes: 4

Views: 1087

Answers (1)

Mārtiņš Briedis
Mārtiņš Briedis

Reputation: 17762

Settings these values for xdebug in php.ini helped me:

xdebug.default_enable=1
xdebug.remote_autostart=1
xdebug.remote_connect_back=On
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_host=localhost

I had a problem where Vagrant would not be friends with Phpstorm. I was able to make a breakpoint on the first line of the script, but it dit not step further and just returned a blank line.

Upvotes: 1

Related Questions