Running debugger from external console multiple times


471
views
1
11 months ago by

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

Community: Wing Python IDE

1 Answer


3
11 months ago by

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.

 

 

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?

written 11 months ago by Matt Claudius  

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

written 11 months ago by Wingware Support  

Found it, thanks.

written 11 months ago by Matt Claudius  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »