We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01ec6c5 commit 574cfb1Copy full SHA for 574cfb1
bin/dev_command/console
@@ -1,3 +1,4 @@
1
+local xdebugOutfile=${DEV_WORKPATH}/conf/xdebug;
2
3
dc yml_local;
4
dc service php;
@@ -12,6 +13,12 @@ if [ $# -lt 1 ]; then
12
13
dc cmd bash -l;
14
fi
15
16
+if test -f "${xdebugOutfile}"; then
17
+ dc opt -e XDEBUG_MODE=debug
18
+ dc opt -e XDEBUG_SESSION=1
19
+ dc opt -e PHP_IDE_CONFIG="serverName=`cat $xdebugOutfile`"
20
+fi
21
+
22
dc run "$@";
23
return $?;
24
bin/dev_command/xdebug-disable
@@ -0,0 +1,5 @@
+local outfile=${DEV_WORKPATH}/conf/xdebug;
+cd ${DEV_PATH};
+rm ${outfile};
5
+return 0;
bin/dev_command/xdebug-enable
+echo $1 > ${outfile};
0 commit comments