P
P
PendalF892019-03-08 18:49:55
virtual box
PendalF89, 2019-03-08 18:49:55

Setting up Xdebug in a virtual machine?

Hello!
Host: Win 10
Guest: Kubuntu 18.04
VM: VirtualBox
PHPStorm is running in the virtual machine, a browser is running on Windows, you need to set up XDebug.
Here's what I did:
1. Set up a network between machines through NAT and a network bridge
2. Set up Xdebug:

zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.idekey="PHPSTORM"
xdebug.remote_connect_back=1
xdebug.remote_host=192.168.31.13 // Адрес хоста (win 10)

3. Configured PHPStorm:
5c828edb8cba5113263882.png
The Chrome browser has the Xdebug extension, enabled.
Tell me what else needs to be done to make it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PendalF89, 2019-03-08
@PendalF89

I did port forwarding 9000 in VirtualBox and it worked!
5c82aa6f4a48e841413660.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question