tracy icon indicating copy to clipboard operation
tracy copied to clipboard

Show fullpage source code directly in Tracy

Open janbarasek opened this issue 4 years ago • 0 comments

In Symfony Profiler, when you click on a file name, there is a way to view the entire file, including the highlighted line, directly in the browser to easily understand the problem that occurred. This feature makes particular sense in production use where there is no easy way to get to the contents of the file, but debug mode is active.

Implementation idea

For file paths in the callstack, there will be a button that displays the entire contents of the file on a full page.

Possible technical implementation

When a URL (for example) /?tracyProxy&file=<path>&line=34 is called while debug mode is active, the file contents will be displayed on a full page.

Symfony example:

Snímek obrazovky 2021-10-06 v 10 14 11

Thanks.

janbarasek avatar Oct 06 '21 08:10 janbarasek