You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The debugger is not implemented: --debug currently prints a bytecode table.
That code reads the positional program text, so with -f it panics. With -D -f, the source spans are also sliced out of the wrong text.
Reproduction
Rust (incorrect)
$ echo'BEGIN { x = 1 }'> d.awk
$ ./target/release/awk --debug -f d.awk </dev/null
thread 'main' panicked at src/main.rs:86:30:
called `Option::unwrap()` on a `None` value# Exit code: 2
-D -f prog.awk input, with a longer program, panics at src/main.rs:93 with start byte index ... is out of bounds.
GNU: starts the interactive debugger, which reads commands from stdin.
Exposed by the GNU awk test suite: dbugarray1, dbugarray2, dbugarray4,
dbugeval2, dbugeval3, dbugeval4, dbugtypedre1, dbugtypedre2, watchpoint1 (they
need the debugger to pass).
Activity