Patent ID: 8898645

Claim:
A computer-executable method for handling breakpoints in an asynchronous debug model, the method comprising: building a queue of basic operations to run a debug application program interface (API); breaking down each of a plurality of user commands into a simple command comprising one of a run command or a machine step; placing the simple command on the queue; in response to an occurrence of a debug event, providing the debug event to a user command processing mechanism to generate a new simple command; and if, when a first command on the queue is processed, a thread is not stopped at a location with an installed breakpoint, then an operation corresponding to the first command is started, the operation is removed from the queue, and a next operation on the queue is started; otherwise, if the thread is stopped at the location with the installed breakpoint, then the thread is given a command to perform a hop operation, such that any other threads are frozen and, when the hop operation terminates, the first command is removed from the queue.