-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] Activate the profiler in the commands #21141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The issue is that the Profiler is tied to profile a Request currently, and there is no Request in the CLI (unless you do CLI over HTTP of course). |
@stof is write when he says that the profiler is tied with HTTP requests. Rewriting the profiler would not help as anyway most panels needs a request. So, I'm closing this one as it would mean developing a new profiler for CLI applications. |
hi @fabian, i think this would be a great addition to the symfony dx (i.e. profiled http-client requests and doctrine queries issued by a command would be of immense help in a development process) any chance you've changed your stance on this? as per comment: #39114 (comment) these issues seem related:
thanks |
Hi, The profiler and web toolbar are really valuable tools, but the lack of cli/command/messenger support makes debugging much harder in some scenarios. For example debugging failing functional tests (running through a cli tool/command like behat or phpunit) is quite complicated. I have created 2 bundles that help bring the profiler/toolbar experience to the terminal:
Native support would be really nice :) |
@adrienbrault amazing work, thanks for sharing |
Would it be interesting to be able to activate the profiler in the commands? Maybe something like this:
The text was updated successfully, but these errors were encountered: