Revision history [back]
If you reached an exception then the limitations imposed by the Python interpreter make it impossible to use the Move Program Counter feature. If you were at a break point or stepping instead, you could use that to go back to a previous position in the current innermost stack frame.
In Wing Pro, another way to reduce the need for restarts is to work in the Debug Console. You can try out code there, so that would be a way to design and test a fix without needing to move the program counter.
It's also possible to design code to reload changed source files, but that is not something the debugger can do generically because it's very implementation dependent. Some tools like Flask provide an option to turn on auto-reloading, or you can write code yourself to do it in places that are modular enough for it to make sense. In general, it's not something that can work in most code, however.
If you reached an exception then the limitations imposed by the Python interpreter make it impossible to use the Move Program Counter feature. If you were at a break point or stepping instead, you could use that to go back to a previous position in the current innermost stack frame.
In Wing Pro, another way to reduce the need for restarts is to work in the Debug Console. You can try out code there, so that would be a way to design and test a fix without needing to move the program counter.
It's also possible to design code to reload changed source files, but that is not something the debugger can do generically because it's very implementation dependent. Some tools like Flask provide an option to turn on auto-reloading, or you can write code yourself to do it in places that are modular enough for it to make sense. In general, it's not something that can work in most code, however.