You should be able to run your program under the Debugger control so when it 'stops' you can see the line of code where it gets to.
Debugger allows you to either Step though the code or 'Run' the code at near normal speed but under Debugger control.
You can also 'Run' the code using Breakpoints in your code where the debugger will stop at that point and wait until you tell it to carry on again.
You should find full details of how to use the Debugger in the ICD3 manual ( I only have and use the Pickit2 Debugger)