I followed this site -> https://www.box.com/blog/how-to-debug-php-with-vim-and-xdebug-on-linux/
but I'm not having much luck. I followed the firections and my phpinfo() functions is showing that xdebug is up and running but I see don evidence of xdebug from within vim. I typed in my localhost url, localhost/mysite.php?XDEBUG_SESSION_START=1 and then wen to vim and pressed f5 but that didn't seem to have an effect at all. When I run cat /var/log/apache/error.log I get no errors showing.
And here are my xdebug setting in my /etc/php5/apache/php.ini file

;My Modules
[bash][Zend] zend_extension = /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable = 1
xdebug.remote_port = 9000 xdebug.remote_host = localhost [/bash]

Any ideas? Thanks.

Update, as of today I'm not getting these errors under the /var/log/apacher/error.log file, note that I wasn't even trying to edit the project under the udemy directory, that must have been loaded because google chrome loads every tab when it starts up. It says no such file or directory for the xdebug.so file but I verified that the files are there with the find command, that's where I got the path so I could put it in the php.ini file.

garrett@mint-desktop ~ $ cat /var/log/apache2/error.log
[Sat Dec 26 12:24:26.923482 2015] [mpm_prefork:notice] [pid 6988] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 configured -- resuming normal operations
[Sat Dec 26 12:24:26.923532 2015] [core:notice] [pid 6988] AH00094: Command line: '/usr/sbin/apache2'
[Sat Dec 26 21:30:03.324359 2015] [:error] [pid 6994] [client 127.0.0.1:59142] PHP Fatal error: Call to undefined function redicrect() in /var/www/html/udemy/php-oop/gallery/admin/includes/header.php on line 5
[Sat Dec 26 21:30:03.325177 2015] [:error] [pid 6994] [client 127.0.0.1:59142] PHP Stack trace:
[Sat Dec 26 21:30:03.325203 2015] [:error] [pid 6994] [client 127.0.0.1:59142] PHP 1. {main}() /var/www/html/udemy/php-oop/gallery/admin/index.php:0
[Sat Dec 26 21:30:03.325210 2015] [:error] [pid 6994] [client 127.0.0.1:59142] PHP 2. include() /var/www/html/udemy/php-oop/gallery/admin/index.php:1
[Sat Dec 26 22:06:06.614227 2015] [:error] [pid 6991] [client 127.0.0.1:60717] PHP Fatal error: Call to undefined function redicrect() in /var/www/html/udemy/php-oop/gallery/admin/includes/header.php on line 5
[Sat Dec 26 22:06:06.614259 2015] [:error] [pid 6991] [client 127.0.0.1:60717] PHP Stack trace:
[Sat Dec 26 22:06:06.614270 2015] [:error] [pid 6991] [client 127.0.0.1:60717] PHP 1. {main}() /var/www/html/udemy/php-oop/gallery/admin/index.php:0
[Sat Dec 26 22:06:06.614277 2015] [:error] [pid 6991] [client 127.0.0.1:60717] PHP 2. include() /var/www/html/udemy/php-oop/gallery/admin/index.php:1
[Sat Dec 26 23:28:51.517560 2015] [mpm_prefork:notice] [pid 1762] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 configured -- resuming normal operations
[Sat Dec 26 23:28:51.517871 2015] [core:notice] [pid 1762] AH00094: Command line: '/usr/sbin/apache2'
PHP: syntax error, unexpected '=' in /etc/php5/apache2/php.ini on line 1834
Failed loading /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : cannot open shared object file: No such file or directory
PHP: syntax error, unexpected '=' in /etc/php5/apache2/php.ini on line 1834
Failed loading /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : cannot open shared object file: No such file or directory
PHP: syntax error, unexpected '=' in /etc/php5/apache2/php.ini on line 1834
Failed loading /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : cannot open shared object file: No such file or directory
PHP: syntax error, unexpected '=' in /etc/php5/apache2/php.ini on line 1834
Failed loading /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : cannot open shared object file: No such file or directory
PHP: syntax error, unexpected '=' in /etc/php5/apache2/php.ini on line 1834
Failed loading /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : cannot open shared object file: No such file or directory
[Sun Dec 27 05:06:40.685115 2015] [mpm_prefork:notice] [pid 1762] AH00169: caught SIGTERM, shutting down
PHP: syntax error, unexpected '=' in /etc/php5/apache2/php.ini on line 1834
Failed loading /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable : cannot open shared object file: No such file or directory
[Sun Dec 27 09:01:51.112516 2015] [mpm_prefork:notice] [pid 1768] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.14 configured -- resuming normal operations
[Sun Dec 27 09:01:51.113407 2015] [core:notice] [pid 1768] AH00094: Command line: '/usr/sbin/apache2'
[Sun Dec 27 09:02:25.582938 2015] [:error] [pid 1789] [client 127.0.0.1:45028] PHP Fatal error: Call to undefined function redicrect() in /var/www/html/udemy/php-oop/gallery/admin/includes/header.php on line 5
[Sun Dec 27 09:02:25.582963 2015] [:error] [pid 1789] [client 127.0.0.1:45028] PHP Stack trace:
[Sun Dec 27 09:02:25.582974 2015] [:error] [pid 1789] [client 127.0.0.1:45028] PHP 1. {main}() /var/www/html/udemy/php-oop/gallery/admin/index.php:0
[Sun Dec 27 09:02:25.582992 2015] [:error] [pid 1789] [client 127.0.0.1:45028] PHP 2. include() /var/www/html/udemy/php-oop/gallery/admin/index.php:1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.