Ask Your Question
1

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

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

cutlass1972 gravatar image

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

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
0

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

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

2 followers

Stats

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

Seen: 105 times

Last updated: Feb 26