Skip to content

VanierRobotics/2016

Repository files navigation

Vanier Robotics 2016 Website

IMPORTANT : When working on a new feature please branch from master then start coding.

Local xampp setup:

  1. Open xampp control panel
  2. Open apache config (httpd.conf)
  3. Add the following lines at the end of the file:
<VirtualHost *:80>
DocumentRoot "C:\Users\<username>\Documents\GitHub\robotics2016\da2016"
ServerName devbana.tk
ServerAlias www.devbana.tk
</VirtualHost>

<Directory "C:\Users\<username>\Documents\GitHub\robotics2016">
   Order allow,deny
   AllowOverride all
   Allow from all
   Require all granted
</Directory>

<Directory "C:\Users\<username>\Documents\GitHub\robotics2016\da2016">
   Order allow,deny
   AllowOverride all
   Allow from all
   Require all granted
</Directory>
  1. Go to C:\Windows\System32\drivers\etc and edit the hosts file
  2. add the following line:
127.0.0.1           devbana.tk

Yay you are done!

Setting up XDebug with PHPStorm

Already comes installed with XAMPP, all you need is to enable it :)

XAMPP php.ini Changes

  1. Open xampp control panel
  2. Hit apache config button and choose php.ini
  3. Ctrl+F and find [XDebug] at bottom if you feel like scrolling
  4. remove everything because we don't need profiler, that's too advanced bruh
  5. Copy & Paste these lines
       [XDebug]
       zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
       xdebug.remote_enable = 1
       xdebug.remote_handler = "dbgp"
       xdebug.remote_host = "127.0.0.1"
  • Finally Restart apache and rejoice.
  • Easy test is var_dump. If you session dump at the top looks different, Xdebug is working great.

PHPStorm config

  1. Open Run->Edit Configurations
  2. Create a new PHP Web Application and write the start url as http://devbana.tk
  3. Click on the 3 dots near server now
  • Add a new entry as [name wtvr] with host localhost on port 80 with XDebug
  • Ignore path mapping, we're local
  1. Back in PHP Web App config choose your new server
  2. You can now run debug which will open a new XDebug session and send you to our index page.
  • Add breakpoints as you wish, dig through objects and step through as much as your heart desires.