Patent ID: 7617487

Claim:
A client device comprising: a virtual machine (VM) to execute a first thread and a second thread, the first thread to trigger a debug event, the VM including a debug interpreter loop to provide debug mode execution, wherein the first thread is executed via the debug interpreter loop, a productive interpreter loop to provide optimized execution, wherein the second thread is executed, in parallel with the first thread, via the productive interpreter loop; a debug interface to couple the client device to a debut client, the debug interface to further transmit the debug event to the debug client, receive a debugging command from the debug client responsive to the debug event, determine whether the debug command affects the second thread, drop the debug command in response to determining the debug command affects the second thread, and execute the debug command in response to determining the debug command does not affect the second thread; and a switch logic coupled to the debut interface to switch execution of the first thread from debug mode execution to optimized execution based on dropping or executing the debug command.