My application contains an error that causes the script to work indefinitely. When I make the script stop, all jQuery user interface elements do not respond to my actions, nor do applications respond to keystrokes.
If I decide to open Firebug, it requires a page reload, and all the current state of the application is lost.
The fact is that I can not reproduce this error, and it drove me a little crazy. How to find and fix such a spotty mistake?
UPDATE. Thank you all for your advice. But the problem is that I cannot understand when the error occurs, and therefore cannot reproduce it. That is why standard procedures will not work in my case.
I looked at all the calls to the loop and recursive functions, but haven't figured out the problem yet.
Publishing code is not a good idea. The list of codes is huge and rather complicated (game).
POSSIBLE SOLUTION. . I will follow one of the posted tips and try to combine all the functions that might cause the problem. Hope this helps.
source share