发明名称 Debugger connection
摘要 The subject matter of this specification can be embodied in, among other things, a method that includes establishing a connection with one or more virtual machines using a debugger protocol configured to communicate debug commands to applications executed by the one or more virtual machines. The method also includes transmitting a request for a current state of the one or more virtual machines using the connection. Information associated with the current state includes state variables not controlled by an application receiving debug commands. The method includes outputting the current state of the one or more virtual machines for display to a user.
申请公布号 US8843895(B2) 申请公布日期 2014.09.23
申请号 US201213611126 申请日期 2012.09.12
申请人 Google Inc. 发明人 McFadden Andrew T.;Bort David P.
分类号 G06F9/44;G06F9/45;G06F9/455 主分类号 G06F9/44
代理机构 Fish & Richardson P.C. 代理人 Fish & Richardson P.C.
主权项 1. A computer-implemented method comprising: initiating, by a debug monitor, a respective Java Debug Wire Protocol (JDWP) connection between the debug monitor and each of a plurality of virtual machines, wherein the debug monitor is hosted on a computing device and the virtual machines are not hosted on the computing device, generating, by the debug monitor, a first request packet of JDWP data including, in an unreserved bits section of the first request packet, a Dalvik Debug Monitor (DDM) protocol request to at least one of the virtual machines for current state information of the at least one virtual machine, wherein the current state information of the at least one virtual machine includes at least one state variable of the at least one virtual machine; transmitting, by the debug monitor over the respective JDWP connection to at least one of the virtual machines, the first request packet of JDWP data including the DDM protocol request for current state information of the at least one virtual machine; receiving, by the debug monitor and in response to the first request, a first reply packet of JDWP data that includes, in an unreserved bits section of the first reply packet, a DDM protocol reply that includes the current state information of the at least one virtual machine, the current state information including the at least one state variable; receiving, by the debug monitor, at least one DDM protocol debug command from a debugger for debugging a particular application loaded on one of the virtual machines; generating, by the debug monitor, a second request packet of JDWP data including, in an unreserved bits section of the second request packet, the at least one DDM protocol debug command from the debugger for debugging a particular application; transmitting, by the debug monitor over the respective JDWP connection, the second request packet of JDWP data including the at least one debug command from the debugger for debugging a particular application, to the virtual machine on which the particular application is loaded; receiving, by the debug monitor and in response to the second request, a second reply packet of JDWP data including, in an unreserved bits section of the second reply packet, DDM protocol results from the virtual machine for executing the at least one debug command; transmitting, by the debug monitor, the DDM protocol results from the virtual machine to the debugger; and providing a representation of at least a portion of the current state information of the at least one virtual machine for display to a user, the portion of the current state information including the at least one state variable.
地址 Mountain View CA US
您可能感兴趣的专利