Yes- use the debugger, place a few NOPs before the test of the switch state, set a breakpoint on the NOP.
Run the code and step through with the switch closed and then open.
Yes- use the debugger, place a few NOPs before the test of the switch state, set a breakpoint on the NOP.
Run the code and step through with the switch closed and then open.