WebFaction
Community site: login 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 08 Jul '12, 18:13

carla123
111
accept rate: 0%

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!

(08 Jul '12, 23:34) ryans ♦♦
Be the first one to answer this question!
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×13

question asked: 08 Jul '12, 18:13

question was seen: 8,043 times

last updated: 16 Jul '12, 03:44

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM