Can't get debugger to validate
I'm trying to get the debugger to work on my remote server. I have installed xdebug and can see if when running pipeinfo.
I have configured the php.ini file to set xdebug.remote_enable=1, xdebug.remote_port=9000, xdebug.remote_host=[IP address].
Using telnet I have confirmed a connection to my desktop.
The deployment server is configured in PHPstorm and works. It tests good, I use it for SSH session and to transfer files. No issues.
When I run the Validate Debugger Configuration on the web servce I get 2 error messages back. The first is that the validation script has unexpected format. The second is to check the mappings. The mappings appear to be correct. I am accessing the files using the Remote Host with no issues. As far as I can determine, the validation script is not being created. I check both the local directory and the remote server. Nothing is there. The troubleshooting suggestion in the documentation have not help.
Suggestions?
Please sign in to leave a comment.
Do you have a macOS-based installation?
If this is the case, there is a chance that TCP 9000 port could be occupied by the "php-fpm", so a different app is responding on this port.
Thank you for your reply Vaslliy. In this case, the issue was actually server-side. I am using Google PageSpeed module. The module does some rewriting of pages served to improve preformance and that was preventing PHPstorm from properly interpeting the output. The solution is to add "?ModPagespeed=on&ModPagespeedFilters=" to the URL. This turns off the filters used by PageSpeed and prevents the writing of the code.
Jetbrain support sent me a copy of the validation script, which I copied onto my server. I manually called it with my browser adding the above to the url. The XML output returned, did indicate everything was working correctly.
I am adding the following keywords so others looking for this solution can find it.
Validation Google PageSpeed Module ModPagespeed Pagespeed_mod