nette / tracy

😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.
https://tracy.nette.org
Other
1.76k stars 218 forks source link

Debugger::barDump() can be temporarily disabled/enabled #555

Open forgie1 opened 1 year ago

forgie1 commented 1 year ago

To prevent overcrowded dump, barDump can be temporarily disabled/enabled on demand.

eg:


function one()
{
    ...
    \Tracy\BarDump();
    ...
}

\Tracy\Debugger::$barDumpOn = false;
foreach ($many as $row) {
    one();
}

\Tracy\Debugger::$barDumpOn = true;
one(); // only this needs to be barDumped