Ask Your Question
1

Multiprocessing program debug

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

Josselin's avatar

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,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

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

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 -0500 )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 -0500 )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

2 followers

Stats

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

Seen: 8,251 times

Last updated: Dec 11 '19