login community faq

Ok, I have a couple of script that I wrote that are performing very strange. At times, when the submit form is being processed, the script will hang and fail and return the user an error that they put invalid input even though they did not. Other times, the script will process all the way through without hanging and perform it's needed functions. So the script does work, but more times than none, I get the hanging instance and since the results are inconsistent, I don't know where to debug from if the script suddenly just works when it wants to.

asked Jul 08 '12 at 18:13

carla123's gravatar image

carla123
1

The way to debug this is to record the state of your script for each run, at multiple points during the script. It's entirely possible that you are triggering some form of race condition.

Try to get many samples of the internal state for both successful and unsuccessful runs. You should then be able to see a pattern of where the state fails, and then narrow down to which function call is introducing the inconsistency.

Hope that helps!

(Jul 08 '12 at 23:34) ryans ♦♦ ryans's gravatar image
Be the first one to answer this question!
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×146
×12

Asked: Jul 08 '12 at 18:13

Seen: 376 times

Last updated: Jul 16 '12 at 03:44

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited