Keil Logo

µVISION DEBUGGER: Single-Step Does Not Always Advance


Information in this knowledgebase article applies to:

  • µVision - All versions

QUESTION

When using Step Over to step through my C code, sometimes the debugger does not always advance to the next C code line.

Why is that?

ANSWER

When a line contains a multiple statement on a single line for example:

    while (Buttons_GetState() & (1 << 0));  /* Wait while holding USER button */

The first Step Over (F10) performs the Buttons_GetState() function. The second Step Over performs evaluates the while argument. Finally, the third Step Over advances to the next line if the argument value is false.

MORE INFORMATION

SEE ALSO

Last Reviewed: Wednesday, June 3, 2015


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.