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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
cutlass1972's avatar
11
cutlass1972
asked 5 years ago
Wingware Support's avatar
4.2k
Wingware Support
updated 5 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.2k
Wingware Support
answered 5 years ago
link

Comments

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)