如何在HHVM上向浏览器输出/显示致命错误

时间:2022-03-18 19:23:57

After a day searching for solutions i hope to find an answer here.

经过一天的寻找,我希望在这里找到答案。

I'm running Laravel 4.2 on Homestead 2.0 (Vagrant) and i'm trying to get a simple parse error to output to my browser, but instead i keep getting a white screen.

我在Homestead 2.0 (Vagrant)上运行Laravel 4.2,并试图将一个简单的解析错误输出到浏览器中,但我始终得到一个白色的屏幕。

I can find the error by running 'hhvm index.php' on the Vagrant machine, but that's not what i'm looking for, i would like to output it in my browser.

我可以通过运行“hhvm索引”找到错误。php在这台奇怪的机器上,但这不是我要找的,我想在我的浏览器中输出它。

Are there any options to make this happen?

有什么办法可以实现这一点吗?

Tried using hhvm: false in my Homestead.yaml but this seems to be ignored? How is it even possible to run Homestead without hhvm? Would solve my problem to -_-.

尝试在我的宅基地使用hhvm: false。但是这似乎被忽略了?没有hhvm怎么可能运行Homestead呢?会解决我的问题到-_。

Found hhvm-fastcgi + nginx how to make it display fatal errors in the browser one but without any answers and from facebook

找到hhvm-fastcgi + nginx如何让它在浏览器1中显示致命错误,但没有任何答案,也没有facebook的回复

These are options you put in /etc/hhvm/config.hdf. We are in the process of killing the .hdf file in favor of a standard php.ini

这些是你放入/etc/hhvm/config.hdf中的选项。我们正在删除.hdf文件以使用标准的php.ini文件

Tried Setting an set_error_handler but doesn't seem to be working either

尝试设置一个set_error_handler,但似乎也没有工作

Any other options?

其他选项吗?

1 个解决方案

#1


-2  

Try going into config > app.php and

尝试进入配置> app.php和

//change this
debug' => false,

// to this
debug' => true,

You're running it locally, right? Have you been able to read Laravel errors before?

你是在本地运行,对吧?你以前读过Laravel的错误吗?

Good luck!

好运!

#1


-2  

Try going into config > app.php and

尝试进入配置> app.php和

//change this
debug' => false,

// to this
debug' => true,

You're running it locally, right? Have you been able to read Laravel errors before?

你是在本地运行,对吧?你以前读过Laravel的错误吗?

Good luck!

好运!