Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19628 > unrolled thread

Debugging / profiling subscripts

Started byAndrea Crotti <andrea.crotti.0@gmail.com>
First post2012-01-31 11:33 +0000
Last post2012-01-31 11:33 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Debugging / profiling subscripts Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-01-31 11:33 +0000

#19628 — Debugging / profiling subscripts

FromAndrea Crotti <andrea.crotti.0@gmail.com>
Date2012-01-31 11:33 +0000
SubjectDebugging / profiling subscripts
Message-ID<mailman.5236.1328009640.27778.python-list@python.org>
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..

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web