scripting - How to debug an AWK script -


What are the tips for debugging any ANK script?

To print back values ​​of the variable by using a print statement in your code / values ​​and Print on so much. If you are using, you can use the -w dump-variable [= file] option to dump the variable in a file for debugging.

In addition, the option -W Lint [= value] may be of interest see the documentation for more. Other versions of AWK, such as pgawk provides profiling.

sed / awk book on debugging for your reference.


Comments

Popular posts from this blog

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

.net - Self Tracking Entities (STE)'s and partial updates with EF4 and mVC2 -