[英]Howto debug the “something went wrong” error with javascript/ajax calls
i have some scripts which give me the alert "Something went wrong". 我有一些脚本可以提醒我“出了点问题”。 I tried firebug, i tried logging everything (i'm on a django environement) but there's no trace of any error message. 我尝试过萤火虫,我尝试记录所有内容(我在django环境中),但是没有任何错误消息的痕迹。 So, instead of posting the code (which actually works, just sometimes doesn't...), i'd like to ask what's the better way to debug that error, or if there's any tool similar to firebug that can help. 因此,我想问的是,调试该错误的更好方法是什么,或者是否有类似Firebug的工具可以帮助您,而不是发布代码(实际上是行得通的,有时有时是不行的)。
Apparently, searching on google, doesn't help this time. 显然,这次在Google上搜索无济于事。 Also: where does that error come from? 另外:该错误从何而来? Where can i find more info about? 在哪里可以找到更多信息? I think it's somehow related to the browser (i'm on Firefox, but i get the same error on Chrome) but i'm not sure. 我认为这与浏览器有关(我在Firefox上,但是在Chrome上却出现相同的错误),但我不确定。
Thanks all in advance and i hope this post isn't off-topic 提前谢谢大家,我希望这篇文章不会离题
S. S.
Check the 'Network' panel in Google Chrome or the 'Net' panel in Firebug. 检查Google Chrome中的“网络”面板或Firebug中的“网络”面板。 You can see all XHTTPRequests there and see the requests and responses, the response probably contains a 500 status code and a description. 您可以在那里看到所有XHTTPRequests并看到请求和响应,响应可能包含500状态代码和描述。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.