Re: Hangup

new topic     » goto parent     » topic index » view thread      » older message » newer message

--=====================_898159664==_

Attached is the debugging/feedback include file I use.  It's pretty basic,
but I've found it immensly usefull in zeroing in on a problem.  I prefer
the error file method, as it lets my program run unhindered.  I'll usually
saturate the suspect code with tag()s returning consecutive numbers(in
quotes) and check the error file after to see where it broke down.  I'm
often suprised by where it stops.
        Two functions are included: flag() and tag()


flag(s,o)

puts()'s the s as script and prints the o as a bracketed object to
flag.err, both in one line seperated by a " -- "

Used for feedback.



tag(s)

puts()'s s as script to flag.err

used mainly as a marker of progress



a typical flag.err might look like:

1
2
3
4
before
after
3
4
before


--=====================_898159664==_

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu