Configuring your dev environment to be able to use xdebug when you're working on Windows 10 (with WSL2) and Docker with VS Code can be (a bit) tricky.
This is a quick reminder of how I've done that.
- Install and configure xdebug in Docker
Configuring your dev environment to be able to use xdebug when you're working on Windows 10 (with WSL2) and Docker with VS Code can be (a bit) tricky.
This is a quick reminder of how I've done that.
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
IGNORED_PACKAGES := /vendor/ | |
PACKAGES := $(shell ( go list ./... | grep -v -e "^$$" $(addprefix -e ,$(IGNORED_PACKAGES)) )) | |
DIRS := $(shell ( go list -f '{{.Dir}}' ./... | grep -v -e "^$$" $(addprefix -e ,$(IGNORED_PACKAGES)) )) | |
.PHONY: test | |
test: | |
go test $(PACKAGES) | |
.PHONY: fmt | |
# Run gofmt on all source files |
xphp='php -dxdebug.remote_enable=1 -dxdebug.remote_autostart=On -dxdebug.idekey=PHPSTORM' |
#!/usr/bin/env bash | |
if [ $# -eq 0 ] | |
then | |
self=$(basename $0) | |
echo "Usage: $self pattern directory" | |
exit 1 | |
fi | |
pattern=$1 | |
since="--since=2015-12-01" |
Install apache/php:
sudo apt-get install apache2 php5 php5-cli libapache2-mod-php5 php5-dev
Ensure this worked by visiting http://localhost/
. You should see It works!.
Install useful php modules:
sudo apt-get install php5-mcrypt php5-xdebug php5-curl php5-sqlite php5-xsl php-pear php-apc php5-intl
sudo pear install --alldeps PHP_CodeSniffer