First time here? Check out the FAQ!
1

When there's an error in the code and the program doesn't advance, can I make the change and continue the program, and have the change accepted during execution?

  • retag add tags

When there's an error in the code and the program doesn't advance, can I make the change and continue the program, and have the change accepted during execution?

anonymous user
Anonymous
asked 2026-03-19 15:08:53 +0000
Wingware Support's avatar
4.3k
Wingware Support
updated 2026-03-19 15:48:37 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

Wingware Support's avatar
4.3k
Wingware Support
answered 2026-03-19 15:51:09 +0000, updated 2026-03-19 15:54:17 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer