摘要 |
In an embodiment, a first debug agent at a first computer receives a packet. The first debug agent adds a debug command and an identifier of the first debug agent to the packet and sends the packet to a receiving computer. A second debug agent at the receiving computer removes the debug command and the identifier of the first debug agent from the packet and sends the packet to a second program that executes at the receiving computer. The second debug agent further executes the debug command, which causes the second program that executes on the receiving computer to halt execution at a breakpoint or address watch memory location. The second debug agent sends the state of the second program to the first debug agent, which presents, at the first computer, the state and a listing of the second program. |
主权项 |
1. A method comprising:
receiving a packet at a first debug agent from a first program at a first computer; adding a debug command, a processing node identifier, and an identifier of the first debug agent to the packet; sending the packet that comprises the debug command, the processing node identifier, and the identifier of the first debug agent to a destination computer, wherein a second debug agent at the destination computer removes the debug command, the processing node identifier, and the identifier of the first debug agent from the packet and sends the packet to a second program that executes at the destination computer, wherein the second debug agent executes the debug command if a destination node identifier that identifies the destination computer matches the processing node identifier, wherein the second debug agent does not execute the debug command if the destination node identifier does not match the processing node identifier; in response to a request from the second program to send the packet to a receiving computer, the second debug agent adds the debug command, the processing node identifier, and the identifier of the first debug agent back to the packet and sends the packet to the receiving computer, wherein a third debug agent at the receiving computer sends the packet to a third program that executes at the receiving computer, wherein the third debug agent executes the debug command if a receiving node identifier that identifies the receiving computer matches the processing node identifier in the packet, wherein the execute of the debug command causes the third program to halt execution, wherein the third debug agent does not execute the debug command if the receiving node identifier that identifies the receiving computer does not match the processing node identifier in the packet; receiving, at the first debug agent at the first computer, a state of the third program and an identifier of the third program that is halted; and presenting, at the first computer, the state of the third program and a program listing of the third program. |