On 12/29/20 4:37 AM, David Santiago wrote:

Hi!

I need some help in debugging my script. Sometimes it hangs and i don't know why.

Hi David,

I do not know if it will help you, but in my longer
programs I have found that "say" will print out the
prior valuies of things and generally drove me nuts.
So I switched to print and the problem was solved
and my debugging lines told me the right stuff.

Do you what lines you are hanging at?

When I hand and don't know where, I will pepper my
program with

   print "1\n";
   print "2\n";
   ...

and so on and so forth so I can find where I am hanging.
And so I can find them later, I give them no indents.

I hang a lot on YUGE thousand character lines from
web sites when doing a regex on them.  They are pains
in the neck.

HTH,
-T


Reply via email to