Skip to content

Commit

Permalink
Merge pull request #111 from ho-nl/feature/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
hnsr authored Feb 14, 2023
2 parents 17768e5 + 79ded94 commit dec537f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ this time it will not accept connections.
installed + PHPStorm is listening to connections.
- Cli: Use
`XDEBUG_CONFIG="" php -c /usr/local/etc/php/7.4/php-xdebug.ini bin/magento`
- Cli `[email protected]`: Use
`XDEBUG_SESSION=1 php -c /usr/local/etc/php/8.1/php-xdebug.ini bin/magento`
- Tests: Create a local interpreter, the PHP version you're looking for should
be suggested and add the `🐞 Xdebug path:` to enable xdebug (you should have
seen that with the installation). The path is something like
Expand Down
9 changes: 7 additions & 2 deletions install.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# If you're adding a new version, you need an additional XDEBUG version, not retrieved dynamically.
PHPS='[email protected] [email protected] [email protected]'
PHPS='[email protected] [email protected] [email protected] [email protected]'

spinner() {
local pid=$!
Expand Down Expand Up @@ -94,7 +94,11 @@ install_php() {
CURRENT_DIR=$PWD
XDEBUG_DIR="$HOME/.xdebug$PHP"
rm -rf $XDEBUG_DIR
git clone -b 2.9.6 git://github.com/xdebug/xdebug.git $XDEBUG_DIR 2>/dev/null &

XDEBUG_VERSION='2.9.6'
[ $PHPVERSION == '8.1' ] && XDEBUG_VERSION='3.1.6'

git clone -b $XDEBUG_VERSION [email protected]:xdebug/xdebug.git $XDEBUG_DIR 2>/dev/null &
spinner

cd $XDEBUG_DIR
Expand Down Expand Up @@ -124,6 +128,7 @@ install_php() {
[ $PHPVERSION = '7.2' ] && XDEBUG='20170718'
[ $PHPVERSION = '7.3' ] && XDEBUG='20180731'
[ $PHPVERSION = '7.4' ] && XDEBUG='20190902'
[ $PHPVERSION = '8.1' ] && XDEBUG='20210902'

echo "[$PHP] 🐞 Xdebug path: $PHPDIR/pecl/$XDEBUG/xdebug.so"

Expand Down

0 comments on commit dec537f

Please sign in to comment.