Files
Testing/tus-php/docker/base/bin/xdebug.sh
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

37 lines
584 B
Bash

#!/bin/sh
set -e
XDEBUG_CONFIG=/usr/local/etc/php/conf.d/00_xdebug
enable()
{
if [ -f ${XDEBUG_CONFIG}.disable ]; then
mv ${XDEBUG_CONFIG}.disable ${XDEBUG_CONFIG}.ini;
echo "Xdebug enabled";
fi
}
disable()
{
if [ -f ${XDEBUG_CONFIG}.ini ]; then
mv ${XDEBUG_CONFIG}.ini ${XDEBUG_CONFIG}.disable;
echo "Xdebug disabled";
fi
}
case "$1" in
(enable)
enable
exit 0
;;
(disable)
disable
exit 0
;;
(*)
echo "Usage: $0 {enable|disable}"
exit 2
;;
esac