Patent ID: 7788543

Claim:
A method for debugging a code of a computer program, comprising: executing the computer program with a processor operating in a router; generating, with the processor, trace data associated with the computer program, wherein the processor includes a control register to identify conditions that, when met, cause the processor to generate the trace data, and a status register, separate from the control register, to identify when the processor is currently generating trace data; storing the trace data in a memory device, wherein the processor includes a next pointer register to store an address for the trace data to be stored in memory device; receiving a request to receive the trace data stored in the memory device from a remote processing device; and automatically providing the remote processing device access to the trace data stored in the memory device over a network responsive to the request, wherein the processor includes a starting address register to identify a starting address of the trace data stored in the memory device and includes an ending address register to identify an ending address of the trace data stored in the memory device, wherein the starting address and ending address map the trace data to the memory device, wherein the processor is configured to provide access to the trace data based on the mapping by the starting address and ending address, and wherein the remote processing device is configured to perform debugging operations on the code of the computer program according to the received trace data.