摘要 |
A method and computer program product for debugging a virtual machine, preferably a target Java virtual machine, without need for the virtual machi ne to comprise debug information required by a debugger, the method being applied during communication of request packets between the debugger and the virtual machin e during execution of the debugger, the method comprising the steps of receiving the request packets from the debugger prior to communication of the request packets to t he virtual machine, processing the request packets whereby the required debug informati on is provided to predetermined packets thereof, transmitting the processed reques t packets for communication to the virtual machine, receiving reply packets from the virtu al machine, processing the reply packets for reply to the debugger, and transmitting the processed reply packets to the debugger. The method and computer program product may also be provided wherein the debug information comprises line tables and the step of processing request packets comprises translating line-based request packets to instruction-based request packets. The method and computer program product may also be provide d wherein the format of the request packets is defined by the Java Debug Wire Protocol (JDWP) or the predetermined request packets may bethose packets determined t o require debug information in the proxy.
|