feat: debugbar backtrace (#360)

* feat: debugbar backtrace

* chore(copilot): cleanup stmt reference

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: ignoring debug namespace

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Gabriel Pedro
2026-04-24 15:47:07 -04:00
committed by GitHub
parent 7851e337eb
commit 04d630d765
3 changed files with 80 additions and 2 deletions

View File

@@ -372,8 +372,8 @@ class POT
global $debugBar;
if (isset($debugBar)) {
$this->db = new DebugBar\DataCollector\PDO\TraceablePDO(new OTS_DB_MySQL($params));
$debugBar->addCollector(new DebugBar\DataCollector\PDO\PDOCollector($this->db));
$this->db = new \MyAAC\Debug\TraceablePDOWithBacktrace(new OTS_DB_MySQL($params));
$debugBar->addCollector(new \MyAAC\Debug\PDOCollectorWithBacktrace($this->db));
}
else {
$this->db = new OTS_DB_MySQL($params);