Ritesh, instead of selecting (for example) PicKit3 as your debugger, select MPLAB SIM.
Then you can add PortB to the watch window and run your program step by step, or add breakpoints at certain places in your code if you wish.
Edit, whoops sorry Ian I missed where you directed Ritesh to MPLAB SIM a couple of posts up.
Then you can add PortB to the watch window and run your program step by step, or add breakpoints at certain places in your code if you wish.
Edit, whoops sorry Ian I missed where you directed Ritesh to MPLAB SIM a couple of posts up.
Last edited: