Skip to content

The dump does not toggle when $showBar=false #606

Description

@SlavaAurim

Version: 2.10.10

Bug Description

When I enable Debugger and disable bar - the dumpe() functiuon does not render JS for toggling dump-branches

Steps To Reproduce

use \Tracy\Debugger;
Debugger::enable(Debugger::Development);
Debugger::$showBar = false;
dumpe($_SERVER);

Expected Behavior

dump() && dumpe() must render JS scripts

Possible Solution

I suggest this fix, which will solve the problem:

  • in file: .../src/Tracy/Dumper/Dumper.php:170
  • instead of code: if (!Debugger::isEnabled())
  • make a code like this: if (!Debugger::isEnabled() || !Debugger::$showBar)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions