First time here? Check out the FAQ!
1

Multiprocessing program debug

Hi,

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,

Josselin's avatar
11
Josselin
asked 2019-12-09 09:56:14 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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?

Wingware Support's avatar
4.2k
Wingware Support
answered 2019-12-09 11:56:01 -0600
edit flag offensive 0 remove flag delete link

Comments

Hi,

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's avatar 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 https://wingware.com/doc/debug/manual...

Wingware Support's avatar Wingware Support (2019-12-11 18:55:57 -0600) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer