Ask Your Question

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

asked 2020-02-26 09:40:22 -0600

cutlass1972's avatar

updated 2020-02-26 21:05:57 -0600

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-02-26 21:10:38 -0600

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-02-26 09:40:22 -0600

Seen: 433 times

Last updated: Feb 26 '20