Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19628
| Date | 2012-01-31 11:33 +0000 |
|---|---|
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
| Subject | Debugging / profiling subscripts |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5236.1328009640.27778.python-list@python.org> (permalink) |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Debugging / profiling subscripts Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-01-31 11:33 +0000
csiph-web