E
E
eugene1592021-06-21 07:06:28
Docker
eugene159, 2021-06-21 07:06:28

PHPStorm doesn't see php.ini inside container made via devilbox. Because of what it is not possible to configure xdebug. How to fix?

I put the docker tag, since devilbox is made on it.

The essence of the problem.
devilbox creates php.ini files inside docker containers. But he names them differently: docker-php-ext-xdebug.ini, xxx-devilbox-default-php.ini.

PHPStorm does not see these php.ini files. And gives an error. I am attaching a screenshot. Because of this, it is not possible to pass validation by setting xdebug. I can't even change any parameters in php.ini - PHPStorm does not see php.ini and changes in it, respectively, too.

And not only PHPStorm. If you go inside the container and execute the command: It
php --ini
will be like this:
Loaded Configuration File: (none)

How to set up xdebug in PHPStorm on devilbox?

60d0103bac7f9546946235.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Damir Shaniyazov, 2021-06-21
@shaniyazovdamir

Try to specify in PhpStorm where is php.exe

D
Dmitry, 2021-06-21
@q2digger

and go and read the documentation?
https://devilbox.readthedocs.io/en/latest/configur...


devilbox-php.ini-xdebug
This file holds some sane example configuration to get you started with Xdebug. Copy it (do not simply rename it) to a different file ending by .ini and start adjusting it.

Translation required?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question