Ask Your Question

Multiprocessing program debug

asked 2019-12-09 09:56:14 -0600

Josselin gravatar image


I have a program with multiprocessing enable. I debug it successfully on launch,

The problem is : after detaching from the program (to let it run by itself), I would like to reattach on all the sub-processes but it keep reattaching only on the main process.

Have you any idea to help me?

Thank you in advance,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-12-09 11:56:01 -0600

There isn't a way to reattach to all child processes as well as the parent. You should be able to just continue the program without detaching from the debugger. There should be no significant performance difference, or are you seeing one?

edit flag offensive delete link more



Thank you for your quick answer.

The real problem is : I have a python program using a complex architecture and the multiprocessing library running on a server. After a random delay, a problem appear and I would like to be able to debug it. I can't keep my computer running wingware solution running all the time before the error occured as it may take some weeks.

Josselin gravatar image Josselin  ( 2019-12-11 03:50:48 -0600 )edit

Unfortunately there may not be a good way to do this. An alternative is to somehow set things up so you can remotely trigger 'import wingdbstub' and 'wingdbstub.Ensure()' in the child processes so they all connect to the IDE. But it may not help and is complicated in case. The relevant docs section is

Wingware Support gravatar image Wingware Support  ( 2019-12-11 18:55:57 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-12-09 09:55:59 -0600

Seen: 8,074 times

Last updated: Dec 11 '19