-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from ho-nl/feature/[email protected]
Feature/[email protected]
- Loading branch information
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=$! | ||
|
@@ -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 | ||
|
@@ -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" | ||
|
||
|