As we saw above, the first thing you probably want to do in a debugging session is to get your breakpoints set up, since otherwise your program will just run as if it was not under the debugger. The commands for controlling breakpoints are:
break
[[filename:
]n | function] ["
expression"
]b
[[filename:
]n | function] ["
expression"
]:
nEach breakpoint is assigned a number which can be used to delete it from
the breakpoint list using the delete
command.
With a breakpoint, you may also supply a condition. This is an awk expression (enclosed in double quotes) that dgawk evaluates whenever the breakpoint is reached. If the condition is true, then dgawk stops execution and prompts for a command. Otherwise, dgawk continues executing the program.
clear
[[filename:
]n | function]:
ncondition
n "
expression"
delete
[n1 n2 ...] [n–m]d
[n1 n2 ...] [n–m]disable
[n1 n2 ... | n–m]enable
[del
| once
] [n1 n2 ...] [n–m]e
[del
| once
] [n1 n2 ...] [n–m]del
once
ignore
n counttbreak
[[filename:
]n | function]t
[[filename:
]n | function]break
.