P
P
Pavel2019-08-29 16:39:46
linux
Pavel, 2019-08-29 16:39:46

How to set up xdebug and phpstorm?

I can't set up xdebug and phpstorm 2019 to work together.
There is a virtual machine (debian 10) with IP 192.168.0.5. It deployed a web application available on the test.loc domain (Everything is written in the hosts file). xdebug installed and configured
5d67d3c8d97ea943037295.png
On my machine (opensuse 15 with IP 192.168.0.4) I mount the folder with the project from the virtual machine.

phpstorm settings
5d67d4ec1aec2247260499.png
5d67d4f44a8a0029884952.png
5d67d4fdbc8e5127337934.png
5d67d503f2137081046873.png

I set breakpoints, I press the listen button and nothing happens. What am I doing wrong? Or did you not do something else?
Do I need to write something in the browser? Do you need to specify IP addresses of the virtual machine or your machine? Or not an IP address at all, but a domain?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
green_goo, 2019-08-29
@html_profi

There is a virtual machine (debian 10) with IP 192.168.0.5

So in xdebug.remote_host you need to specify the address 192.168.0.4
Or it's better not to specify remote_host, but enable xdebug.remote_connect_back

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question