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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 09:15:32  来源:igfitidea点击:

Laravel framework plugin for Eclipse

eclipselaravel

提问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 代码。

http://wiki.eclipse.org/Debugging_using_XDebug

http://wiki.eclipse.org/Debugging_using_XDebug

回答by Peter Hon

I found the solution. Just include these two files in index.phpin 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();