Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij PHP remote debugging: Failed to execute validation script

I am trying to configure the PHP remote debugging feature of the PHP plugin in IntelliJ. When I try to validate my configuration I get the following error:

Failed to execute validation script:
'Could not read from "host:port/path/to/_intellij_phpdebug_validator.php"
because it is not a file.'

I don't really know where the problem is. I assume this php file is something that IntelliJ copies to the remote server and then tries to execute. But for some reason that fails. Can anyone provide some insight what this error means and how to fix it?

like image 538
lanoxx Avatar asked Jul 21 '14 16:07

lanoxx


Video Answer


2 Answers

This problem appears if the 'Web Path' field under Tools | Deployment | Configuration | Mapping is not correctly pointing to the url at which the uploaded validator script is accessible.

like image 92
lanoxx Avatar answered Sep 21 '22 10:09

lanoxx


Just download file

http://gist.github.com/litzinger/8fd06ab6e5033b7ff8d8

to your deployment directory or directly to target server document root directory

like image 31
Sergis Avatar answered Sep 21 '22 10:09

Sergis