最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

jquery - Cannot read JavaScript errors in Firebug console before page reloads - Stack Overflow

programmeradmin4浏览0评论

I'm debugging some JavaScript and I have a submit button that should run a jquery function to run a script via Ajax. When I click the button, an error is displayed in the Firebug console but I don't have time to read it before the form is submitted and thus the page is reloaded.

I'm debugging some JavaScript and I have a submit button that should run a jquery function to run a script via Ajax. When I click the button, an error is displayed in the Firebug console but I don't have time to read it before the form is submitted and thus the page is reloaded.

Share Improve this question edited May 31, 2012 at 2:59 Keyslinger asked Nov 8, 2011 at 19:50 KeyslingerKeyslinger 5,2747 gold badges44 silver badges52 bronze badges
Add a comment  | 

4 Answers 4

Reset to default 13

In version 1.8.3 (at least) you can click the "Persist" button to keep console information around after reload.

Use the Persist button to not clear the console

I would suggest you to simply use alert(err);.

Sometimes alerts just works better.

Go to browser console settings --> Check "Preserve Log"

发布评论

评论列表(0)

  1. 暂无评论