Skip to content

Commit

Permalink
CTP-4472 mod_assign with debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
leonstr committed Mar 10, 2025
1 parent 73c7844 commit ad9908b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mod/assign/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2357,6 +2357,16 @@ public function list_participants($currentgroup, $idsonly, $tablesort = false) {
$additionalfilters
ORDER BY $orderby";

$records = $DB->get_records_sql("EXPLAIN $sql", $params);
foreach ($records as $record) {
echo "<!--\n" . print_r($record, true) . "\n-->\n";
}

$records = $DB->get_records_sql("EXPLAIN ANALYZE $sql", $params);
foreach ($records as $record) {
echo "<!--\n" . print_r($record, true) . "\n-->\n";
}

$users = $DB->get_records_sql($sql, $params);

$cm = $this->get_course_module();
Expand Down

0 comments on commit ad9908b

Please sign in to comment.