1. A method for debugging a graphics application executing on a target device, the method comprising: executing the graphics application by the 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 on a display; detecting a breakpoint for the graphics application at a first time; in response to detecting the breakpoint: sending a lock command to a graphics framework that provides application programming interfaces for the GPU; in response to receiving the lock command at the graphics framework, locking the graphics framework for the GPU on the target device to prevent commands being sent to a graphics driver on the target device; capturing information of the graphics application based on the breakpoint; suspending execution of the graphics application; providing the information to a host device to perform debugging; and resuming execution of the graphics application on the target device.