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 badges4 Answers
Reset to default 13In 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"