Best way to detect infinite loops.
#1

There is a problem in my script which is eaiser because a timer is called million times per second or there is an infinite loop ?

Is there is a plugin that can log each function call ?.
Reply
#2

I do have a way just cause all scripts i made are mine and i do know what's goin' on inside.
If it's your case just search for "while" or "for", well even if it's not.
Those are mainly all the loops you might find, then check them.

As a side note, you might also find "foreach" loops if you're using it's include so do search for that too.
If you're suspicious about a loop post it here.
Reply
#3

Ok, I compiled it with debugging level 7 in YSI.
And the bug is in YSI when loading something using y_xml it loops infinity on the file... And as 4.0 is/was in beta.. Will try and compile it in YSI 3.1 and see how it goes.

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)