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;
}