By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,692 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

Is there a way to step debug the multiprocessing python program?

P: n/a
I mean every process attach like thread in wingide

like thread or tasklet in wingide

:)

maybe I asked toooo much:D
Nov 8 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Nov 7, 9:15*pm, "davy zhang" <davyzh...@gmail.comwrote:
I mean every process attach like thread in wingide

like thread or tasklet in wingide

:)

maybe I asked toooo much:D
Here is where 'multiprocessing' assembles the command line to spawn
the subprocess (Windows version):

if getattr(sys, 'frozen', False):
return [sys.executable, '--multiprocessing-fork']
else:
prog = 'from multiprocessing.forking import main; main()'
return [_python_exe, '-c', prog, '--multiprocessing-fork']

It's in multiprocessing/forking.py. As you see, 'main()' is run in
the separate process first thing, which calls self._bootstrap().
Perhaps you can muck around with that and hook it into your IDE
somehow. Even using pdb, which is just a module in Python itself, was
a bit tricky. Let is know what you learn.
Nov 8 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.