First time here? Check out the FAQ!
1

Running debugger from external console multiple times

I have seen that when I insert "import wingdbstub" into my flow to start wing's debugger from an external console, it only starts wing's debugger the first time I run my flow.  If I want to enter wing's debugger again, I need to exit and start a new python console.  How do I get the debugger to start every time without starting a new console?

Thanks,

Matt

Matt Claudius's avatar
11
Matt Claudius
asked 2017-03-24 16:33:00 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2019-03-13 10:19:53 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

You can add code like this: import wingdbstub wingdbstub.Ensure()

That should make sure that there is a debug connection and that the debugger is active.  

Wingware Support's avatar
4.2k
Wingware Support
answered 2017-03-24 16:37:00 -0600
edit flag offensive 0 remove flag delete link

Comments

  Thanks, yes, this worked.  Is there also a way to bring calls from the debug probe into the debugger so they can be stepped through?

Matt Claudius's avatar Matt Claudius (2017-03-24 18:49:00 -0600) edit

Yes, in Wing Pro you can turn on debugging in the Debug Probe's Options menu.

Wingware Support's avatar Wingware Support (2017-03-24 19:59:00 -0600) edit

Found it, thanks.

Matt Claudius's avatar Matt Claudius (2017-03-24 20:58:00 -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