If for example I have a Python script which for some reasons needs to
run another Python script as a subprocess, is there a way to debug /
profile it?

If I add an
import pdb; pdb.set_trace()

In my specific case I am running a program that, under certain
conditions, has to restart from scratch, doing something like

cmd = ["python"] + sys.argv
Popen(cmd, shell=True)

but the subprocess becomes than a black box..

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to