First time here? Check out the FAQ!
1

Is there a way in the wing debugger to say "if a variable ever != 0 break"

I have a series of tests that are performed within one script. I can go through each test and put conditional breakpoints, but that is a bit time consuming. Is there a way to say if that variable ever != 0 break?

cutlass1972's avatar
11
cutlass1972
asked 2020-02-26 09:40:22 -0600
Wingware Support's avatar
4k
Wingware Support
updated 2020-02-26 21:05:57 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Unfortunately not directly, due to the very large overhead this would add, if checking the value after each byte code. For things like properties you can set a breakpoint in the method that sets it, or in methods like __setitem__. Also, if there is a good place to put it, adding 'assert myvar == 0' to code might work.

Wingware Support's avatar
4k
Wingware Support
answered 2020-02-26 21:10:38 -0600
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