cancel
Showing results for 
Search instead for 
Did you mean: 

Does Keil UV4 provide step-by-step debug mode?

StephanMair
Senior
Posted on August 31, 2012 at 05:51

Does Keil UV4 provide step-by-step debug mode? If so, how to activate it?

By ''step-by-step'' I mean execute my codes line by line, and I get to observe various registers and ports etc.

However the ''run'' button execute my codes in an unfathomable fashion, it run through some of the codes, then stops, I press it again, and same thing happens.

Worse yet, I have no control (seemingly) over where it starts its execution.

Can anyone please help me?
1 REPLY 1
Posted on August 31, 2012 at 06:00

If you want to start at the beginning uncheck ''run to main()''

If the C view steps oddly, use the disassembly view, or turn off optimization.

The stepping buttons let you step into a particular statement, step over line/subroutine, step out of subroutine, run to cursor.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..