Laravel Artisan 命令显示详细的错误消息
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34881735/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Laravel Artisan Command show verbose error messages
提问by Iannazzi
Typically I run a laravel artisan command like
通常我会运行一个 laravel artisan 命令,比如
php artisan Command -v
and if there is an error I can find the file/line#, using the -v flag.
如果出现错误,我可以使用 -v 标志找到文件/行#。
For some reason the -v is not working on one of my commands. I am therefore receiving a pretty limited error message:
出于某种原因, -v 不适用于我的命令之一。因此,我收到一条非常有限的错误消息:
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to a member function getArgument() on null
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to a member function getArgument() on null
This command happens to be calling some code that is extending someone else's code.
这个命令恰好调用了一些扩展其他人代码的代码。
Any ideas how to get the file/line output in the error message?
任何想法如何在错误消息中获取文件/行输出?
回答by Artistan
Old, but relates to a questions / answer I had...
旧的,但与我遇到的问题/答案有关...
...verbosity levels...
...详细程度...
// -v|vv|vvv Increase the verbosity of messages:
// 1 for normal output, 2 for more verbose output and 3 for debug
php artisan --verbose
Good reference here... http://cheats.jesse-obrien.ca/
这里有很好的参考... http://cheats.jesse-obrien.ca/