dongyongmin5711 2016-06-22 00:24 采纳率: 100%
浏览 24

在localhost中显示GAE中的error_log输出,就像在生产中一样

When I publish my Google App Engine app to run in production, if I've made an error in my PHP and I get an error_log() about an undefined variable or something, that code gets spewed directly to the browser and it breaks my HTML, breaks my JavaScript, etc.

However, when I run the app on localhost, the warning error_log()s are showing in the browser, and they aren't showing my GAE logs either! If I explicitly code an error_log(), that will show up in the GAE logs, but the PHP warnings aren't showing up.

So, I think my code is working fine, but when I publish then everything breaks and I'm in hot water.

How can I make my local GAE spew those warnings to the browser so I can get the same behavior that I'm seeing in production?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
    • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
    • ¥15 划分vlan后,链路不通了?
    • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
    • ¥15 个人网站被恶意大量访问,怎么办
    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 Centos / PETGEM
    • ¥15 划分vlan后不通了
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)