Can we test behavior of switch while debugging code?

Thread Starter

rt694157

Joined Dec 15, 2019
78
Hi, I have pickit 3 debugger/programmer. I want to know, Is it possible to test behavior of switch button while debugging program?
 

Sensacell

Joined Jun 19, 2012
3,447
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.
 
Top