Skip to content

Commit fccfad0

Browse files
committed
Automatically close RequestInfo panel when clicking on Edit page icon. Add debugInfo support to bdb() and bdl() methods. Scan nested repeaters for images in RequestInfo panel.
1 parent 93fe130 commit fccfad0

File tree

6 files changed

+35
-30
lines changed

6 files changed

+35
-30
lines changed

TracyDebugger.module

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TracyDebugger extends WireData implements Module, ConfigurableModule {
3232
'summary' => __('Tracy debugger from Nette with several PW specific custom tools.', __FILE__),
3333
'author' => 'Adrian Jones',
3434
'href' => 'https://processwire.com/talk/topic/12208-tracy-debugger/',
35-
'version' => '4.10.17',
35+
'version' => '4.10.18',
3636
'autoload' => true,
3737
'singular' => true,
3838
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',
@@ -916,6 +916,10 @@ class TracyDebugger extends WireData implements Module, ConfigurableModule {
916916
localStorage.removeItem("tracy-debug-panel-ProcesswireInfoPanel");
917917
localStorage.removeItem("remove-tracy-debug-panel-ProcesswireInfoPanel")
918918
}
919+
if(localStorage.getItem("remove-tracy-debug-panel-RequestInfoPanel")) {
920+
localStorage.removeItem("tracy-debug-panel-RequestInfoPanel");
921+
localStorage.removeItem("remove-tracy-debug-panel-RequestInfoPanel")
922+
}
919923
';
920924

921925
if(is_null($this->wire('session')->tracyDumpsRecorderItems)) {

includes/TD.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public static function barDumpLive($var, $title = NULL) {
4040
$options[Dumper::DEPTH] = 99;
4141
$options[Dumper::TRUNCATE] = 999999;
4242
$options[Dumper::LOCATION] = Debugger::$showLocation;
43+
$options[Dumper::DEBUGINFO] = isset($options['debugInfo']) ? $options['debugInfo'] : \TracyDebugger::getDataValue('debugInfo');
4344
$options[Dumper::LIVE] = true;
4445
static::dumpToBar($var, $title, $options);
4546
}
@@ -53,6 +54,7 @@ public static function barDumpBig($var, $title = NULL) {
5354
$options[Dumper::DEPTH] = 6;
5455
$options[Dumper::TRUNCATE] = 999;
5556
$options[Dumper::LOCATION] = Debugger::$showLocation;
57+
$options[Dumper::DEBUGINFO] = isset($options['debugInfo']) ? $options['debugInfo'] : \TracyDebugger::getDataValue('debugInfo');
5658
static::dumpToBar($var, $title, $options);
5759
}
5860

panels/ConsolePanel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getPanel() {
3737
$pwRoot = $this->wire('config')->urls->root;
3838
$tracyModuleUrl = $this->wire("config")->urls->TracyDebugger;
3939
$inAdmin = \TracyDebugger::$inAdmin;
40-
$consoleContainerAdjustment = $inAdmin ? 130 : 160;
40+
$consoleContainerAdjustment = $inAdmin ? 130 : 170;
4141

4242
// store various $input properties so they are available to the console
4343
$this->wire('session')->tracyPostData = $this->wire('input')->post->getArray();

0 commit comments

Comments
 (0)