include command debug for yii2
| Q | A |
|---|---|
| Is bugfix? | ❌ |
| New feature? | ✔️ allow debug when execute command |
| Breaks BC? | ❌ |
| Fixed issues |
That's great PR 👍. But there are issues:
- When trying to view saved console request data, "Request", it ends up with "Calling unknown method: yii\console\Request::getHeaders()".
- At the requests index page, it's not prepared to display console return statuses so the color for
0is red etc.0should be green. - At the requests index page titles could be adjusted to reflect commands i.e. "URL/command" instead of "URL" etc.
- At the toolbar, "route" title could be either adjusted or, better, removed since it's not "Route" anymore.
That's great PR 👍. But there are issues:
- When trying to view saved console request data, "Request", it ends up with "Calling unknown method: yii\console\Request::getHeaders()".
- At the requests index page, it's not prepared to display console return statuses so the color for
0is red etc.0should be green.- At the requests index page titles could be adjusted to reflect commands i.e. "URL/command" instead of "URL" etc.
- At the toolbar, "route" title could be either adjusted or, better, removed since it's not "Route" anymore.
Fixed!
Awesome. Would you please add a line for CHANGELOG?
added change log
Thanks!
Hi Samdark, i just curious that when you will publish the tag 2.1.21?
Well, nothing's holding me from doing it right now :)
Done.
great, thanks
@chicuongit913 This is a great PR! Thank you. Now we are even able to debug queue jobs without pain! Thanks
Is there some documentation about how to perform commands debugging?
@vadim-bulochnik just add the debug toolbar to the console.php configuration and you are done.
@vadim-bulochnik => https://github.com/yiisoft/yii2-app-basic/pull/277
@vadim-bulochnik just add the debug toolbar to the console.php configuration and you are done.
Yes, this is done. But how to use this debug toolbar in console? :) Sorry for stupid question.
Just as you normally would, via browser http://localhost/debug (or whatever setup you have) and you will see the console requests "flagged" as COMMAND (instead of GET, POST, etc.)
Just as you normally would, via browser
http://localhost/debug(or whatever setup you have) and you will see the console requests "flagged" asCOMMAND(instead of GET, POST, etc.)
Thanks, but I still can't see console requests. I have a feeling that for console need to setup another url for debug toolbar, because for example debug toolbar in backend application shows only logs from backend, and debug toolbar in frontend application - shows logs from frontend. Thus, I think should be a way to setup debug toolbar for console application, but not sure how.
Yes. For advanced template there are some adjustments needed so app writes its data to one of backend/frontend directories.
Yes. For advanced template there are some adjustments needed so app writes its data to one of backend/frontend directories.
Thanks for information! Will wait for improvements :)
Hi Alexander,
I just curious that do you have plan to release the version 2.1.21 for yii/debug, my team members need that feature for debugging.
Thanks
Vào CN, 4 thg 9, 2022 vào lúc 12:11 Alexander Makarov < @.***> đã viết:
Thanks!
— Reply to this email directly, view it on GitHub https://github.com/yiisoft/yii2-debug/pull/490#issuecomment-1236398537, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBGE47U567AI5SQHEKAFKDV4TX5TANCNFSM52D3OLJQ . You are receiving this because you authored the thread.Message ID: @.***>
@chicuongit913 it has been released already 2.1.21 September 06, 2022
@chicuongit913 it has been released already
2.1.21 September 06, 2022
Yes, but this version doesn't include commands debug support for advanced template.
It's easy to add yourself in console app bootstrap.
It's easy to add yourself in console app bootstrap.
I didn't manage to find corresponding configuration of Debug module for this.
It's easy to add yourself in console app bootstrap.
Do you mean this param?
/** * @var string the directory storing the debugger data files. This can be specified using a path alias. */ public $dataPath = '@runtime/debug';
Yes.