Skip to content

no ajax support after upgrade from 2.2.x to 3.2.x #975

@voku

Description

I upgraded from 2.2.x to 3.2.x and everything worked but the ajax debugging throws an js error: phpdebugbar was not defined, so I saw that we now scope the JavascriptRenderer.php is writing to window.PhpDebugBar.instance = phpdebugbar; but it's not re-used. So if we use JavascriptRenderer->render(false) we need to get the instance from window.PhpDebugBar.instance, or?

Something like

    window.PhpDebugBar = window.PhpDebugBar || {};
    if (typeof {$this->getVariableName()} === 'undefined' && window.PhpDebugBar.instance) {
        var {$this->getVariableName()} = window.PhpDebugBar.instance;
    }

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