[英]javascript related warnings/errors on apache
I have a small piece of javascript code that fails silently - a typo in a variable name. 我有一小段JavaScript代码会自动失败-变量名称中的错字。 It took me quite a long time to debug it manually.
我花了很长时间手动调试它。
It is part of a html web page, so I expected it (perhaps naively) to generate some message that would be reported in my apache error_log but it didn't. 它是html网页的一部分,因此我希望它(也许天真)会生成一些消息,该消息将在我的Apache error_log中报告,但事实并非如此。
How do you go about recording errors/warnings on your web servers that are related to js? 您如何在与js相关的Web服务器上记录错误/警告?
Is there a way to make it appear in your apache error_log? 有没有办法让它出现在您的Apache error_log中?
As JavaScript is client side it will not show up in your Apache error_log. 由于JavaScript是客户端,因此不会在您的Apache error_log中显示。
What I'd suggest doing if you really want to see an "error log" related to your js, search out one of the many provided js error loggers or make your own if your feeling ambitious. 如果您真的想查看与js相关的“错误日志”,或者建议您提供许多js错误记录器之一,或者如果您有野心,请自己动手做,我建议您做些什么。
You can find a TON by doing a simple google search. 您可以通过简单的Google搜索来找到吨。
Good Luck! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.