aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gawktexi.in
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-04-21 14:00:10 +0300
committerArnold D. Robbins <arnold@skeeve.com>2019-04-21 14:00:10 +0300
commitae4b75ecd4fd00af1504325857abe6883ab85a28 (patch)
tree42ede059182429084566eb341a4769628f9e5d3a /doc/gawktexi.in
parentc67cff427d7a0628786cac067f3d55e53892e5c8 (diff)
downloadegawk-ae4b75ecd4fd00af1504325857abe6883ab85a28.tar.gz
egawk-ae4b75ecd4fd00af1504325857abe6883ab85a28.tar.bz2
egawk-ae4b75ecd4fd00af1504325857abe6883ab85a28.zip
Doc on workaround for debugger -f limitation.
Diffstat (limited to 'doc/gawktexi.in')
-rw-r--r--doc/gawktexi.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index 14e20b7a..7826a1bc 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -30720,6 +30720,18 @@ executing, short programs.
@item
The @command{gawk} debugger only accepts source code supplied with the @option{-f} option.
+If you have a shell script that provides an @command{awk} program as a command
+line parameter, and you need to use the debugger, you can write the script
+to a temporary file, and use that as the program, with the @option{-f} option. This
+might look like this:
+
+@example
+cat << \EOF > /tmp/script.$$
+@dots{} @ii{Your program here}
+EOF
+gawk -D -f /tmp/script.$$
+rm /tmp/script.$$
+@end example
@end itemize
@ignore
@@ -44138,3 +44150,5 @@ Add a section explaining recursion from ground zero. Probably
easiest to do it with factorial as the example. Explain that
recursion needs a stopping condition. Thanks to
Bill Duncan <bduncan@beachnet.org> for the suggestion.
+
+4/2109: Go through and check @print{} vs. @error{} in examples