![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can debug our UNIX shell script? | psiva_arul | UNIX for Advanced & Expert Users | 3 | 4 Weeks Ago 07:31 AM |
| debug aix 4.3 | itik | AIX | 2 | 10-29-2007 07:56 AM |
| Debug an Awk Script | mboro | Shell Programming and Scripting | 1 | 10-01-2007 03:05 AM |
| how to debug | ramneek | High Level Programming | 1 | 09-19-2005 03:35 AM |
| disk space script debug - posted before | bryan | Shell Programming and Scripting | 3 | 04-28-2005 04:50 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
How to debug the awk script
Hi,
How can I debug an awk script? I know that set -x can be used to debug a script. But this will not suite for awk scripts. Can anyone help me? Thanks in advance, Chella |
| Forum Sponsor | ||
|
|
|
|||
|
awk does not come with a built in debug option.
I have come across but never used awkdb: AWK Debugger Usually I just print out various messages or values of fields to see what is going on. If you are using gawk, you could recompile the source with the debugging option turned on to print out the parse stack information as gawk executes - but this will probably give you far more information than you can use. |