Running debugger from external console multiple times


267
views
1
5 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

add commentfollow this post modified 5 months ago by Wingware Support   • written 5 months ago by Matt Claudius  

1 Answer


1
5 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.

 

add comment written 5 months ago by Wingware Support  

 

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 5 months ago by Matt Claudius  

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

written 5 months ago by Wingware Support  

Found it, thanks.

written 5 months ago by Matt Claudius  
Please log in to add an answer/comment or follow this question.

Similar posts:
Search »