1. A method comprising: executing a graphics application by a target device, wherein the graphics application includes instructions which when executed by a central processing unit (CPU) invoke graphics commands for a graphics processing unit (GPU) to generate graphics; detecting a breakpoint for the graphics application at a first time; in response to detecting the breakpoint: capturing information corresponding to execution of the graphics application based on the breakpoint; preventing additional graphics commands corresponding to the graphics application from being sent to the GPU by locking a graphics framework with respect to the additional graphics commands while allowing graphics commands corresponding to at least one other application to be sent to the GPU; suspending the execution of the graphics application; and providing the information to a host device to perform debugging.