P
P
pavlyk2015-01-09 17:19:30
PHP
pavlyk, 2015-01-09 17:19:30

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

5 answer(s)
X
xrj, 2015-01-13
@pavlyk

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_info10

O
OnYourLips, 2015-01-09
@OnYourLips

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.

D
Dmitry Fedyuk, 2017-05-15
@dfediuk

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.

M
Make Now, 2017-11-21
@makenow

I recorded a video on how to set up a debugger, I hope it will help: https://school.makenow.com.ua/video/12

M
maxxi165, 2018-04-13
@maxxi165

Another reason for the "Cannot evaluate expression" problem could be that xdebug is included as "extension=". Must be connected as "zend_extension="

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question