title: Debug executable launched from a script using gdb
body: <p>I have a python script (sample.py) which launches an executable file (a.out, an elf executable created from a C file using -g flag) using <code>subprocess.Popen</code> method. I want to use gdb for a.out. How do I go about doing this?</p>