Using WingIDE to debug a web application, I set a breakpoint in some Python code that runs when a web form is submitted. Shortly before the breakpoint, I inserted "import wingdbstub" to activate remote deactivation. However, execution does not stop at a breakpoint. I know that the code is running because if I insert "raise exception (sys.modules)" just before the breakpoint, execution stops and a trace appears in my browser, indicating that the wingdbstub file is loaded.
If I hang up the error icon in the status bar, the dialog box says: "There is no process for debugging / listening for connections on TCP / IP 50005. The allowed nodes are 127.0.0.1." I know that I have a โlostโ debugging mode when a) the error icon changes from green to white, and b) the buttons on the debug panel disappear (step in, above, out, etc.).
I tried to delete the compiled .pyc files so that they recompile when the next module starts, but the problem remains.
How can I check if Wing is listening on the correct port? The strange thing is that remote debugging worked sometimes, but it doesnโt do most of the time.
Any help would be greatly appreciated. For recording, I use Python 3.1, CherryPy 3.20 and WingIDE Personal 3.2.11.
Alan
source share