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::$keysToHide not functional #502

Closed wombatinua closed 3 years ago

wombatinua commented 3 years ago

Version: 2.8.6

Bug Description

Debugger::$keysToHide = ['foo'];

causes

Fatal error: Uncaught Error: Access to undeclared static property Tracy\Debugger::$keysToHide

mabar commented 3 years ago

BlueScreen::$keysToHide = ['foo'];

https://github.com/nette/tracy/blob/f3d2d6a1230a0a1a7b116c071ae4937e5e30101a/src/Tracy/BlueScreen/BlueScreen.php#L36

wombatinua commented 3 years ago

Could this problem be caused by my misconfiguration?

require_once('../library/vendor/tracy-2.8.6.phar'); use Tracy\Debugger; Debugger::$strictMode = true; Debugger::$keysToHide = ['foo']; Debugger::enable(Debugger::DEVELOPMENT);

mabar commented 3 years ago

$keysToHide property is in BlueScreen, not Debugger.

wombatinua commented 3 years ago

According to docs it is in Debugger or am I missing something?

Screenshot 2021-08-19 at 13 28 34

wombatinua commented 3 years ago

I am sorry. Documentation seems confusing on this point. Could you provide a working configuration example on this property?

dg commented 3 years ago

Fixed in 2.8.7