Patent ID: 9448914
Filing Date: 2016-09-20
CPC Classification: G06F,H04L

Claim Text:
1. A method for implementing remote debugging by a remote debugging system, the remote debugging system comprising a remote debugging client, a debugger agent, a transit agent, a debuggee agent, and a remote debugging server, the remote debugging client and the debugger agent both belonging to a first local area network (LAN), the debuggee agent and the remote debugging server both belonging to a second LAN, the second LAN and the first LAN being different communication networks, and the transit agent belonging to an external communication network excluding the first LAN and the second LAN; and the method comprising: sending, by the remote debugging client, debugging information to the debugger agent; acquiring, by the debugger agent, a process identifier corresponding to the remote debugging client, a receive port identifier, and keyword information corresponding to the debugger agent; and encapsulating the process identifier corresponding to the remote debugging client, the receive port identifier, the keyword information corresponding to the debugger agent, and the debugging information in a packet, and sending the packet to the transit agent; performing, by the transit agent, decapsulation processing on the packet to obtain the keyword information corresponding to the debugger agent, determining, according to a stored mapping table, the debuggee agent that has a correspondence to the debugger agent, and forwarding the packet to the debuggee agent that has the correspondence to the debugger agent; performing, by the debuggee agent, decapsulation processing on the packet to obtain the debugging information, the process identifier corresponding to the remote debugging client, and the receive port identifier, and sending, according to the receive port identifier, the debugging information to a corresponding port of the remote debugging server corresponding to the process identifier; and performing, by the remote debugging server, debugging according to the debugging information.