Skip to content

Commit 80038fc

Browse files
JCombeeJeroenBoersma
authored andcommitted
Replaced the configurability to a seperate command so you are deliberatly starting a session with xdebug, this way you are contious that you are using xdebug
1 parent 574cfb1 commit 80038fc

File tree

4 files changed

+7
-17
lines changed

4 files changed

+7
-17
lines changed

bin/dev_command/console

100644100755
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
local xdebugOutfile=${DEV_WORKPATH}/conf/xdebug;
21

32
dc yml_local;
43
dc service php;
@@ -13,12 +12,6 @@ if [ $# -lt 1 ]; then
1312
dc cmd bash -l;
1413
fi
1514

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-
2215
dc run "$@";
2316
return $?;
2417

bin/dev_command/xdebug-console

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
dc opt -e XDEBUG_MODE=debug
3+
dc opt -e XDEBUG_SESSION=1
4+
dc opt -e PHP_IDE_CONFIG="serverName=${1}"
5+
shift;
6+
7+
. ./console "$@"

bin/dev_command/xdebug-disable

Lines changed: 0 additions & 5 deletions
This file was deleted.

bin/dev_command/xdebug-enable

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)