We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 096ac7a commit bdbf5a4Copy full SHA for bdbf5a4
README.md
@@ -22,3 +22,5 @@ Start containers by running `dev up -v` in project working directory. If project
22
- PHPUnit: `dev unit`
23
- php cli: `dev php`
24
- worker start (run.php): `dev worker`
25
+- Xdebug default enable: `dev xdebug`
26
+- Xdebug cli one shot: `dev debug script.php`
bin/dev-stack.sh
@@ -218,6 +218,12 @@ if [ "$1" ] && [ "$1" == "down" ]; then
218
compose_down
219
exit 0
220
fi
221
+if [ "$1" ] && [ "$1" == "xdebug" ]; then
222
+ echo "(Re)starting containers with xdebug enabled"
223
+ XDEBUG_MODE=debug
224
+ compose_up > /dev/null
225
+ exit 0
226
+fi
227
if [ "$1" ] && [ "$1" == "up" ]; then
228
if [ "$2" ] && [ "$2" == "-v" ]; then
229
compose_up
0 commit comments