it is taken as input to pdb, not debugged process, I'd like something like (gdb) run < input.txt
jiao ~/playground $ echo hello | python3 stdin.py
type a line
jiao ~/playground $ echo hello | python3 -m pdb stdin.py
> /home/jiao/playground/stdin.py(1)<module>()
-> input("type a line\n")
(Pdb) *** NameError: name 'hello' is not defined
(Pdb)
I know I can provide input when debugged process ask for it but I'd like to provide all input at once at startup