Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19628 > unrolled thread
| Started by | Andrea Crotti <andrea.crotti.0@gmail.com> |
|---|---|
| First post | 2012-01-31 11:33 +0000 |
| Last post | 2012-01-31 11:33 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Debugging / profiling subscripts Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-01-31 11:33 +0000
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
|---|---|
| Date | 2012-01-31 11:33 +0000 |
| Subject | Debugging / 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..
Back to top | Article view | comp.lang.python
csiph-web