debug im tracy is not working

thcom
Backer | 94
+
0
-

hi i have problems with debug in tracy

i create new project with

composer create-project nette/web-project nette-blog

i enable tracy in bootstrap.php

		$configurator->setDebugMode(TRUE); // enable for your remote IP

i open website in chrome and console says

https://imgur.com/a/u4GrCEz

how can i fix it

Marek Bartoš
Nette Blogger | 1261
+
0
-

What browser+version are you using? It is probably outdated and does not support newer js syntax

thcom
Backer | 94
+
0
-

Marek Bartoš wrote:

What browser+version are you using? It is probably outdated and does not support newer js syntax

my chrome is actualised

  • Chrome je aktuální Verze 112.0.5615.138 (Oficiální sestavení) (64bitový)

i try anonymous windows to avoid plugins interactions

same error

Nicolas_K
Member | 25
+
0
-

Bootstrap.php:

This
$configurator->enableTracy($appDir . '/log');
is not commented out?

David Grudl
Nette Core | 8218
+
0
-

More interesting is the second request. What's coming back?

https://imgur.com/a/prk2SsY

Michalek
Member | 211
+
0
-

At the end of JS is HTTP header error, i think that's the problem (visible web url on first image)

https://imgur.com/a/GgNhTa9

thcom
Backer | 94
+
0
-

Nicolas_K wrote:

Bootstrap.php:

This
$configurator->enableTracy($appDir . '/log');
is not commented out?

yes

		$configurator->setDebugMode(TRUE); // enable for your remote IP
		$configurator->enableTracy($appDir . '/log');

thcom
Backer | 94
+
0
-

Michalek wrote:

At the end of JS is HTTP header error, i think that's the problem (visible web url on first image)

https://imgur.com/a/GgNhTa9

what can it cause ?

its clean instalation from composer via
composer create-project nette/web-project bforms

now i add only this code:

function renderDefault()	{
	dump($this);
}

i try on chrome anonymous windows, edge opera same

https://imgur.com/a/1PxSNKX

it s not possible to click and expand debug output

nightfish
Member | 517
+
0
-

The main issue is that the request which loads Tracy JavaScript assets does not get terminated after sending JS output. index.php then proceeds to create a DI container, which in turn tries to send HTTP headers, ultimately failing.

I do not see anything in the code of Tracy\Debugger or Tracy\DeferredContent that would explain such behavior.