2.6 multiprocessing and pdb

  • Thread starter Aaron \Castironpi\ Brady
  • Start date
A

Aaron \Castironpi\ Brady

Hi,

I'm trying to step through a subprocess I launch with
multiprocessing. Does anyone know what hack to add? The actual call
comes in forking.Popen.__init__, Windows version, forking.py, line
222:

hp, ht, pid, tid = _subprocess.CreateProcess(
_python_exe, cmd, None, None, 1, 0, None, None, None
)
 
G

Gabriel Genellina

En Thu, 02 Oct 2008 18:14:07 -0300, Aaron "Castironpi" Brady
I'm trying to step through a subprocess I launch with
multiprocessing. Does anyone know what hack to add? The actual call
comes in forking.Popen.__init__, Windows version, forking.py, line
222:

hp, ht, pid, tid = _subprocess.CreateProcess(
_python_exe, cmd, None, None, 1, 0, None, None, None
)

"to step through a subprocess" means that you are using a debugger (pdb?)
to execute the parent process, and want to debug the child process too?
You'll have to modify the command line (the cmd argument), so the child is
run thru the debugger too. I don't think pdb has any "remote" capabilities.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top