CN104991857A - Method and apparatus for trace debugging - Google Patents

Method and apparatus for trace debugging Download PDF

Info

Publication number
CN104991857A
CN104991857A CN201510310639.4A CN201510310639A CN104991857A CN 104991857 A CN104991857 A CN 104991857A CN 201510310639 A CN201510310639 A CN 201510310639A CN 104991857 A CN104991857 A CN 104991857A
Authority
CN
China
Prior art keywords
debug
order
trace debug
destination object
trace
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510310639.4A
Other languages
Chinese (zh)
Other versions
CN104991857B (en
Inventor
谭国斌
沈建荣
马哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510310639.4A priority Critical patent/CN104991857B/en
Publication of CN104991857A publication Critical patent/CN104991857A/en
Application granted granted Critical
Publication of CN104991857B publication Critical patent/CN104991857B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The public is about a method and an apparatus for trace debugging, which is used for saving time that is spent in testing a bug existing in a program or a software by a developer, wherein the method comprises that a trace debugging order sent by a developing engine is received; the trace debugging order is used for debugging a target object that has a bug in a terminal end; according to the trace debugging order, the terminal end is processed to have a target object of a preset debug version corresponded to the target object that has the bug; and according to the trace debugging order, the operation of trace debug is executed to the target object of the preset debug version. With the above technical solution of the embodiment of the public, the terminal end can be controlled by the developing engine at distance to execute the operation of trace debug to the target object, thus the bug existing in the target object can be positioned and improved accurately and rapidly; the time of a developer to test the bug existing in the program or the software can be saved; and the debug efficiency is improved.

Description

Trace debug method and device
Technical field
The disclosure relates to Internet technical field, particularly trace debug method and device.
Background technology
Current most of team is in the process developed software, and adopt pattern still, PHP has developed program or software, then transfers to Test Engineer, and product, by afterwards, is published on internet for user by Test Engineer's test.
But the program that PHP has developed, probably can there is leak (BUG), but many times may there is so problem, after program development is complete, Test Engineer also tests program or software, but still there is user to produce certain function after reaching the standard grade and there is BUG, so Test Engineer again tests this function again in oneself mobile phone, computer or other terminal, may or can not accurate reproduction and orientation problem.So program, the software of what Test Engineer inquired user further is what version, use, the program of the mobile phone of same model, identical version, software etc. installed, repeatedly retests under what computer, mobile phone or other environment.Like this, software debugging personnel just require a great deal of time when test b UG.
Summary of the invention
Disclosure embodiment provides trace debug method and device, in order to save the time that developer spends when the BUG that test procedure or software exist.
According to the first aspect of disclosure embodiment, a kind of trace debug method is provided, comprises:
Receive the trace debug order that developing engine sends, described trace debug order is used for the destination object in terminal described in trace debug with leak BUG;
Process according to described trace debug order, make to have in described terminal the destination object of the default debug version corresponding with the described destination object with BUG;
According to described trace debug order, trace debug operation is performed to the destination object of described default debug version.
In one embodiment, described trace debug order comprises the retouching operation order to described destination object;
Describedly to process according to described trace debug order, make the destination object in described terminal with default debug version, comprise: according to the retouching operation order to described destination object, described destination object is modified operation, makes amended destination object be the destination object of default debug version.
In one embodiment, described trace debug order comprises the installation order of the destination object installing described default debug version;
Describedly to process according to described trace debug order, make the destination object in described terminal with default debug version, comprising: according to described installation order, obtain the installation kit of the default debug version of described destination object; Described installation kit is installed, makes the destination object being provided with default debug version in described terminal.
In one embodiment, also comprise use operational order in described trace debug order, described use operational order is used for analog subscriber and operates the use of the destination object of described default debug version;
According to described trace debug order, perform trace debug operation to the destination object of described default debug version, comprising: according to described use operational order, analog subscriber operates the use of the destination object of described default debug version.
In one embodiment, described method also comprises:
The contextual information that record produces when performing the operation of described trace debug, described contextual information is for recording the process of described trace debug operation;
The response message comprising contextual information is returned to described developing engine.
In one embodiment, the described trace debug order that described reception developing engine sends, comprising: receive the described trace debug order that developing engine is sent by remote tracing debugging proxy server;
Describedly return the response message comprising described contextual information to described developing engine, comprising: return described response message by described remote tracing debugging proxy server to described developing engine.
According to the second aspect of disclosure embodiment, a kind of trace debug method is provided, for developing engine, comprises:
Generate trace debug order, described trace debug order is used for the destination object with leak BUG in trace debug terminal;
Send described trace debug order to described terminal, described trace debug instruction is used for by described terminal according to described trace debug order, performs trace debug operation to described destination object.
In one embodiment, receive the response message that described terminal sends, described response message comprises the contextual information that described terminal produces when performing the operation of described trace debug, and described contextual information performs the process of described trace debug order for recording.
Show described contextual information.
In one embodiment, describedly send described trace debug order to described terminal, comprising: send described trace debug order by remote tracing debugging proxy server to described terminal;
The response message that the described terminal of described reception sends, comprising: receive the described response message that described terminal is returned by described trace debug proxy server.
According to the third aspect of disclosure embodiment, a kind of trace debug device is provided, for terminal, comprises:
Receiver module, for receiving the long-range trace debug order sended over of developing engine, described trace debug order is used for the destination object in terminal described in trace debug with leak BUG;
Processing module, processes for the described trace debug order received according to described receiver module, makes to have in described terminal the destination object of the default debug version corresponding with the described destination object with BUG;
Execution module, for the described trace debug order received according to described receiver module, performs trace debug operation to described destination object.
In one embodiment, described trace debug order comprises the retouching operation order to described destination object;
Described processing module, for according to retouching operation order to described destination object, to modify operation to described destination object, makes amended destination object be the destination object of default debug version.
In one embodiment, described trace debug order comprises the installation order of the destination object installing described default debug version;
Described processing module, for according to described installation order, obtains the installation kit of the default debug version of described destination object; Described installation kit is installed, makes the destination object being provided with default debug version in described terminal.
In one embodiment, also comprise use operational order in described trace debug order, described use operational order is used for analog subscriber and operates the use of the destination object of described default debug version;
Described operational module, for according to described use operational order, analog subscriber operates the use of the destination object of described default debug version.
In one embodiment, also comprise:
Context record module, for recording the contextual information produced when described execution module performs the operation of described trace debug, described contextual information is for recording the process of described trace debug operation;
Sending module, for returning the response message comprising contextual information to described developing engine.
In one embodiment, described receiver module, comprising: receive submodule, for receiving the described trace debug order that developing engine is sent by remote tracing debugging proxy server;
Sending module, comprising: send submodule, for returning described response message by described remote tracing debugging proxy server to described developing engine.
According to the fourth aspect of disclosure embodiment, a kind of trace debug device is provided, for developing engine, comprises:
Generation module, for generating trace debug order, described trace debug order is used for the destination object with BUG in trace debug terminal;
Sending module, for sending the described trace debug order that described generation module generates to described terminal, described trace debug instruction is used for by described terminal according to described trace debug order, performs trace debug operation to described destination object.
In one embodiment, also comprise:
Receiver module, for receiving the response message that described terminal sends, described response message comprises the contextual information that described terminal produces when performing the operation of described trace debug, and described contextual information performs the process of described trace debug order for recording;
Display module, for showing described contextual information.
In one embodiment, described sending module, comprising: send submodule, for sending described trace debug order by remote tracing debugging proxy server to described terminal;
Described receiver module, comprising: receive submodule, for receiving the described response message that described terminal is returned by described trace debug proxy server.
According to the 5th aspect of disclosure embodiment, a kind of trace debug device is provided, for terminal, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the trace debug order that developing engine sends, described trace debug order is used for the destination object in terminal described in trace debug with leak BUG;
Process according to described trace debug order, make to have in described terminal the destination object of the default debug version corresponding with the described destination object with BUG;
According to described trace debug order, trace debug operation is performed to the destination object of described default debug version.
According to the 6th aspect of disclosure embodiment, a kind of trace debug device is provided, for developing engine, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Generate trace debug order, described trace debug order is used for the destination object with leak BUG in trace debug terminal;
Send described trace debug order to described terminal, described trace debug instruction is used for by described terminal according to described trace debug order, performs trace debug operation to described destination object.
The technical scheme that disclosure embodiment provides can comprise following beneficial effect:
Technique scheme, developing engine generates trace debug order, and trace debug order is sent to terminal, terminal is according to trace debug order, trace debug operation is performed to the destination object of default debug version corresponding to the destination object with BUG, thus the location realized BUG and test, because developing engine can perform trace debug operation to destination object by remote control terminal, true environment in the terminal that user can be utilized to use is to locate BUG, thus can be very convenient, accurately, the BUG of location and the existence of Further aim object rapidly, save the time that developer spends when the BUG that test procedure or software exist, improve the efficiency of debugging.
Further feature of the present disclosure and advantage will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the disclosure.Object of the present disclosure and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Below by drawings and Examples, technical scheme of the present disclosure is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide further understanding of the disclosure, and forms a part for instructions, is used from the explanation disclosure, does not form restriction of the present disclosure with embodiment one of the present disclosure.In the accompanying drawings:
Fig. 1 is the Organization Chart of terminal 11 according to an exemplary embodiment and developing engine 12;
Fig. 2 is the process flow diagram of the trace debug method according to an exemplary embodiment;
Fig. 3 is the process flow diagram of the another kind of trace debug method according to an exemplary embodiment;
Fig. 4 is the process flow diagram of the another kind of trace debug method according to an exemplary embodiment;
Fig. 5 is the process flow diagram of the another kind of trace debug method according to an exemplary embodiment;
Fig. 6 is the process flow diagram of the another kind of trace debug method according to an exemplary embodiment;
Fig. 7 is the block diagram of the trace debug device according to an exemplary embodiment;
Fig. 8 is the block diagram of the another kind of trace debug device according to an exemplary embodiment;
Fig. 9 is the block diagram of the another kind of trace debug device according to an exemplary embodiment;
Figure 10 is the block diagram of the another kind of trace debug device according to an exemplary embodiment;
Figure 11 is the block diagram of the another kind of trace debug device according to an exemplary embodiment;
Figure 12 is the block diagram being applicable to trace debug device according to an exemplary embodiment;
Figure 13 is the block diagram being applicable to trace debug device according to an exemplary embodiment.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
The trace debug method that disclosure embodiment provides, as shown in Figure 1, relate to terminal 11 and developing engine 12, when carrying out remote debugging to the destination object in terminal 11, developing engine 12 can send trace debug order to terminal, terminal 11 is according to this trace debug order, trace debug operation is performed to the destination object of default debug version corresponding to the destination object with BUG, thus the location realized BUG and test, because developing engine 12 can perform trace debug operation by remote control terminal 11 pairs of destination objects, true environment in the terminal 11 that user can be utilized to use is to locate BUG, thus can be very convenient, accurately, the BUG of location and the existence of Further aim object rapidly, save the time that developer spends when the BUG that test procedure or software exist, improve the efficiency of debugging.
The executive agent implementing the method has terminal and developing engine, and disclosure embodiment, according to the difference of method subject of implementation, arranges two cover trace debug methods, as described below:
Disclosure embodiment provides the first trace debug method, and for terminal, terminal can be the terminal device such as mobile phone, computer of the actual use of user.As shown in Figure 2, the method comprising the steps of S201-S203:
In step s 201, receive the trace debug order that developing engine sends, described trace debug order is used for the destination object in terminal described in trace debug with BUG.
Developing engine is that software developer develops software or the machine of program, and destination object is software to be tested in terminal or program etc.According to the BUG of the destination object appearance that user proposes, multiple network protocol class can be used to generate the relevant trace debug order for debugging this BUG like HTTP (HyperText Transfer Protocol, HTML (Hypertext Markup Language)).For example, developer can the parameter such as agreement, form, content (such as software modification bag, AKU etc.) in pre-configured trace debug order, the software development environment preset according to pre-configured agreement, format and content etc., can generate the trace debug order of respective protocol, format and content automatically.
When carrying out trace debug to BUG, the developing engine of software engineer's manipulation first can be to be tested in long-range terminal device program, software etc. send trace debug order, in this step, terminal device receives the long-range trace debug order sended over of developing engine.
In step S202, process according to described trace debug order, make to have in described terminal the destination object of the default debug version corresponding with the described destination object with BUG.
In step S203, according to described trace debug order, trace debug operation is performed to described destination object.
The said method of disclosure embodiment, developing engine generates trace debug order, and trace debug order is sent to terminal, terminal is according to trace debug order, trace debug operation is performed to the destination object of default debug version corresponding to the destination object with BUG, thus the location realized BUG and test, because developing engine can perform trace debug operation to destination object by remote control terminal, true environment in the terminal that user can be utilized to use to locate BUG, thus can locate easily, accurately and rapidly and Further aim object exist BUG.
In one embodiment, described trace debug order comprises the retouching operation order to described destination object, and now, step S202 can be embodied as following steps A:
Steps A, according to the retouching operation order to described destination object, to modify operation to described destination object, makes amended destination object be the destination object of default debug version.
Destination object can be webpage, and trace debug order can comprise the retouching operation instruction to the webpage of specifying; If to be tested is webpage, trace debug order just contains html (Hyper Text Mark-up Language, HTML (Hypertext Markup Language)), css (Cascading style Sheets, cascading style list), the retouching operation instruction of the webpage of the form such as js (javaScript, a kind of literal translation formula script).Such as, can be that webpage is played up again to the operation of modifying of described destination object, Web page rendering is completed by browser, be roughly divided into the following steps: load: the URL according to request carries out domain name mapping, initiate request to server, receive file (such as HTML, JS, CSS, image etc.); Resolve: syntax parsing is carried out to the file be loaded into (HTML, JS, CSS, image etc.); Play up: build render tree, position calculation, pattern calculating etc. are carried out to each element in webpage, then according to render tree, Webpage is played up (can be understood as " picture " element).These processes do not isolate completely, have intersection, and such as HTML will resolve after loading, and then pulls CSS, JS etc. of specifying in HTML.
In one embodiment, described trace debug order comprises the installation order of the destination object installing described default debug version, and now, step S202 can be embodied as following steps B:
Step B, according to described installation order, obtains the installation kit of the default debug version of described destination object; Described installation kit is installed, makes the destination object being provided with default debug version in described terminal.
Destination object can be application program, and now, trace debug order can comprise the installation order of the application program of installing described default debug version.According to installation order, this installation kit is installed, makes the destination object having default debug version in terminal.Such as, according to the version of trace debug order instruction, such as, the version after upgrading or AKU, reinstall application program.
In one embodiment, also can comprise use operational order in described trace debug order, described use operational order is used for analog subscriber and operates the use of the destination object of described default debug version; Now, step S202 can be embodied as following steps C:
Step C, according to described use operational order, analog subscriber operates the use of the destination object of described default debug version.
Trace debug order also can comprise use operational order, namely under the real environment for use of customer mobile terminal, (such as directly utilize the environment of user mobile phone, comprise geographic position, network environment etc. residing for operating system that mobile phone is installed and various application program, the version of various application program, user), analog subscriber operates the use of the destination object of described default debug version.In use, developer can realize remote tracing to user, and the use operation of analog subscriber, can be implemented in this real environment of terminal device of user, locate BUG timely and accurately and analyze reason.
In one embodiment, as shown in Figure 3, said method also can comprise step S204-S205:
In step S204, the contextual information produced when record performs the operation of described trace debug, described contextual information is for recording the process of described trace debug operation.
In one embodiment, the contextual information produced when the described trace debug of described execution operates, comprises any one information following or much information:
The information of BUG occurred when performing the operation of described trace debug, the information of trace debug, perform the correct response message that described trace debug order obtains.
If there is the information of BUG, developer can be facilitated to check, and where program makes mistakes; After executing trace debug order, the information of also possibility returning tracking debugging, for recording some items in trace debug order implementation; After executing trace debug order, if there is no BUG, then the contextual information be presented on developing engine can comprise correct response message.
In step S205, return the response message comprising contextual information to described developing engine.
In the process of trace debug destination object, the contextual information that record produces when performing the operation of described trace debug, and the response message comprising contextual information is returned to developing engine, response message is presented on developing engine, so that developer checks the object information after executing trace debug order, thus carry out analyzing and debugging.
In one embodiment, as shown in Figure 4, step S201 can perform as following steps S401:
In step S401, receive the described trace debug order that developing engine is sent by remote tracing debugging proxy server.
When trace debug is carried out to BUG, first the developing engine of software developer's manipulation creates with remote tracing debugging proxy server and is connected, then send trace debug order to remote tracing debugging proxy server, then trace debug transferring order is given the destination object of long-range terminal device by remote tracing debugging proxy server.
Now, step S205 can perform as following steps S402:
In step S402, return described response message by described remote tracing debugging proxy server to described developing engine.
After terminal executes debug command, response message is sent to remote tracing debugging proxy server, by remote tracing debugging proxy transit server, response message is returned to developing engine.
In the present embodiment, developing engine can be realized by remote tracing debugging proxy server and cross over different networks trace debug order is sent to terminal.
Disclosure embodiment provides the second trace debug method, for developing engine, as shown in Figure 5, and the method comprising the steps of S501-S502:
In step S501, generate trace debug order, described trace debug order is used for the destination object with BUG in trace debug terminal.
When carrying out trace debug to destination object, first the developing engine of software developer's manipulation can generate trace debug order.
In step S502, send described trace debug order to described terminal, described trace debug instruction is used for by described terminal according to described trace debug order, performs trace debug operation to described destination object.
In one embodiment, as shown in Figure 6, said method also comprises step S503:
In step S503, receive the response message that described terminal sends, described response message comprises the contextual information that described terminal produces when performing the operation of described trace debug, and described contextual information performs the process of described trace debug order for recording, display contextual information.After terminal device executes trace debug order, can give that developing engine is long-range return response message, then developing engine contextual information can be presented at developing engine display interface on so that developer checks, and carry out analyzing and debugging.
In one embodiment, step S502 can perform as step D1:
Step D1, sends described trace debug order by remote tracing debugging proxy server to described terminal.When trace debug is carried out to destination object, first the developing engine of software developer's manipulation creates with remote tracing debugging proxy server and is connected, then send trace debug order to remote tracing debugging proxy server, then by remote tracing debugging proxy server by trace debug transferring order to the debugging module to be tracked of terminal.
Now, step S503 can perform as step D2:
Step D2, receives the described response message that described terminal is returned by described trace debug proxy server.
After debugging module to be tracked executes debug command, response message is sent to remote tracing debugging proxy server, by remote tracing debugging proxy transit server, response message is returned to developing engine.
The said method of disclosure embodiment, developing engine generates trace debug order, and trace debug order is sent to terminal, terminal is according to trace debug order, trace debug operation is performed to destination object, therefore developing engine can perform trace debug operation to destination object by remote control terminal, true environment in the terminal utilizing user to use is to locate BUG, thus can be very convenient, accurately, the BUG of location and the existence of Further aim object rapidly, save the time that developer spends when the BUG that test procedure or software exist, improve the efficiency of debugging.
Based on same inventive concept, the disclosure embodiment still provides a kind of trace debug device, the principle of dealing with problems due to these devices is similar to aforementioned trace debug method, and therefore the enforcement of this device see the enforcement of preceding method, can repeat part and repeat no more.
Fig. 7 is the block diagram of a kind of trace debug device according to an exemplary embodiment, and as shown in Figure 7, this trace debug device comprises:
Receiver module 71, is configured to receive the long-range trace debug order sended over of developing engine, and described trace debug order is used for the destination object in terminal described in trace debug with BUG.
Processing module 72, the described trace debug order being configured to receive according to receiver module 71 processes, and makes to have in described terminal the destination object of the default debug version corresponding with the described destination object with BUG.
Execution module 73, is configured to the described trace debug order received according to receiver module 71, performs trace debug operation to described destination object.
In one embodiment, described trace debug order comprises the retouching operation order to described destination object.
Processing module 72, is configured to the retouching operation order according to described destination object, to modify operation to described destination object, makes amended destination object be the destination object of default debug version.
In one embodiment, described trace debug order comprises the installation order of the destination object installing described default debug version.
Processing module 72, is configured to according to described installation order, obtains the installation kit of the default debug version of described destination object; Described installation kit is installed, makes the destination object being provided with default debug version in described terminal.
In one embodiment, also comprise use operational order in described trace debug order, described use operational order is used for analog subscriber and operates the use of the destination object of described default debug version.
Operational module 71, is configured to according to described use operational order, and analog subscriber operates the use of the destination object of described default debug version.
In one embodiment, as shown in Figure 8, said apparatus also comprises:
Context record module 74, be configured to record the contextual information produced when execution module 73 performs the operation of described trace debug, described contextual information is for recording the process of described trace debug operation.
Sending module 75, is configured to return to described developing engine the response message comprising contextual information.
In one embodiment, as shown in Figure 9, described receiver module 71, comprising: receive submodule 711, is configured to the described trace debug order that reception developing engine is sent by remote tracing debugging proxy server.
Sending module 75, comprising: send submodule 751, be configured to return described response message by described remote tracing debugging proxy server to described developing engine.
The said apparatus of disclosure embodiment, developing engine generates trace debug order, and trace debug order is sent to terminal, terminal receiver module is after receiving trace debug order, the trace debug order received according to receiver module by processing module processes, make the destination object in terminal with the default debug version corresponding with the destination object with BUG, then execution module is according to trace debug order, trace debug operation is performed to destination object, therefore developing engine can perform trace debug operation to destination object by remote control terminal, true environment in the terminal that user can be utilized to use is to locate BUG, thus can be very convenient, accurately, the BUG of location and the existence of Further aim object rapidly, save the time that developer spends when the BUG that test procedure or software exist, improve the efficiency of debugging.
Figure 10 is the block diagram of a kind of trace debug device according to an exemplary embodiment, and as shown in Figure 10, this trace debug device comprises:
Generation module 101, be configured to generate trace debug order, described trace debug order is used for the destination object with BUG in trace debug terminal.
Sending module 102, is configured to the described trace debug order sending generation module 101 generation to described terminal, and described trace debug instruction is used for by described terminal according to described trace debug order, performs trace debug operation to described destination object.
In one embodiment, as shown in figure 11, said apparatus also can comprise:
Receiver module 103, be configured to the response message receiving the transmission of described terminal, described response message comprises the contextual information that described terminal produces when performing the operation of described trace debug, and described contextual information performs the process of described trace debug order for recording.
Display module 104, is configured to show described contextual information.
In one embodiment, sending module 102, comprising: send submodule, for sending described trace debug order by remote tracing debugging proxy server to described terminal.
Receiver module 103, comprising: receive submodule, for receiving the described response message that described terminal is returned by described trace debug proxy server.
The said apparatus of disclosure embodiment, developing engine generates trace debug order, and trace debug order is sent to terminal, so that terminal is according to trace debug order, trace debug operation is performed to destination object, therefore developing engine can perform trace debug operation to destination object by remote control terminal, true environment in the terminal that user can be utilized to use is to locate BUG, thus can be very convenient, accurately, the BUG of location and the existence of Further aim object rapidly, save the time that developer spends when the BUG that test procedure or software exist, improve the efficiency of debugging.
According to the 5th aspect of disclosure embodiment, a kind of trace debug device is provided, for terminal, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the trace debug order that developing engine sends, described trace debug order is used for the destination object in terminal described in trace debug with BUG.
Process according to described trace debug order, make to have in described terminal the destination object of the default debug version corresponding with the described destination object with BUG.
According to described trace debug order, trace debug operation is performed to the destination object of described default debug version.
Described processor is also configured to: described trace debug order comprises the retouching operation order to described destination object.
Describedly to process according to described trace debug order, make the destination object in described terminal with default debug version, comprise: according to the retouching operation order to described destination object, described destination object is modified operation, makes amended destination object be the destination object of default debug version.
Described processor is also configured to: described trace debug order comprises the installation order of the destination object installing described default debug version.
Describedly to process according to described trace debug order, make the destination object in described terminal with default debug version, comprising: according to described installation order, obtain the installation kit of the default debug version of described destination object; Described installation kit is installed, makes the destination object being provided with default debug version in described terminal.
Described processor is also configured to: also comprise use operational order in described trace debug order, and described use operational order is used for analog subscriber and operates the use of the destination object of described default debug version.
According to described trace debug order, perform trace debug operation to the destination object of described default debug version, comprising: according to described use operational order, analog subscriber operates the use of the destination object of described default debug version.
Described processor is also configured to: described method also comprises:
The contextual information that record produces when performing the operation of described trace debug, described contextual information is for recording the process of described trace debug operation.
The response message comprising contextual information is returned to described developing engine.
Described processor is also configured to: the described trace debug order that described reception developing engine sends, and comprising: receive the described trace debug order that developing engine is sent by remote tracing debugging proxy server.
Describedly return the response message comprising described contextual information to described developing engine, comprising: return described response message by described remote tracing debugging proxy server to described developing engine.
According to the 6th aspect of disclosure embodiment, a kind of trace debug device is provided, for developing engine, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Generate trace debug order, described trace debug order is used for the destination object with BUG in trace debug terminal.
Send described trace debug order to described terminal, described trace debug instruction is used for by described terminal according to described trace debug order, performs trace debug operation to described destination object.
Described processor is also configured to: receive the response message that described terminal sends, described response message comprises the contextual information that described terminal produces when performing the operation of described trace debug, and described contextual information performs the process of described trace debug order for recording.
Show described contextual information.
Described processor is also configured to: describedly send described trace debug order to described terminal, comprising: send described trace debug order by remote tracing debugging proxy server to described terminal.
The response message that the described terminal of described reception sends, comprising: receive the described response message that described terminal is returned by described trace debug proxy server.
Figure 12 is a kind of block diagram for trace debug device according to an exemplary embodiment, and this device is applicable to terminal device.Such as, device 1200 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 12, device 1200 can comprise following one or more assembly: processing components 1202, storer 1204, power supply module 1206, multimedia groupware 1208, audio-frequency assembly 1210, the interface 1212 of I/O (I/O), sensor module 1214, and communications component 1216.
The integrated operation of the usual control device 1200 of processing components 1202, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 1202 can comprise one or more processor 1220 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1202 can comprise one or more module, and what be convenient between processing components 1202 and other assemblies is mutual.Such as, processing element 1202 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1208 and processing components 1202.
Storer 1204 is configured to store various types of data to be supported in the operation of equipment 1200.The example of these data comprises for any application program of operation on device 1200 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 1204 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that electric power assembly 1206 is device 1200 provide electric power.Electric power assembly 1206 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1200 and be associated.
Multimedia groupware 1208 is included in the screen providing an output interface between described device 1200 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 1208 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 1200 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1210 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1210 comprises a microphone (MIC), and when device 1200 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 1204 further or be sent via communications component 1216.In certain embodiments, audio-frequency assembly 1210 also comprises a loudspeaker, for output audio signal.
I/O interface 1212 is for providing interface between processing components 1202 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 1214 comprises one or more sensor, for providing the state estimation of various aspects for device 1200.Such as, sensor module 1214 can detect the opening/closing state of equipment 1200, the relative positioning of assembly, such as described assembly is display and the keypad of device 1200, the position of all right pick-up unit 1200 of sensor module 1214 or device 1200 assemblies changes, the presence or absence that user contacts with device 1200, the temperature variation of device 1200 orientation or acceleration/deceleration and device 1200.Sensor module 1214 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 1214 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 1214 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 1216 is configured to the communication being convenient to wired or wireless mode between device 1200 and other equipment.Device 1200 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 1216 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 1216 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1200 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 1204 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 1200.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Figure 13 is a kind of block diagram for trace debug device 1300 according to an exemplary embodiment.Such as, device 1300 may be provided in a server.With reference to Figure 13, device 1300 comprises processing components 1322, and it comprises one or more processor further, and the memory resource representated by storer 1332, can such as, by the instruction of the execution of processing element 1322, application program for storing.The application program stored in storer 1332 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1322 is configured to perform instruction, to perform the above method.
Device 1300 can also comprise the power management that a power supply module 1326 is configured to actuating unit 1300, and a wired or wireless network interface 1350 is configured to device 1300 to be connected to network, and input and output (I/O) interface 1358.Device 1300 can operate the operating system based on being stored in storer 1332, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of device 1200, make device 1200 can perform above-mentioned trace debug method, described method comprises:
Receive the trace debug order that developing engine sends, described trace debug order is used for the destination object in terminal described in trace debug with BUG.
Process according to described trace debug order, make to have in described terminal the destination object of the default debug version corresponding with the described destination object with BUG.
According to described trace debug order, trace debug operation is performed to the destination object of described default debug version.
In one embodiment, described trace debug order comprises the retouching operation order to described destination object.
Describedly to process according to described trace debug order, make the destination object in described terminal with default debug version, comprise: according to the retouching operation order to described destination object, described destination object is modified operation, makes amended destination object be the destination object of default debug version.
In one embodiment, described trace debug order comprises the installation order of the destination object installing described default debug version.
Describedly to process according to described trace debug order, make the destination object in described terminal with default debug version, comprising: according to described installation order, obtain the installation kit of the default debug version of described destination object; Described installation kit is installed, makes the destination object being provided with default debug version in described terminal.
In one embodiment, also comprise use operational order in described trace debug order, described use operational order is used for analog subscriber and operates the use of the destination object of described default debug version.
According to described trace debug order, perform trace debug operation to the destination object of described default debug version, comprising: according to described use operational order, analog subscriber operates the use of the destination object of described default debug version.
In one embodiment, described method also comprises:
The contextual information that record produces when performing the operation of described trace debug, described contextual information is for recording the process of described trace debug operation.
The response message comprising contextual information is returned to described developing engine.
In one embodiment, the described trace debug order that described reception developing engine sends, comprising: receive the described trace debug order that developing engine is sent by remote tracing debugging proxy server.
Describedly return the response message comprising described contextual information to described developing engine, comprising: return described response message by described remote tracing debugging proxy server to described developing engine.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of device 1200, make device 1200 can perform above-mentioned trace debug method, described method comprises:
Generate trace debug order, described trace debug order is used for the destination object with BUG in trace debug terminal.
Send described trace debug order to described terminal, described trace debug instruction is used for by described terminal according to described trace debug order, performs trace debug operation to described destination object.
In one embodiment, receive the response message that described terminal sends, described response message comprises the contextual information that described terminal produces when performing the operation of described trace debug, and described contextual information performs the process of described trace debug order for recording.
In one embodiment, described method also comprises:
Show described contextual information.
In one embodiment, describedly send described trace debug order to described terminal, comprising: send described trace debug order by remote tracing debugging proxy server to described terminal.
The response message that the described terminal of described reception sends, comprising: receive the described response message that described terminal is returned by described trace debug proxy server.
Those skilled in the art, at consideration instructions and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (20)

1. a trace debug method, for terminal, is characterized in that, comprising:
Receive the trace debug order that developing engine sends, described trace debug order is used for the destination object in terminal described in trace debug with leak BUG;
Process according to described trace debug order, make to have in described terminal the destination object of the default debug version corresponding with the described destination object with BUG;
According to described trace debug order, trace debug operation is performed to the destination object of described default debug version.
2. the method for claim 1, is characterized in that,
Described trace debug order comprises the retouching operation order to described destination object;
Describedly to process according to described trace debug order, make the destination object in described terminal with default debug version, comprise: according to the retouching operation order to described destination object, described destination object is modified operation, makes amended destination object be the destination object of default debug version.
3. the method for claim 1, is characterized in that,
Described trace debug order comprises the installation order of the destination object installing described default debug version;
Describedly to process according to described trace debug order, make the destination object in described terminal with default debug version, comprising: according to described installation order, obtain the installation kit of the default debug version of described destination object; Described installation kit is installed, makes the destination object being provided with default debug version in described terminal.
4., as the method as described in arbitrary in claims 1 to 3, it is characterized in that,
Also comprise use operational order in described trace debug order, described use operational order is used for analog subscriber and operates the use of the destination object of described default debug version;
According to described trace debug order, perform trace debug operation to the destination object of described default debug version, comprising: according to described use operational order, analog subscriber operates the use of the destination object of described default debug version.
5. method as claimed in claim 4, it is characterized in that, described method also comprises:
The contextual information that record produces when performing the operation of described trace debug, described contextual information performs the process of described trace debug order for recording;
The response message comprising described contextual information is returned to described developing engine.
6. method as claimed in claim 5, is characterized in that,
The described trace debug order that described reception developing engine sends, comprising: receive the described trace debug order that developing engine is sent by remote tracing debugging proxy server;
Describedly return the response message comprising described contextual information to described developing engine, comprising: return described response message by described remote tracing debugging proxy server to described developing engine.
7. a trace debug method, for developing engine, is characterized in that, comprising:
Generate trace debug order, described trace debug order is used for the destination object with leak BUG in trace debug terminal;
Send described trace debug order to described terminal, described trace debug instruction is used for by described terminal according to described trace debug order, performs trace debug operation to described destination object.
8. method as claimed in claim 7, is characterized in that,
Receive the response message that described terminal sends, described response message comprises the contextual information that described terminal produces when performing the operation of described trace debug, and described contextual information performs the process of described trace debug order for recording;
Show described contextual information.
9. method as claimed in claim 7 or 8, is characterized in that,
Describedly send described trace debug order to described terminal, comprising: send described trace debug order by remote tracing debugging proxy server to described terminal;
The response message that the described terminal of described reception sends, comprising: receive the described response message that described terminal is returned by described trace debug proxy server.
10. a trace debug device, for terminal, is characterized in that, comprising:
Receiver module, for receiving the long-range trace debug order sended over of developing engine, described trace debug order is used for the destination object in terminal described in trace debug with leak BUG;
Processing module, processes for the described trace debug order received according to described receiver module, makes to have in described terminal the destination object of the default debug version corresponding with the described destination object with BUG;
Execution module, for the described trace debug order received according to described receiver module, performs trace debug operation to described destination object.
11. devices as claimed in claim 10, it is characterized in that, described trace debug order comprises the retouching operation order to described destination object;
Described processing module, for according to retouching operation order to described destination object, to modify operation to described destination object, makes amended destination object be the destination object of default debug version.
12. devices as claimed in claim 10, is characterized in that, described trace debug order comprises the installation order of the destination object installing described default debug version;
Described processing module, for according to described installation order, obtains the installation kit of the default debug version of described destination object; Described installation kit is installed, makes the destination object being provided with default debug version in described terminal.
13. as arbitrary in claim 10 to 12 as described in device, it is characterized in that, in described trace debug order, also comprise use operational order, described use operational order be used for analog subscriber the use of the destination object of described default debug version is operated;
Described operational module, for according to described use operational order, analog subscriber operates the use of the destination object of described default debug version.
14. devices as claimed in claim 13, is characterized in that, also comprise:
Context record module, for recording the contextual information produced when described execution module performs the operation of described trace debug, described contextual information is for recording the process of described trace debug operation;
Sending module, for returning the response message comprising contextual information to described developing engine.
15. devices as claimed in claim 14, it is characterized in that, described receiver module, comprising: receive submodule, for receiving the described trace debug order that developing engine is sent by remote tracing debugging proxy server;
Described sending module, comprising: send submodule, for returning described response message by described remote tracing debugging proxy server to described developing engine.
16. 1 kinds of trace debug devices, for developing engine, is characterized in that, comprising:
Generation module, for generating trace debug order, described trace debug order is used for the destination object with leak BUG in trace debug terminal;
Sending module, for sending the described trace debug order that described generation module generates to described terminal, described trace debug instruction is used for by described terminal according to described trace debug order, performs trace debug operation to described destination object.
17. devices as claimed in claim 16, is characterized in that, also comprise:
Receiver module, for receiving the response message that described terminal sends, described response message comprises the contextual information that described terminal produces when performing the operation of described trace debug, and described contextual information performs the process of described trace debug order for recording;
Display module, for showing described contextual information.
18. devices as described in claim 16 or 17, it is characterized in that, described sending module, comprising: send submodule, for sending described trace debug order by remote tracing debugging proxy server to described terminal;
Described receiver module, comprising: receive submodule, for receiving the described response message that described terminal is returned by described trace debug proxy server.
19. 1 kinds of trace debug devices, for terminal, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the trace debug order that developing engine sends, described trace debug order is used for the destination object in terminal described in trace debug with leak BUG;
Process according to described trace debug order, make to have in described terminal the destination object of the default debug version corresponding with the described destination object with BUG;
According to described trace debug order, trace debug operation is performed to the destination object of described default debug version.
20. 1 kinds of trace debug devices, for developing engine, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Generate trace debug order, described trace debug order is used for the destination object with leak BUG in trace debug terminal;
Send described trace debug order to described terminal, described trace debug instruction is used for by described terminal according to described trace debug order, performs trace debug operation to described destination object.
CN201510310639.4A 2015-06-08 2015-06-08 Trace debug method and device Active CN104991857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510310639.4A CN104991857B (en) 2015-06-08 2015-06-08 Trace debug method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510310639.4A CN104991857B (en) 2015-06-08 2015-06-08 Trace debug method and device

Publications (2)

Publication Number Publication Date
CN104991857A true CN104991857A (en) 2015-10-21
CN104991857B CN104991857B (en) 2019-02-12

Family

ID=54303673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510310639.4A Active CN104991857B (en) 2015-06-08 2015-06-08 Trace debug method and device

Country Status (1)

Country Link
CN (1) CN104991857B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664380A (en) * 2017-03-30 2018-10-16 中国航空工业集团公司西安航空计算技术研究所 Software debugging system and adjustment method after a kind of execution shown with performance
CN108845948A (en) * 2018-07-09 2018-11-20 郑州云海信息技术有限公司 The method and apparatus of defect are managed in software testing system
CN109117361A (en) * 2018-06-21 2019-01-01 腾讯科技(深圳)有限公司 A kind of remote debugging method of small routine, relevant device and system
CN110471845A (en) * 2019-07-16 2019-11-19 腾讯科技(深圳)有限公司 Smart machine on-line debugging method, apparatus and system, electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5615331A (en) * 1994-06-23 1997-03-25 Phoenix Technologies Ltd. System and method for debugging a computing system
CN102279789A (en) * 2010-06-13 2011-12-14 三星电子(中国)研发中心 Debugging system and debugging method for embedded system of production phase
CN102902618A (en) * 2011-07-28 2013-01-30 华为技术有限公司 Method and device for developing and debugging application programs of mobile equipment
CN104281520A (en) * 2013-07-10 2015-01-14 腾讯科技(深圳)有限公司 Tracking and debugging method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5615331A (en) * 1994-06-23 1997-03-25 Phoenix Technologies Ltd. System and method for debugging a computing system
CN102279789A (en) * 2010-06-13 2011-12-14 三星电子(中国)研发中心 Debugging system and debugging method for embedded system of production phase
CN102902618A (en) * 2011-07-28 2013-01-30 华为技术有限公司 Method and device for developing and debugging application programs of mobile equipment
CN104281520A (en) * 2013-07-10 2015-01-14 腾讯科技(深圳)有限公司 Tracking and debugging method, device and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664380A (en) * 2017-03-30 2018-10-16 中国航空工业集团公司西安航空计算技术研究所 Software debugging system and adjustment method after a kind of execution shown with performance
CN108664380B (en) * 2017-03-30 2021-08-03 中国航空工业集团公司西安航空计算技术研究所 After-execution software debugging system with performance display and debugging method
CN109117361A (en) * 2018-06-21 2019-01-01 腾讯科技(深圳)有限公司 A kind of remote debugging method of small routine, relevant device and system
CN109117361B (en) * 2018-06-21 2020-12-15 腾讯科技(深圳)有限公司 Remote debugging method, related equipment and system for small program
CN108845948A (en) * 2018-07-09 2018-11-20 郑州云海信息技术有限公司 The method and apparatus of defect are managed in software testing system
CN110471845A (en) * 2019-07-16 2019-11-19 腾讯科技(深圳)有限公司 Smart machine on-line debugging method, apparatus and system, electronic equipment

Also Published As

Publication number Publication date
CN104991857B (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN104778063A (en) Method and device for updating resource
CN104133844A (en) Method and device for loading webpage
CN106201610A (en) Web application accesses the method and device of the primary function of terminal
CN105069050A (en) Search response method, apparatus and system
CN114240882A (en) Defect detection method and device, electronic equipment and storage medium
CN103916468A (en) System upgrading method, terminal, server and upgrading system
CN105808305A (en) Static resource loading method and device
CN105094830A (en) Method and device for executing target functions
CN105095081A (en) Application program function testing method and device
CN104991857A (en) Method and apparatus for trace debugging
CN104881304A (en) Resource downloading method and device
CN107423218A (en) Application testing method, device and terminal
CN104035977A (en) Webpage loading method and device
CN105468417A (en) Application software installation method and device
CN105183571A (en) Function calling method and device
CN107911482A (en) Intended application deployment method and device
CN108984417B (en) Software testing method, device, terminal and storage medium
CN104063424B (en) Web page picture shows method and demonstration device
CN106612149B (en) Radio frequency circuit testing method, device and system and mobile terminal
CN107402756B (en) Method, device and terminal for drawing page
CN105808304A (en) Code deployment method, device and system
CN106790683B (en) Network data display method and device based on mobile terminal
CN104899059A (en) Method and apparatus for upgrading operating system
CN104111829A (en) Data storage method and device
CN113626321B (en) Bridging test method, device, system and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant