如何调试Laravel 5个项目? [英] How to debug Laravel 5 projects?

查看:323
本文介绍了如何调试Laravel 5个项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑命令

php artisan optimize

和在app.php文件中更改调试设置为

and changed debug settings in app.php file to be

'debug' => 'true',

和添加每个人有过'存储'文件夹的完全访问权限。我不知道我能做些什么,让调试工作,在我的Laravel 5项目。
我坚持了哎呦,看起来像出事了的消息。
任何想法??

and added 'everyone' to have full access over 'storage' folder. I don't know what else I can do to let debugger work in my Laravel 5 project. I'm stuck with 'Whoops, looks like something went wrong' message. Any Ideas??

推荐答案

您收到的错误是一般错误,可能服务器端配置。如果没有您的设置的任何信息将是pretty很难确定您的问题是什么。基于你的问题和意见,别人的回答,我有几件事情你。

The error you are receiving is a general error, likely server-side configuration. Without any information on your setup it will be pretty hard to determine what your issue is. Based upon your question and comments to others responses I have a couple of things for you.


  1. 您说:我不知道我能做些什么让我的Laravel 5项目调试工作。 Laravel 5没有本机调试的更多,我想象就是为什么你的页面只是显示哎呦,看起来像出事了。你的声明将表明你有一个调试器,所以这是你想使用,或者是不正确的语句?

  1. You stated "I don't know what else I can do to let debugger work in my Laravel 5 project". Laravel 5 doesn't have a native debugger any more which I imagine is why your page just shows "Whoops, looks like something went wrong". Your statement would indicate that you have a debugger, so which are you trying to use, or was that statement incorrect?

您说,您更改调试设置app.php文件。有没有为什么你app.php改变了这个理由吗?默认情况下,调试设置为'调试'=> ENV('APP_DEBUG')这是在大多数情况下足够了。你应该在你的项目的根.ENV文件(如果你没有一个作曲家创建项目自动创建的,如果不是你需要复制到.env.example在.ENV你自己)。因为有指出APP_DEBUG = true的行.ENV文件将会为您启用调试。

You stated that you changed the debug settings the app.php file. Is there a reason why you changed this in app.php? The debug setting by default is 'debug' => env('APP_DEBUG') which is sufficient in most cases. You should have a .env file in the root of your project (created automatically if you did a composer create-project, if not you need to copy .env.example to .env on your own). The .env file will enable debug for you as there is a line that states APP_DEBUG=true.

杰西·舒特给了他上面的响应伟大的信息(我建议upvoting),包括一个链接到一个调试酒吧是与L5兼容。再次就表示您满意这意味着你实际上有一个你的错误堆栈。如果你满意,你就没有必要在这里贴,你会已经在你的错误的详细信息。如果你假设的filp /哎呦是15还是这就是你想要你就必须重新启用它是什么。按照在 http://mattstauffer.co/blog/bringing-whoops的说明-back到laravel-5

Jesse Schutt gave great information in his response above (which I recommend upvoting), including a link to a debug bar that is compatible with L5. Yet again you are stating that you are satisfied with your error stack which implies that you actually have one. If you were satisfied with it, you would have no need to have posted here as you would already have more information on your error. If you are assuming that the filp/whoops is in l5 still and that's what you want you'll have to re-enable it. Follow the instructions at http://mattstauffer.co/blog/bringing-whoops-back-to-laravel-5

这篇关于如何调试Laravel 5个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆