Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to run TAWK Debugger

Status
Not open for further replies.

alihammadbaig

Programmer
Mar 3, 2010
3
US
I am totally new to AWK and TAWK .. I have studied both a little .. I have managed to compile a few .awk files with the TAWK compiler. But as per the official TAWK source( TAWK has a debugger too, but I have no idea how to debug the awk files with the TAWK debugger.

I would like some serious help on that.

Thanks and Regards
 
Is there any particular reason why you need to compile your awk scripts? I think it's quite unlikely that you'll find many people who actually own and use this software still, since it was apparently discontinued in 1997.

I can't imagine a debugger being necessary for awk scripts unless they are extremely complex.

Annihilannic.
 
Yes, that's the thing, the script is very complex and is ment for huge processing. The script consists of more than 3000 lines of code and the logic is complex. I read about the debugger on the official site and was wondering if someone could help me out in running the script in debug mode.

 
I do pretty much all my debugging just by adding appropriate if (DEBUG) print "function so-and-so called, parameters: ", a, b, c statements in appropriate places. It may be a bit of work initially but least in future you can turn it on and off easily by just setting DEBUG=0 or DEBUG=1.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top