Debugging tool and debugging method and system thereof
A debugging tool and debugging method technology, applied in software testing/debugging, error detection/correction, program control design, etc., can solve the problems of wasting memory space, debugging tools occupy a large amount of memory, and the debugging process cannot be performed flexibly. Find, improve debugging efficiency, fast and intuitive positioning effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] Embodiment 1 of the present application provides a debugging tool, such as figure 1 As shown, it includes: a protocol communication processing unit 11 and a debugging instruction processing unit 12 that run in patch form and have a debugging function;
[0032] The protocol communication processing unit 11 is used to establish a communication connection between the debugging tool and the host computer, specifically to receive the debugging instructions sent by the host computer according to a predefined communication protocol. The predefined protocol includes processing data headers, receiving data, setting sending length, sending data, send status word;
[0033] The debugging instruction processing unit 12 is used to process the received debugging instruction, and specifically includes a debugging instruction processing function entry module 121, a virtual machine execution controller module 122 and a debugging command parser module 123:
[0034] Wherein, after receivi...
Embodiment 2
[0045] Embodiment 2 of the present application provides a debugging system, such as figure 1 As shown, it includes a device to be debugged 1 running the debugging tool described in Embodiment 1, and a host computer 2; the device to be debugged 1 establishes a communication connection with the host computer 2 through a protocol communication processing unit 11 .
[0046] Wherein, the host computer 2 implements the functions of setting breakpoints in the device to be debugged, stepping through the Java applet code, viewing and modifying variables in the Java applet code through the user debugging interface.
[0047] After the device to be debugged informs the upper computer that the breakpoint event has been triggered and the response data at the location where the breakpoint stops, the upper computer correctly displays the cursor on the code breakpoint position on the user debugging interface according to the response data.
[0048] In addition, after the virtual machine of the...
Embodiment 3
[0050] Embodiment 3 of the present application provides a debugging method. The debugging tool described in Embodiment 1 is run in the device to be debugged, wherein the device to be debugged can be a physical smart device (such as a smart card, security hardware, etc.) or an analog smart device. The device application, if it is a physical smart device, establishes a communication connection with the host computer through a card reader, and if it is an analog smart device application, it directly uses a predefined communication protocol to establish a communication connection with the host computer.
[0051] In the embodiment of the present application, the processing mechanism with the protocol communication processing unit and the debugging instruction processing unit is run on the basis of the original processor of the device to be debugged. The processing mechanism can be set in the device to be debugged in advance; the device to be debugged establishes a communication conn...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


