Do you debug under WSGI with wingdbstub.py or run a bottle from the IDE? I am not familiar with the bottle, but a common problem is the mechanism for reloading the web framework in a subprocess that is not debugging. However, Iโm not sure if the bottle will do this under WSGI, but print the process identifier during the import of wingdbstub (or start when starting from the IDE), and again on the line where the breakpoint is missing, it will control this in our mode. Here, the โrebooterโ arg for Bottle .__ init__ may be appropriate. If set to True, try setting it to False when debugging under Wing.
Another thing to try is to create an exception specifically where the breakpoint is (for example, "assert 0", "test exception" "and see if this exception is reported in the Wing debugger in the Exceptions tool, and if so, whether Wing also controls to open the source code.If the bottle works with code that cannot find the source code, it will still dwell on the statement (the Wing debugger stops on all statements by default, even if the host code handles the exception), but it couldnโt display debug file and placed would be a message in the status area (on the IDE screen flag and in the Messages tool) that indicates the name of the file specified by the debugging process. Depending on this, this may be possible to fix the problem (but for this you will need to modify the flag if the file name looks on the" ".
BTW, to insert code that runs only under the Wing debugger, something like this:
import os if "WINGDB_ACTIVE" in os.environ: # code here
If this does not help, please email support on the wingware dot website.
source share