Hello
I assume you are debugging on a hardware board with a Multilink or Cyclone PRO cable.
Per default when you are stepping the debugger will stop at the next instruction executed. If an interrupt arises, it will stop inside of the interrupt function.
You can disable that behavior in the following way:
- Start the debugger the usual way
- Select "Multilink/CyclonePro" -> "Connect". The Connection dialog is opened.
- Switch to the "Special Setup" tab
- Check the box "Disable maskable ISR's when stepping"
- Click OK to close the dialog.
Now PC should not enter interrupt function when you are stepping.
Only non-maskable interrupts might interrupt the execution.
I hope this helps.
CrasyCat