Yii v2 snippet guide III

Comparing #60 with #61

Revision #61 was created by rackycz rackycz on Mar 9, 2021, 10:09:51 PM.

Vagrant

Content

[...]
echo "xdebug.remote_autostart=1" | sudo tee -a /etc/php/7.0/apache2/php.ini
echo "xdebug.remote_log=/var/www/public/xdebug.log" | sudo tee -a /etc/php/7.0/apache2/php.ini
echo "xdebug.remote_connect_back=1" | sudo tee -a /etc/php/7.0/apache2/php.ini
echo "xdebug.idekey=netbeans-xdebug" | sudo tee -a /etc/php/7.0/apache2/php.ini

# Important: Make sure that your IDE has identical settings: idekey and remote_port.
 
# NetBeans: Make sure your project is correctly setup. Right-click the project and select Properties / Run Cofigurations. "Project URL" and "Index file" must have correct values.


# Note:
[...]
// Important: Make sure that your IDE has identical settings: idekey and remote_port.
# NetBeans: Make sure your project is correctly setup. Right-click the project and select Properties / Run Cofigurations. "Project URL" and "Index file" must have correct values.
 
```

Before you use Vagrantfile, you must install Vagrant and VirtualBox.

Note 1: Sadly, these days VirtualBox does not work on the ARM-based Macs with the M1 chip
[...]