You are here

Debugging with breakpoints | Cypress Semiconductor

Debugging with breakpoints

Summary: 1 Reply, Latest post by Bob Marlowe on 28 May 2016 02:04 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
Joao Carlos Chies's picture
1 post

Is there any way of continue running the program after reaching a breakpoint without having to disable it?

I want to check my values in a loop and stop every time it reaches the breakpoint.

But right now I have to:

* disable the breakpoint

* set a new secondary breakpoint one further in the code

* run the code to it

* re-enable my original breakpoint

* disable the secondary breakpoint

* finally, run the code to stop where I really want !

It must be a better way of doing that!

user_1377889's picture
9301 posts

Welcome in the forum!

In short: Reaching a breakpoint stops the CPU only, the hardware keeps on running, thus generating interrupts.

When continuing, the interrupt gets handled and returns --- to your breakpoint and execution stops.

So disable interrupts while single-stepping parts of your code, there is an icon you may use for a single click.


Happy coding


Log in to post new comments.