Answer the question
In order to leave comments, you need to log in
Error phpstorm+Xdebug not working what could be wrong?
The following error Cannot accept external Xdebug connection Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])'
There are several different instructions on the Internet, but it still doesn't work.
A bunch of openserver + phpstorm + xdebug.
Xdebug is running and phpinfo() gives full information about it, everything seems to be ok. But when I try to debug, I get this error. I so understand it is necessary to set what that server global variable. And in Google, I found several English-language answers to a similar question, but I still didn’t understand how to ask it and where to insert the code that is given there. (I'm not a programmer myself, just starting to learn).
For example, they write that you need to add 2 lines:
export PHP_IDE_CONFIG="serverName={SERVER NAME IN PHP STORM}"
export XDEBUG_CONFIG="remote_host={YOUR_IP} idekey=PHPSTORM"
Tried to insert into any configuration files like php.ini nothing changes.
But I still don’t understand where to add it, to some kind of web server configuration file? or where? Tell me plz. Thank you very much in advance!
Answer the question
In order to leave comments, you need to log in
Faced the same problem. Previously, everything worked, but after updating the version of Open Server it stopped, although all configs were corrected in the same way.
I found the answer for myself here: https://devnet.jetbrains.com/message/5478634 in the last message. The installation in
helped me , in the configs it is now explicitly registered equal toxdebug.extended_info
1
0
You took these two lines on stackoverflow - they are for the console. You need it for the web interface,
you definitely don't need them. And they are not in php.ini, but in bashrc.
In my case, " Cannot evaluate expression '`isset($_SERVER['PHP_IDE_CONFIG'])`' ' was caused by using ' test.php ' as the filename of the script being debugged in IntelliJ IDEA / PhpStorm.
Changing the script filename to something else fixed the problem.
I recorded a video on how to set up a debugger, I hope it will help: https://school.makenow.com.ua/video/12
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question