You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
611 B

  1. #!/bin/bash
  2. # Not working on windows symlinks
  3. DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
  4. PHP_VERSION=$1 # Without dot
  5. WITH_PROFILER=$2
  6. if [[ -z "${PHP_VERSION}" ]]; then PHP_VERSION=81; fi
  7. POSSIBLE_XDEBUG_VERSION=xdebug2
  8. echo "Choice PHP_VERSION: $PHP_VERSION"
  9. if [[ $PHP_VERSION -ge 81 ]]; then
  10. POSSIBLE_XDEBUG_VERSION=xdebug3
  11. fi
  12. echo "Choice POSSIBLE_XDEBUG_VERSION: $POSSIBLE_XDEBUG_VERSION"
  13. echo
  14. ${DIR}/dockerfiles/php-fpm/${POSSIBLE_XDEBUG_VERSION}/xdebug.sh start ${PHP_VERSION} ${WITH_PROFILER}
  15. echo
  16. ${DIR}/dockerfiles/workspace/xdebug.sh start ${PHP_VERSION} ${WITH_PROFILER}
  17. echo