Target States, Exceptions
|Top Previous Next|
It's good that you are here! There actually is something to learn about the target states!
RUN The VM is executing your application. This doesn't mean that some code is being executed all the time.
Being an event-based system, TiOS executes event handlers in response to events.
If there are no events to take care of the VM sits idly and ready to handle the next event when it comes.
The values of variables in the Watch pane are not updated while the VM is executing.
PAUSE , BREAK , ABORT indicate that the VM is stopped and no code is being executed.
The master process still continues with its business and keeps generating events.
These events will wait in the event queue and will be handled by the VM when the execution resumes.
The values of variables in the Watch pane are updated as soon as the target exits the RUN state.
The difference between the three states:
PAUSE means the execution was paused while the VM was idle, i.e. not executing any event handlers.
The program pointer is not displayed because no procedure (function) is being executed.
This state can only happen if you pause the execution manually (Debug > Pause) or reboot your target (Debug > Restart).
BREAK means the execution was paused while the VM was busy executing an event handler.
The program pointer will be displayed.
This state can happen if you pause the execution manually (Debug > Pause) or the execution stops at a breakpoint.
ABORT means the execution was paused because of an exception. This also means that the VM was busy executing an event handler.
The program pointer will be displayed. Possible exceptions: