tracy
tracy copied to clipboard
Show fullpage source code directly in Tracy
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:

Thanks.