How To Install XDebug

XDebug is a useful debugging tool for php. I recently have installed xdebug for IIS and I want to share how I was able to accomplish this.

We were originally writting our code on the server using a mapped network drive on our development box. We needed to install iis. I used the following youtube video and downloaded and installed web platform installer

Web Platform Installer

To ensure everything would work, I either installed or made sure the following packages were installed.

Configuring odbc connections for progress databases

We will use progress databases to connect to things from time to time. I needed to install progress database drivers on my development box. The following StackOverflow post details how this was done.

Xdebug

To install xdebug, you will need to use the following wizard and a phpinfo(); page to accomplish this. See the following xdebug Wizard

PHP.ini

the following are the additions to my php.ini file incase it helps

extension=php_pdo_odbc.dll
extension=php_ldap.dll
extension=php_odbc.dll
[XDebug]
zend_extension = "C:\Program Files (x86)\PHP\v7.3\ext\php_xdebug-3.0.4-7.3-vc15-nts.dll"
;zend_extension = xdebug
xdebug.mode=debug
xdebug.remote_enable = 1 
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.client_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_dir="c:\Temp"
xdebug.idekey=PHPSTORM
xdebug.remote_autostart = 1
xdebug.remote_connect_back=on
    

Google Chrome

you will need to install the xdebug extension for google chrome. To debug, make sure you are in debug mode. Get Xdebug Helper

PHP Storm

If you are using PHP Storm (Which you probably should IMHO) I used the following video to learn how it worked.