Debugging with WingIDE
In this example, we are debugging a Python script that accepts two input parameters:
An interesting topic is the possibility of adding a breakpoint in our program with the option Add Breakpoint option, in this way, we can debug and see the contents of the variables just at the point where we have established the breakpoint:
We can set a breakpoint in the call to the view_parameters method.
To execute a script in debug mode with parameters, you have to edit the properties of the script and add the parameters that our script needs within the debug tag:
If we execute in debug mode with a breakpoint inside the function, we can see the content of the parameters in local string variables:
In the following screenshot we can visualize the values of the params variable that contains the values we are debugging: