M
M
Maxim Grechushnikov2020-04-13 13:59:36
Docker
Maxim Grechushnikov, 2020-04-13 13:59:36

How to set up Xdebug in docker on external vps?

The layout is a little scary.
1. my work computer
2. external vps. on it virtualki developers. Docker is on the virtual machine. it has a code.
3. the code is not executed locally. when changing the code locally, auto-deploy works on the vps and is already spinning there.

I would like to put a bug in IT.

I am doing something wrong. but it doesn't shrink.
xdebug.remote_autostart = on
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_log = /tmp/xdebug_remote.log
xdebug.remote_mode = req
xdebug.remote_port = 9099 #if you want to change the port you can change
xdebug.overload_var_dump = 1
xdebug.auto_trace = 1
xdebug.idekey="PHPSTORM"

iptables -nvL
Chain INPUT (policy ACCEPT 18 packets, 1064 bytes)
pkts bytes target prot opt ​​in out source destination
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9099

netstat -a
tcp6 0 0 [: ::]:9099 [::]:* LISTEN

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question