by AussieSusan » Tue Aug 09, 2016 3:44 am
Depends on what you mean by 'real time' in this context.
Can you watch the registers/variables change while the processor is still running - no.
Can you use a breakpoint to stop the processor and then look at the registers/variables - yes.
The way the IDE interacts with the processor for debugging is to add in a bit of code called the 'debug kernel' into your application. When you start the application going, the debug kernel is the first thing to start up and it tries to communicate with the IDE/debugger. When the debugger tells it to 'run', the debug kernel will jump to the start of your application code. Your code will then run until it hits a breakpoint when the debug kernel will again get control.
It is only when the IDE can communicate with the debug kernel that the debugger can request the values of registers etc.
Susan