How to config Tracy with IDE

alnux
Member | 139
+
0
-

hi, there is a tutorial how to integrate tracy with IDE in macOsX here but i dont know where to put that code or modify the $editor (example). could you help me with that.

regards

nightfish
Member | 516
+
+1
-

@alnux You did not mention which IDE you are using, so I'll demonstrate it with PHPStorm.

Just put Tracy\Debugger::$editor = 'phpstorm://open?file=%file&line=%line'; into your index.php or bootstrap.

If you based your project on nette/web-project, I would suggest putting it into www/index.php after require __DIR__ . '/../vendor/autoload.php'; – https://github.com/…ww/index.php#L6

alnux
Member | 139
+
0
-

nightfish wrote:

@alnux You did not mention which IDE you are using, so I'll demonstrate it with PHPStorm.

Just put Tracy\Debugger::$editor = 'phpstorm://open?file=%file&line=%line'; into your index.php or bootstrap.

If you based your project on nette/web-project, I would suggest putting it into www/index.php after require __DIR__ . '/../vendor/autoload.php'; – https://github.com/…ww/index.php#L6

Im using VS code

nightfish
Member | 516
+
+1
-

@alnux For VS Code the the line would be Tracy\Debugger::$editor = 'vscode://file/%file:%line';

alnux
Member | 139
+
0
-

nightfish wrote:

@alnux For VS Code the the line would be Tracy\Debugger::$editor = 'vscode://file/%file:%line';

thanks a lot