adt/nette-tracy-component-locator

v1.0.1 2023-02-15 12:21 UTC

This package is auto-updated.

Last update: 2024-10-15 16:06:27 UTC


README

Install with the composer require --dev adt/nette-tracy-component-locator command.

Add this to your project, for example to BasePresenter::afterRender method:

if (class_exists('\ADT\ComponentLocator\ComponentLocator')) {
	\ADT\ComponentLocator\ComponentLocator::initializePanel($this);
}

Be sure to have something like this in your local neon:

tracy:
	editor: "phpstorm://open?file=%file&line=%line"
	#editor: 'editor://%action/?file=%file&line=%line&search=%search&replace=%replace'
	editorMapping:
		/var/www/html/: /your/real/path/to/project/

	bar:
		- \ADT\ComponentLocator\ComponentLocator

On Ubuntu the editor path should be like this: phpstorm://open?url=file://%file&line=%line.

Parameter editorMapping is needed only if the project runs in Docker.