Skip to content

Instantly share code, notes, and snippets.

View vicgonvt's full-sized avatar

Victor Gonzalez vicgonvt

View GitHub Profile
@vicgonvt
vicgonvt / Xdebug.md
Last active April 5, 2019 18:29
Instructions for Installing Xdebug in a Mac with Laravel, Valet and Sublime Text

NOTE: This assumes that you have Valet, Homebrew, Sublime Text and PHP properly installed and functioning and will only focus on the setup and installation and setup of Xdebug. There are other tutorials that go into great depth explaining how to get those tools installed on your mac.

Let's get started right away!

Installing Xdebug

You need to know which version of PHP you are running in your machine. To do so, from the terminal run the command php -v and this will display something like this

PHP 7.0.14 (cli) (built: Dec  8 2016 23:34:17) ( NTS )
# Aliases loading
alias aliases='vim ~/.bash_profile'
alias aliases_reload='source ~/.bash_profile'
# System Changes
alias ls='ls -la'
# Composer
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PS1="\W >> \[$(tput sgr0)\]"