Eclipse 的 Laravel 框架插件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22656582/
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 framework plugin for Eclipse
提问by Peter Hon
Sorry to open this post again. I want to debug Laravel code in Eclipse. Does Laravel has plugin for Eclipse? If so, how can I do that?
很抱歉再次打开此帖子。我想在 Eclipse 中调试 Laravel 代码。Laravel 有 Eclipse 插件吗?如果是这样,我该怎么做?
Thanks
谢谢
回答by user1669496
What you are probably looking for is XDebug, which debugs any PHP code.
您可能正在寻找的是 XDebug,它可以调试任何 PHP 代码。
回答by Peter Hon
I found the solution. Just include these two files in index.php
in the Laravel installation directory:
我找到了解决方案。只需index.php
在 Laravel 安装目录中包含这两个文件:
require __DIR__.'/../bootstrap/autoload.php';
$app = require_once __DIR__.'/../bootstrap/start.php';
then the app can run.
然后应用程序可以运行。
$app->run();