Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion php/includes/config-after.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,5 +302,6 @@

// Tell Totara where composer is
if (!defined('TOTARA_COMPOSER')) {
define('TOTARA_COMPOSER', '/usr/bin/composer');
// Disable xdebug when running composer so breakpoints don't interfere with composer operations
define('TOTARA_COMPOSER', 'XDEBUG_MODE=off /usr/bin/composer');
}
3 changes: 3 additions & 0 deletions shell/util-aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ totara_version() {
php -n -r "$php_code echo \$version;"
fi
}

# Run composer but disable xdebug for the duration of the command
alias composer='XDEBUG_MODE=off composer'