CN104536892A - Software online debugging method and system - Google Patents

Software online debugging method and system Download PDF

Info

Publication number
CN104536892A
CN104536892A CN201510003876.6A CN201510003876A CN104536892A CN 104536892 A CN104536892 A CN 104536892A CN 201510003876 A CN201510003876 A CN 201510003876A CN 104536892 A CN104536892 A CN 104536892A
Authority
CN
China
Prior art keywords
tracked
software
point
instruction
debugging
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
CN201510003876.6A
Other languages
Chinese (zh)
Other versions
CN104536892B (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology Co Ltd
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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201510003876.6A priority Critical patent/CN104536892B/en
Publication of CN104536892A publication Critical patent/CN104536892A/en
Application granted granted Critical
Publication of CN104536892B publication Critical patent/CN104536892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a software online debugging method and system. The method includes the steps that a tracked point in the software is determined; when the tracked point is conducted, a software current running environment at the tracked point is saved; stored online debugging instructions are transferred, debugging tasks are operated, and online debugging information is output; the software current running environment is recovered, and the follow-up procedures of the software continue to be operated from the tracked point. The software online debugging method and system transfer debugging instructions in the form of a procedure transfer, the debugging instructions are convenient to modify and delete, it is avoided that the debugging instructions are written in the software procedures directly in a hard-coded form; and meanwhile, the software program does not need to be restarted; and a random change of the debugging instructions is achieved in the process of debugging.

Description

A kind of software on-line debugging method and system
Technical field
The present invention relates to program debug field, particularly relate to a kind of software on-line debugging method and system.
Background technology
At present, in the use procedure after software development and software development, inevitably various software issue.The existing method for positioning software problem comprises: running log, debug command, single step are followed the trail of.
In said method, running log and debug command need the relevant position debug command producing daily record and Debugging message being write in advance software program by the mode of hard coded.The debug command write by hard coded is not easily changed and is deleted, and also because the debugging write by hard coded is not easily deleted, occupies internal memory, makes to put to position software error in any soft bits to become infeasible.In addition, after debug command to be write the relevant position of software program by technician by the mode of hard coded, also need to re-start scheduling, compiling to the software program of write debug command, connect and run, after software program reruns, the running environment of original software error may be lost/be changed, and software error is not easily reappeared.
In said method, single step is followed the trail of as often to execute after a statement, will stop, display ruuning situation, this method requires that technician is always at the scene to analyze the operation result of every bar statement, Timeliness coverage mistake, and this method is more suitable for the debugging of the software program of single task.And often have in the real-time software program of the network equipment simultaneously tens tasks operation and interrelated between task, single step follow the trail of inadaptable.
Summary of the invention
The invention provides a kind of software on-line debugging method and system, to solve the problem how realizing change debug command arbitrarily in debug process.
For solving the problems of the technologies described above, the invention provides a kind of software on-line debugging method, described method comprises:
Determine the tracked point in software;
When performing at described tracked, preserve the software current operating environment at described tracked some place;
Call the on-line debugging instruction stored, perform debugging task, export on-line debugging information;
Recover described software current operating environment, continue to perform described software down-stream from described tracked point.
Alternatively, the described tracked point determined in software specifically comprises:
What inputted by order line reception user arranges instruction, the described address arranging instruction and comprise tracked point in described software;
Be assembly routine by the binary machine instruction dis-assembling at described tracked dot address place;
The position of described tracked point is determined according to described assembly routine.
Alternatively, described when performing at described tracked, the software current operating environment preserving described tracked some place specifically comprises:
When performing at described tracked, according to the jump instruction in tracked dot generation, jump to the protection/recovery environmental directives be stored in described software;
Perform the protection of the environment instruction in described protection/recovery environmental directives, preserve the software current operating environment at described tracked some place.
Alternatively, described in call the on-line debugging instruction stored, perform debugging task, export on-line debugging information and specifically comprise:
Perform described protection/recovery environmental directives;
When performing the jump-point in described protection/recovery environmental directives, by described jump-point, jump to described on-line debugging instruction;
Perform described on-line debugging instruction, export on-line debugging information.
Alternatively, the described software current operating environment of described recovery, continues to perform described software down-stream from described tracked point and specifically comprises:
When after output on-line debugging information, return described jump-point from described on-line debugging instruction redirect;
Perform the recovery environmental directives in described protection/recovery environmental directives, and described tracked point is returned in redirect, continue to perform described software down-stream from described tracked point.
Alternatively, described method also comprises:
In the process performing debugging task, by order line, the tracked dotted state receiving user's input checks instruction;
Check instruction according to described, the status information of tracked point in software described in described user feedback, the status information of described tracked point comprise following one or more:
The execution time of tracked point, the state of each register of current C PU, current task stack information.
Alternatively, also comprise after the described tracked point determined in software:
By order line, receive the tracked point deletion instruction of user's input, described tracked point deletion instruction comprises the position of described tracked point to be deleted;
Be that the binary machine instruction before described tracked point is set by the position recovering of described tracked point to be deleted;
When performing the position of former described tracked point, perform described binary machine instruction.
For solving the problems of the technologies described above, present invention also offers a kind of software on-line debugging system, described system comprises:
Tracked some determination module, for determining the tracked point in software;
Program execution module, for when performing at described tracked, preserves the software current operating environment at described tracked some place; And after debugging terminates, recover described software current operating environment, continue to perform described software down-stream from described tracked point;
Debugging module, for after preservation software current operating environment, calls the on-line debugging instruction stored, performs debugging task, export on-line debugging information.
Alternatively, described tracked some determination module, for determining the tracked point in software, specifically comprises:
What inputted by order line reception user arranges instruction, the described address arranging instruction and comprise tracked point in described software;
Be assembly routine by the binary machine instruction dis-assembling of described tracked dot address;
The position of described tracked point is determined according to described assembly routine.
Alternatively, described program execution module, for when performing at described tracked, preserving the software current operating environment at described tracked some place, specifically comprising:
When performing at described tracked, according to the jump instruction in tracked dot generation, jump to the protection/recovery environmental directives be stored in described software;
Perform the protection of the environment instruction in described protection/recovery environmental directives, preserve the software current operating environment at described tracked some place.
Alternatively, described debugging module, for calling the on-line debugging instruction stored, performing debugging task, exporting on-line debugging information, specifically comprising:
Perform described protection/recovery environmental directives;
When performing the jump-point in described protection/recovery environmental directives, by described jump-point, jump to described on-line debugging instruction;
Perform described on-line debugging instruction, export on-line debugging information.
Alternatively, described program execution module, for recovering described software current operating environment, continuing to perform described software down-stream from described tracked point, specifically comprising:
When after output on-line debugging information, return described jump-point from described on-line debugging instruction redirect;
Perform the recovery environmental directives in described protection/recovery environmental directives, and described tracked point is returned in redirect, continue to perform described software down-stream from described tracked point.
Alternatively, described system also comprises:
State checks module, and in debugging task implementation, by order line, the tracked dotted state receiving user's input checks instruction;
Check instruction according to described, the status information of tracked point in software described in described user feedback, the status information of described tracked point comprise following one or more:
The execution time of tracked point, the state of each register of current C PU, current task stack information.
Alternatively, described system also comprises:
Tracked point deletion module, for passing through order line, receive the tracked point deletion instruction of user's input, described tracked point deletion instruction comprises the position of described tracked point to be deleted;
Be that the binary machine instruction before described tracked point is set by the position recovering of described tracked point to be deleted;
When performing the position of former described tracked point, perform described binary machine instruction.
By applying a kind of software on-line debugging method and system provided by the invention, when software program runs, dynamically arranging tracked point, by the tracked point arranged, preserving the software current operating environment at tracked some place; Call the on-line debugging instruction stored, perform debugging task, export on-line debugging information; And recover software current operating environment, continue executive software down-stream from tracked point.Call debug command with the form of routine call, facilitate amendment and the deletion of debug command, avoid and debug command is directly write software program with the form of hard coded, realize changing debug command arbitrarily in debug process; Meanwhile, do not need to restart software program yet; In addition, technique scheme is calling debug command, software current operating environment is preserved before performing debugged program, and terminate in debugging, first recover the software current operating environment preserved, then return from tracked point, continue executive software down-stream from tracked point, make software down-stream can continue to perform under original running environment, avoid the impact on original software program.
Accompanying drawing explanation
The software on-line debugging method flow diagram that Fig. 1 provides for the embodiment of the present invention;
Software debugging flow process comparison diagram in the software debugging flow process that Fig. 2 provides for the embodiment of the present invention and existing running log and debug command;
The software on-line debugging system comprising modules figure that Fig. 3 provides for the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
In use procedure after software development and software development, inevitably various software issue.When technician to want before running software, even in software running process and do not stop existing running software process, software is debugged, following embodiment can be adopted to record software on-line debugging method.
The software on-line debugging method that following embodiment is recorded calls online debug command with the form of routine call, does not need to restart software program; Before execution on-line debugging program, preserve the current operating environment of software at tracked point, when returning after debugging is terminated at tracked, program can continue to perform under original running environment.
Below for the software on-line debugging method that Fig. 1 detailed description embodiment of the present invention provides, the software on-line debugging method flow diagram that Fig. 1 provides for the embodiment of the present invention.PC), desktop computer etc. subject of implementation can be the equipment such as communication facilities, terminal, server in embodiments of the present invention, and described terminal is specially PC, and (PersonalComputer is called for short:.As shown in Figure 1, this embodiment specifically comprises the following steps:
Step S101, the tracked point determined in software;
Particularly, step S101 comprises: what inputted by order line reception user arranges instruction, the described address arranging instruction and comprise tracked point in described software; Be assembly routine by the binary machine instruction dis-assembling of described tracked dot address; The position of described tracked point is determined according to described assembly routine.
Such as, in vxworks operating system, commissioning staff can enable shell instruction by order line, is obtained the address of C code function name correspondence by " lkup " order; By ordering the binary machine instruction providing the address of function to carry out this function of dis-assembling to " l ".Commissioning staff can as required, by order line using arbitrfary point in function as tracked point.
Further, also function entrance point can be set to tracked point, now, by order line, can directly using the address of function name as tracked point.
The tracked point in software program can be determined arbitrarily by step S101.
Step S102, when perform to described tracked some time, preserve the software current operating environment at described tracked some place;
Described software current operating environment comprises: the content of CPU register;
Being understandable that, by preserving the content of CPU register, can, after executing on-line debugging instruction, making the execution of original software program be able to unaffected and continue to perform.
Particularly, step S102 comprises:
When performing at described tracked, according to the jump instruction in tracked dot generation, jump to the protection/recovery environmental directives be stored in described software; Perform the protection of the environment instruction in described protection/recovery environmental directives, preserve the software current operating environment at described tracked some place.
Step S103, call the on-line debugging instruction stored, perform debugging task, export on-line debugging information;
Particularly, step S103 comprises:
Perform described protection/recovery environmental directives; When performing the jump-point in described protection/recovery environmental directives, by described jump-point, jump to described on-line debugging instruction;
Perform described on-line debugging instruction, export on-line debugging information.
Further, in this step, the on-line debugging information of output comprises: the execution time of tracked point, the state of each register of current C PU, current task stack information.Above-mentioned information includes all information performing and perform at tracked some place about current debug task in on-line debugging instruction, according to above-mentioned information, to make commissioning staff judge whether there is exception in the execution of tracked point, and when occurring abnormal, position abnormal.
It should be noted that, in embodiments of the present invention, described on-line debugging information can comprise multi-layer on-line debugging, such as, comprises the first level on-line debugging information, the second level on-line debugging information etc.
Be understandable that, in embodiments of the present invention, when execution first level on-line debugging information, by the jump-point in the first level on-line debugging information, jump to that the second level on-line debugging information relay is continuous to be modulated, and then realize multi-layer on-line debugging.
Step S104, recover described software current operating environment, continue to perform described software down-stream from described tracked point.
Particularly, step S104 comprises:
When after output on-line debugging information, return described jump-point from described on-line debugging instruction redirect; Perform the recovery environmental directives in described protection/recovery environmental directives, and described tracked point is returned in redirect, continue to perform described software down-stream from described tracked point.
Further, when relating to multi-layer on-line debugging, after current level on-line debugging terminates, redirect is back to the jump-point place of last level, and perform the program after last level jump-point, redirect is back in original software program successively.
It should be noted that, in embodiments of the present invention, also according to the number of the tracked point arranged, the protection/recovery environmental directives of equal amount can be stored, during to make to perform each tracked some place, carry out redirect easily and flexibly.
Further, in embodiments of the present invention, the position of the tracked point of autostore and tracked some place binary machine instruction is gone back, to carry out redirect or readjustment being chased after a place.Such as, by directly writing internal memory mode, the internal memory at tracked dot address place being revised as the start address place of " protection/recover environmental directives " program segment, and then realizing redirect; And tracked some place binary machine instruction is added to the end place of " protection/recover environmental directives " program segment, and then realize readjustment.
By applying the above-mentioned steps S101-step S104 of the embodiment of the present invention, when software program runs, dynamically arranging tracked point, by the tracked point arranged, preserving the software current operating environment at tracked some place; Call the on-line debugging instruction stored, perform debugging task, export on-line debugging information; And recover software current operating environment, continue executive software down-stream from tracked point.Avoid by debug command directly with in the form of hard coded write software program, but call debug command with the form of routine call, facilitate amendment and the deletion of debug command, realize changing debug command arbitrarily in debug process; Meanwhile, do not need to restart software program yet.
Alternatively, to be determined the tracked point in software by step S101 at above-described embodiment after, also comprise the tracked point deletion instruction receiving user's input, delete the step of tracked point according to this instruction, debug process can be made more convenient and flexible by this step.Concrete steps are as follows:
By order line, receive the tracked point deletion instruction of user's input, described tracked point deletion instruction comprises the position of described tracked point to be deleted;
Be that the binary machine instruction before described tracked point is set by the position recovering of described tracked point to be deleted;
When performing the position of former described tracked point, perform described binary machine instruction, such program just shows as the behavior arranged before tracked point.
Particularly, by order line, receiving the tracked point deletion instruction of user's input, is arrange the binary machine instruction before tracked point by the position recovering of tracked point; And then when software performs the position at former tracked some place, because this position has not had tracked point, then perform the binary machine instruction that arranges before tracked point, make program recovery for state before arranging tracked point.As can be seen here, the embodiment of the present invention, relative to prior art, not only can arrange tracked point online, also can delete tracked point online, make debug process more flexible.
Alternatively, in said method, perform in debugging task process at above-mentioned steps S103, also comprise the tracked dotted state receiving user's input and check instruction, according to the step of this instruction to the status information of the tracked point of user feedback, whether extremely, commissioning staff can be facilitated to judge performing an action of tracked point by this step, and analyze reason when occurring abnormal.Concrete steps are as follows:
In the process performing debugging task, by order line, the tracked dotted state receiving user's input checks instruction;
Check instruction according to described, the status information of tracked point in software described in described user feedback, the status information of described tracked point comprise following one or more:
The execution time of tracked point, the state of each register of current C PU, current task stack information.
Particularly, in the process performing debugging task, when the tracked dotted state receiving user's input checks instruction, according to checking instruction, the status information of tracked point in user feedback software.
Further, the status information of tracked point also comprises: the configuration information of the tracked point all arranged in software program, such as, and the setting position, execution number of times etc. of tracked point.
Whether the status information of above-mentioned tracked point can facilitate commissioning staff to judge performing an action of tracked point abnormal, and analyzes reason when occurring abnormal, and meanwhile, commissioning staff also can to reset tracked point according to the status information of tracked point and put.
Alternatively, in said method, after step S103 exports on-line debugging information, also can this on-line debugging information be preserved into internal memory, facilitate commissioning staff to consult, avoid commissioning staff and wait at the scene always.
By applying the software on-line debugging method provided of the embodiment of the present invention, when software program runs, dynamically arranging tracked point, by the tracked point arranged, preserving the software current operating environment at tracked some place; Call the on-line debugging instruction stored, perform debugging task, export on-line debugging information; And recover software current operating environment, continue executive software down-stream from tracked point.Due in embodiments of the present invention, the on-line debugging instruction stored is called by the tracked point arranged, and the preservation/recovery of software current operating environment is carried out at tracked some place, avoid debug command directly with the form of hard coded write software program, but call debug command with the form of routine call, facilitate amendment and the deletion of debug command, realize changing debug command arbitrarily in debug process; Meanwhile, do not need to restart software program yet; In addition, technique scheme is calling debug command, and preserve software current operating environment before performing debugged program, when returning after debugging is terminated at tracked, program can continue to perform under original running environment, avoids the impact on original software program.
Fig. 2 is the software debugging flow process comparison diagram in software debugging flow process in the embodiment of the present invention and existing running log and debug command, wherein, solid line represents the software debugging flow process of the debugged function instruction in existing running log and debug command, and dotted line represents the software on-line debugging flow process in the embodiment of the present invention.
In the software debugging flow process of debugged function instruction, before software runs in internal memory, determine tracked point, on-line debugging instruction is by the direct tracked point writing software program with the form of hard coded, after software program performs tracked point, in the instruction of tracked execution on-line debugging; After on-line debugging task to be done, continue the down-stream of executive software.If software runs, then, by the tracked point in on-line debugging instruction write software then by software restarting program, the Bootload through amendment is run in internal memory by coding, compiling, link step.
Software on-line debugging flow process in the embodiment of the present invention, determine the tracked point in software according to the binary machine instruction of tracked dot address dis-assembling, this step directly completes in internal memory; When performing at tracked, jumping to the protection/recovery environmental directives stored in software, performing the protection of the environment instruction in protection/recovery environmental directives, preserving the software current operating environment at tracked some place; Continue to perform protection/recovery environmental directives; When performing the jump-point in protection/recovery environmental directives, by jump-point, jump to on-line debugging instruction; Perform on-line debugging instruction, export on-line debugging information.Whole process completes debugging by routine call, do not need tracked some debug command write by coding, compiling, link step in software, because software runs in internal memory always, therefore do not need by software restarting program, the Bootload through amendment to be run in internal memory more yet.
The software debugging flow process that the embodiment of the present invention provides, when after output on-line debugging information, from on-line debugging instruction redirect rebound turning point; Perform the recovery environmental directives in protection/recovery environmental directives, and tracked point is returned in redirect, continue executive software down-stream from tracked point.Because program can continue to perform under original running environment, avoid the impact of debugging on original software program.
Below for the software on-line debugging system that Fig. 3 detailed description embodiment of the present invention provides, the software on-line debugging system comprising modules figure that Fig. 3 provides for the embodiment of the present invention.PC), desktop computer etc. the equipment such as communication facilities, terminal, server be applied or be carried in described software on-line debugging system can in embodiments of the present invention, and described terminal is specially PC, and (Personal Computer is called for short:.As shown in Figure 3
Described system comprises:
Tracked some determination module 310, for determining the tracked point in software;
Program execution module 320, for when performing at described tracked, preserves the software current operating environment at described tracked some place; And after debugging terminates, recover described software current operating environment, continue to perform described software down-stream from described tracked point;
Debugging module 330, for after preservation software current operating environment, calls the on-line debugging instruction stored, performs debugging task, export on-line debugging information.
Described tracked some determination module 310, for determining the tracked point in software, specifically comprises:
What inputted by order line reception user arranges instruction, the described address arranging instruction and comprise tracked point in described software;
Be assembly routine by the binary machine instruction dis-assembling of described tracked dot address;
The position of described tracked point is determined according to described assembly routine.
Described program execution module 320, for when performing at described tracked, preserving the software current operating environment at described tracked some place, specifically comprising:
When performing at described tracked, according to the jump instruction in tracked dot generation, jump to the protection/recovery environmental directives be stored in described software;
Perform the protection of the environment instruction in described protection/recovery environmental directives, preserve the software current operating environment at described tracked some place.
Described debugging module 330, for calling the on-line debugging instruction stored, performing debugging task, exporting on-line debugging information, specifically comprising:
Perform described protection/recovery environmental directives;
When performing the jump-point in described protection/recovery environmental directives, by described jump-point, jump to described on-line debugging instruction;
Perform described on-line debugging instruction, export on-line debugging information.
Described program execution module 320, for recovering described software current operating environment, continuing to perform described software down-stream from described tracked point, specifically comprising:
When after output on-line debugging information, return described jump-point from described on-line debugging instruction redirect;
Perform the recovery environmental directives in described protection/recovery environmental directives, and described tracked point is returned in redirect, continue to perform described software down-stream from described tracked point.
Described system also comprises: state checks module 340, and in debugging task implementation, by order line, the tracked dotted state receiving user's input checks instruction;
Check instruction according to described, the status information of tracked point in software described in described user feedback, the status information of described tracked point comprise following one or more:
The execution time of tracked point, the state of each register of current C PU, current task stack information.
Described system also comprises: tracked point deletion module 350, and for after the tracked point in software is determined, by order line, receive the tracked point deletion instruction of user's input, described tracked point deletion instruction comprises the position of described tracked point to be deleted;
Be that the binary machine instruction before described tracked point is set by the position recovering of described tracked point to be deleted;
When performing the position of former described tracked point, perform described binary machine instruction.
By applying the software on-line debugging system provided of the embodiment of the present invention, when software program runs, dynamically arranging tracked point, by the tracked point arranged, preserving the software current operating environment at tracked some place; Call the on-line debugging instruction stored, perform debugging task, export on-line debugging information; And recover software current operating environment, continue executive software down-stream from tracked point.Due in embodiments of the present invention, the on-line debugging instruction stored is called by the tracked point arranged, and the preservation/recovery of software current operating environment is carried out at tracked some place, avoid debug command directly with the form of hard coded write software program, but call debug command with the form of routine call, facilitate amendment and the deletion of debug command, realize changing debug command arbitrarily in debug process; Meanwhile, do not need to restart software program yet; In addition, technique scheme is calling debug command, and preserve software current operating environment before performing debugged program, when returning after debugging is terminated at tracked, program can continue to perform under original running environment, avoids the impact on original software program.
The all or part of step that one of ordinary skill in the art will appreciate that in said method is carried out instruction related hardware by program and is completed, and described program can be stored in computer-readable recording medium, as ROM (read-only memory), disk or CD etc.Alternatively, all or part of step of above-described embodiment also can use one or more integrated circuit to realize, and correspondingly, each module/unit in above-described embodiment can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
It should be noted that; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art can make various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection domain that all should belong to the claim appended by the present invention.

Claims (14)

1. a software on-line debugging method, is characterized in that, described method comprises:
Determine the tracked point in software;
When performing at described tracked, preserve the software current operating environment at described tracked some place;
Call the on-line debugging instruction stored, perform debugging task, export on-line debugging information;
Recover described software current operating environment, continue to perform described software down-stream from described tracked point.
2. the method for claim 1, is characterized in that, the described tracked point determined in software specifically comprises:
What inputted by order line reception user arranges instruction, the described address arranging instruction and comprise tracked point in described software;
Be assembly routine by the binary machine instruction dis-assembling at described tracked dot address place;
The position of described tracked point is determined according to described assembly routine.
3. the method for claim 1, is characterized in that, described when performing at described tracked, the software current operating environment preserving described tracked some place specifically comprises:
When performing at described tracked, according to the jump instruction in tracked dot generation, jump to the protection/recovery environmental directives be stored in described software;
Perform the protection of the environment instruction in described protection/recovery environmental directives, preserve the software current operating environment at described tracked some place.
4. method as claimed in claim 3, is characterized in that, described in call the on-line debugging instruction stored, perform debugging task, export on-line debugging information and specifically comprise:
Perform described protection/recovery environmental directives;
When performing the jump-point in described protection/recovery environmental directives, by described jump-point, jump to described on-line debugging instruction;
Perform described on-line debugging instruction, export on-line debugging information.
5. method as claimed in claim 4, is characterized in that, the described software current operating environment of described recovery, continues to perform described software down-stream specifically comprise from described tracked point:
When after output on-line debugging information, return described jump-point from described on-line debugging instruction redirect;
Perform the recovery environmental directives in described protection/recovery environmental directives, and described tracked point is returned in redirect, continue to perform described software down-stream from described tracked point.
6. the method for claim 1, is characterized in that, described method also comprises:
In the process performing debugging task, by order line, the tracked dotted state receiving user's input checks instruction;
Check instruction according to described, the status information of tracked point in software described in described user feedback, the status information of described tracked point comprise following one or more:
The execution time of tracked point, the state of each register of current C PU, current task stack information.
7. the method for claim 1, is characterized in that, also comprises after the described tracked point determined in software:
By order line, receive the tracked point deletion instruction of user's input, described tracked point deletion instruction comprises the position of described tracked point to be deleted;
Be that the binary machine instruction before described tracked point is set by the position recovering of described tracked point to be deleted;
When performing the position of former described tracked point, perform described binary machine instruction.
8. a software on-line debugging system, is characterized in that, described system comprises:
Tracked some determination module, for determining the tracked point in software;
Program execution module, for when performing at described tracked, preserves the software current operating environment at described tracked some place; And after debugging terminates, recover described software current operating environment, continue to perform described software down-stream from described tracked point;
Debugging module, for after preservation software current operating environment, calls the on-line debugging instruction stored, performs debugging task, export on-line debugging information.
9. system as claimed in claim 8, is characterized in that, described tracked some determination module, for determining the tracked point in software, specifically comprising:
What inputted by order line reception user arranges instruction, the described address arranging instruction and comprise tracked point in described software;
Be assembly routine by the binary machine instruction dis-assembling of described tracked dot address;
The position of described tracked point is determined according to described assembly routine.
10. system as claimed in claim 8, is characterized in that, described program execution module, for when performing at described tracked, preserving the software current operating environment at described tracked some place, specifically comprising:
When performing at described tracked, according to the jump instruction in tracked dot generation, jump to the protection/recovery environmental directives be stored in described software;
Perform the protection of the environment instruction in described protection/recovery environmental directives, preserve the software current operating environment at described tracked some place.
11. systems as claimed in claim 10, is characterized in that, described debugging module, for calling the on-line debugging instruction stored, performing debugging task, exporting on-line debugging information, specifically comprising:
Perform described protection/recovery environmental directives;
When performing the jump-point in described protection/recovery environmental directives, by described jump-point, jump to described on-line debugging instruction;
Perform described on-line debugging instruction, export on-line debugging information.
12. systems as claimed in claim 11, is characterized in that, described program execution module, for recovering described software current operating environment, continuing to perform described software down-stream, specifically comprise from described tracked point:
When after output on-line debugging information, return described jump-point from described on-line debugging instruction redirect;
Perform the recovery environmental directives in described protection/recovery environmental directives, and described tracked point is returned in redirect, continue to perform described software down-stream from described tracked point.
13. systems as claimed in claim 8, it is characterized in that, described system also comprises:
State checks module, and in debugging task implementation, by order line, the tracked dotted state receiving user's input checks instruction;
Check instruction according to described, the status information of tracked point in software described in described user feedback, the status information of described tracked point comprise following one or more:
The execution time of tracked point, the state of each register of current C PU, current task stack information.
14. systems as claimed in claim 8, it is characterized in that, described system also comprises:
Tracked point deletion module, for passing through order line, receive the tracked point deletion instruction of user's input, described tracked point deletion instruction comprises the position of described tracked point to be deleted;
Be that the binary machine instruction before described tracked point is set by the position recovering of described tracked point to be deleted;
When performing the position of former described tracked point, perform described binary machine instruction.
CN201510003876.6A 2015-01-05 2015-01-05 A kind of software on-line debugging method and system Active CN104536892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510003876.6A CN104536892B (en) 2015-01-05 2015-01-05 A kind of software on-line debugging method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510003876.6A CN104536892B (en) 2015-01-05 2015-01-05 A kind of software on-line debugging method and system

Publications (2)

Publication Number Publication Date
CN104536892A true CN104536892A (en) 2015-04-22
CN104536892B CN104536892B (en) 2018-03-27

Family

ID=52852422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510003876.6A Active CN104536892B (en) 2015-01-05 2015-01-05 A kind of software on-line debugging method and system

Country Status (1)

Country Link
CN (1) CN104536892B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204990A (en) * 2015-08-21 2015-12-30 上海斐讯数据通信技术有限公司 Abnormity debugging method and system
CN105824751A (en) * 2016-03-16 2016-08-03 上海斐讯数据通信技术有限公司 System and method for automatically debugging software of network device
CN112433945A (en) * 2020-11-26 2021-03-02 百富计算机技术(深圳)有限公司 Method and device for dynamically tracking program and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6915509B1 (en) * 2000-06-28 2005-07-05 Microsoft Corporation Method and system for debugging a program
CN1752946A (en) * 2005-10-31 2006-03-29 大唐微电子技术有限公司 Debugging method of embedded system and its system
CN101295279A (en) * 2007-04-29 2008-10-29 国际商业机器公司 Method and system for debugging program in multi-threading surroundings
CN101446918A (en) * 2008-12-10 2009-06-03 中兴通讯股份有限公司 Method for realizing debugging of single function by user state debugger and system thereof
CN101482848A (en) * 2009-02-03 2009-07-15 中兴通讯股份有限公司 Dynamic debugging method and system in embedded software running state
US8473921B2 (en) * 2009-12-15 2013-06-25 Microsoft Corporation Debugging mechanisms in a cache-based memory isolation system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6915509B1 (en) * 2000-06-28 2005-07-05 Microsoft Corporation Method and system for debugging a program
CN1752946A (en) * 2005-10-31 2006-03-29 大唐微电子技术有限公司 Debugging method of embedded system and its system
CN101295279A (en) * 2007-04-29 2008-10-29 国际商业机器公司 Method and system for debugging program in multi-threading surroundings
CN101446918A (en) * 2008-12-10 2009-06-03 中兴通讯股份有限公司 Method for realizing debugging of single function by user state debugger and system thereof
CN101482848A (en) * 2009-02-03 2009-07-15 中兴通讯股份有限公司 Dynamic debugging method and system in embedded software running state
US8473921B2 (en) * 2009-12-15 2013-06-25 Microsoft Corporation Debugging mechanisms in a cache-based memory isolation system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204990A (en) * 2015-08-21 2015-12-30 上海斐讯数据通信技术有限公司 Abnormity debugging method and system
CN105204990B (en) * 2015-08-21 2017-11-28 上海斐讯数据通信技术有限公司 A kind of abnormal adjustment method and system
CN105824751A (en) * 2016-03-16 2016-08-03 上海斐讯数据通信技术有限公司 System and method for automatically debugging software of network device
CN112433945A (en) * 2020-11-26 2021-03-02 百富计算机技术(深圳)有限公司 Method and device for dynamically tracking program and electronic equipment

Also Published As

Publication number Publication date
CN104536892B (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN108491320A (en) Exception analysis method, device, computer equipment and the storage medium of application program
CN108845930B (en) Interface operation test method and device, storage medium and electronic device
CN108280027A (en) A kind of concurrently debugging rendering intent and device of script
CN107526598A (en) A kind of Webpage jump control method and system
CN104731566A (en) Testing device, method and system for IDE (Integrated Development Environment)
CN110727581A (en) Collapse positioning method and electronic equipment
CN104536892A (en) Software online debugging method and system
CN114301506B (en) Method and device for simulating NFC function, NFC terminal and storage medium
CN113127285B (en) Error data debugging method, device, chip and computer equipment
WO2017076244A1 (en) Method, device and related system for dynamically repairing application
CN106294132B (en) A kind of method and device managing log
CN112765032A (en) Program debugging method, device, equipment and storage medium
CN105791514B (en) Application starting monitoring method and device
CN109857642B (en) Blocking type debugging method and debugging tool for UI automation script
CN111381995A (en) Method and device for restoring user operation and computer
CN103729202A (en) DSP reliable on-line FLASH programming method based on GEL script
US10474443B2 (en) Code lineage tool
JP6318214B2 (en) PLC debugging method using a general-purpose microprocessor
US20140258973A1 (en) Systems And Methods For Automatically Generating Applications
CN111026667B (en) Script execution method and device and electronic equipment
CN110389751B (en) Data interface mock method applied to knowledge graph
CN110908869B (en) Application program data monitoring method, device, equipment and storage medium
CN112328491A (en) Output method of trace message, electronic device and storage medium
CN111736893A (en) Software package version verification method and related device
CN111562956B (en) Theme switching method and device for terminal, storage medium and electronic equipment

Legal Events

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