Ich werde gdb von Python starten.Wie kann ich ein interaktives Programm (wie gdb) von Python starten?
Zum Beispiel:
prog.shell.py:
#do lots of things
#
#
p.subprocess.Popen("gdb --args myprog", shell=True, stdin=sys.stdin, stdout=sys.stdout)
Aber der GDB wird nicht aufgerufen, wie ich erwartet hatte, die Interaktion mit GDB gebrochen ist. Ich habe auch os.system() versucht, aber es funktioniert immer noch nicht. Was könnte ich falsch machen?
Können Sie erklären, was gbd ist? –