CN101201787A - System and method for debugging software program - Google Patents

System and method for debugging software program Download PDF

Info

Publication number
CN101201787A
CN101201787A CNA2006101670097A CN200610167009A CN101201787A CN 101201787 A CN101201787 A CN 101201787A CN A2006101670097 A CNA2006101670097 A CN A2006101670097A CN 200610167009 A CN200610167009 A CN 200610167009A CN 101201787 A CN101201787 A CN 101201787A
Authority
CN
China
Prior art keywords
software program
wrong
similarity
index file
error
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.)
Pending
Application number
CNA2006101670097A
Other languages
Chinese (zh)
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CNA2006101670097A priority Critical patent/CN101201787A/en
Publication of CN101201787A publication Critical patent/CN101201787A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

A software program debugging method includes that: a database is set up in advance and is used for storing a plurality of error datum and the debugging proposals corresponding to the error datum; when a software program is carried out the error detection process and error is detected in the software program, the error message is analyzed to generate a index file; according to the index file, the index file of the error is respectively compared with the error datum in the database and the index file of the error and the similarity of all the error datum are calculated by a calculating program; according to the similarities, the error datum and the debugging proposals corresponding to the error datum are extracted and displayed from the database under the condition that the similarity between the index file of the error and the error datum and the debugging proposals exceeds a preset value, therefore, debugging engineers can select the best debugging proposals corresponding to the error. By adopting the method, the proximal solution corresponding to the found error can be quickly and precisely inquired and the working efficiency is enhanced.

Description

The debug system of software program and method
Technical field
The present invention relates to the debugging technique of a software program, more detailed and it relates to a kind of system and method for the mistake (bug) that is detected being debugged (debug) in the performance history of software program.
Background technology
Along with development of electronic technology in recent years, what be equipped with the software program that can correspondingly promote the hardware equipment function characteristic on hardware device comprises that construction cycle, scale and complexity are all in rising trend, so inevitably can generating routine mistake (bug) in the performance history of this software program, so that make calling program have no idea to carry out smoothly, or the result who carries out the back gained is wrong.Generally speaking, for guaranteeing the product quality of this software program, in the performance history of software program or in last step of performance history, usually need this test products is tested, and in to test process, the mistake of being found is carried out a debugging action, so that the fair symbol of this software product one product specification.
Generally, aforesaid operations is carried out test by the tester earlier, and in test process, find when wrong, this mistake is write down and all mistakes are put in order to form the form of data shelves for example, be sent to corresponding commissioning staff again for proposing solution and being debugged.This kind processing mode because of tester and commissioning staff are separate operaton, lacks a common platform, so misdata shelves and corresponding solution thereof can not realize shared; In addition, same mistake has many different people notes and commentary simultaneously, thereby causes a mistake to be difficult to obtain a satisfactory solution, and the ageing and accuracy of influence debugging operation; Have, in the management of data, also can cause many problems, for example the Problem-Error of same kind is handled if assign by different people, because of resource can't the effectively shared facts that can cause the duplication of labour.
In view of this, industry propose to set up one can be used for storing this software program on stream may relate to the error database of wrong and corresponding solution, with when finding mistake, can to this error database, inquire this wrong solution, operating type with respect to existing separate operaton has improved work efficiency.
But existing error database still has certain disappearance, and it generally only is the management at the misdata of one of them special project of single software program or this software program, and the misdata of each software program still can not be able to shared fully; In addition, in the prior art, generally speaking, the commissioning engineer relies on the experience of self to choose the solution corresponding with this error database with manual type to error database in debug process, this shows, this kind mode has increased the weight of commissioning staff's workload greatly, influences its work efficiency, and because of relying on the situation that personal experience's solution that generation is for example chosen in operation process inevitably is not the accuracy that influences the debugging operation of the best or even mistake to a great extent.
Therefore, how to overcome the disappearance of above-mentioned prior art, and then provide a kind of fruitful debugging management technology, so that related misdata shelves and corresponding solution thereof is able to shared in the software program development process, and can fast and accurately inquire with the wrong corresponding immediate solution of being found so that guidance to be provided, avoid as influence problems such as the work limitation of debugging operation and accuracy in the prior art because of misdata shelves and corresponding solution thereof are can't be shared or shared insufficient, conscientiously increase work efficiency and the product quality of software program, real is present problem demanding prompt solution.
Summary of the invention
Disappearance in view of above-mentioned prior art, fundamental purpose of the present invention is to provide a kind of debug system and method for software program, thereby related misdata shelves and corresponding solution thereof are able to sharedly in the software development process, promote the management quality of misdata shelves.
Another object of the present invention is to provide a kind of debug system and method for software program, thus can fast and accurately inquire with the wrong corresponding immediate solution of being found so that guidance to be provided, improve the accuracy and the work efficiency of debugging.
For reaching above-mentioned and other purposes, the present invention promptly provides a kind of debug system and method for software program.The debug system of this software program comprises: database, be used to store the related on stream a plurality of misdatas of the software program of a plurality of projects and with the corresponding debugging scheme of this misdata respectively; Analysis module is used for detecting this software program in the process that a software program is tested and has one when wrong, promptly this wrong text message is carried out text analyzing to produce an index file; Comparing module, has a calculation procedure that comprises computation rule, be used for the index file that produces according to this analysis module, the index file that this is wrong respectively with this database in a plurality of misdatas compare and calculate this wrong index file and the similarity of this misdata respectively respectively according to this computation rule by this calculation procedure; And extraction module, be used for should mistake according to this comparing module index file and the compare similarity of gained of a plurality of misdatas of this database, in this database, will surpass the misdata of a predetermined value and pairing debugging scheme thereof and be extracted and shows, and choose a pair of the best that should mistake according to this for the commissioning engineer and debug scheme with the similarity of this wrong index file.
The debug system of above-mentioned this software program comprises that also one is used for detection module that software program is tested, and detects one produce a trigger pip when wrong and exported in error detection procedure.
Above-mentioned text message that should mistake comprises this wrong type (type) at least, describes (description) and reason (reason), and the type (type), describes type weight that (description) and reason (reason) have a correspondence respectively, describes weight and reason weight.Wherein, in a preferred embodiment, this type is by algorithm, networking and group that literal constituted.
Above-mentioned this computation rule is meant that this wrong similarity is added up by the product that comprises type similarity and type weight, the product of describing similarity and the product of describing weight and reason similarity and reason weight and obtains.
In addition, the present invention also provides a kind of adjustment method of software program, comprising: set up a database in advance, be used to store the related on stream a plurality of misdatas of the software program of a plurality of projects and with the corresponding debugging scheme of this misdata respectively; In the process of a software program being carried out error-detecting, detect this software program and have one when wrong, promptly this wrong text message is carried out text analyzing to produce an index file; According to the index file that produced of back by analysis, the index file that this is wrong respectively with this database in a plurality of misdatas compare and calculate this wrong index file and the similarity of this misdata respectively respectively according to a computation rule by a calculation procedure; And the similarity of the foundation gained of comparing, in this database, will surpass the misdata of a predetermined value and pairing debugging scheme thereof and be extracted and shows, and choose a pair of the best that should mistake according to this for the commissioning engineer and debug scheme with the similarity of this wrong index file.
The debug system of software program of the present invention and method, it is characterized in that preestablishing a database that is used to store related on stream a plurality of misdatas of the software program of a plurality of projects and the debugging scheme corresponding with this misdata respectively, be achieved the management quality of the shared of resource and lifting misdata shelves, and when detecting a software program cording when wrong, promptly this mistake is carried out text analyzing and it is compared to calculate similarity with a plurality of misdatas to the database, to surpass the misdata of a predetermined value and pairing debugging scheme thereof with the similarity of this wrong index file again in this database is extracted and is shown, thereby choose a pair of the best debugging scheme that should be wrong according to this for the commissioning engineer, improve the accuracy and the work efficiency of debugging.
Description of drawings
Shown in Figure 1 is the basic framework block schematic diagram of the debug system of software program of the present invention; And
Fig. 2 is the basic step process flow diagram that is used to show the adjustment method of software program of the present invention.
The main element symbol description
Debug system 10 databases of 1 software program
12 detection modules, 14 analysis modules
16 comparing module, 18 extraction modules
S200~S210 step
Embodiment
Below by particular specific embodiment explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the content that this instructions disclosed.The present invention also can be implemented or be used by other different specific embodiments, and the every details in this instructions also can be based on different viewpoints and application, carries out various modifications and change under the spirit of the present invention not deviating from.
As shown in Figure 1 be the basic framework block schematic diagram of the debug system of software program of the present invention, the debug system 1 of this software program is used for that software program is crossed the mistake that detected in error-detecting and carries out the debugging operation.
As shown in the figure, the debug system 1 of this software program comprises: database 10, detection module 12, analysis module 14, comparing module 16 and extraction module 18.
This database 10 be used to store the related on stream a plurality of misdatas of the software program of a plurality of projects and with the corresponding debugging scheme of this misdata respectively.
This detection module 12 is used for software program to be measured is carried out error-detecting, and has detected one produce a trigger pip when wrong and exported in testing process.
When this analysis module 14 is used to receive the trigger pip of this detection module 12, promptly this wrong text message is carried out text analyzing to produce an index file.In the present embodiment, this wrong text message comprises this wrong type, description and reason at least, and the type, description and reason have type weight, description weight and the reason weight of a correspondence respectively.Wherein, the type is one of them of algorithm, networking or literal for example.
This comparing module 16 has a calculation procedure that comprises computation rule, be used for the index file that produced according to this analysis module 14, the index file that this is wrong respectively with this database 10 in a plurality of misdatas compare and calculate this wrong index file and the similarity of this misdata respectively respectively according to this computation rule by this calculation procedure.In the present embodiment, this computation rule is meant that this wrong similarity is added up by the product that comprises type similarity and type weight, the product of describing similarity and the product of describing weight and reason similarity and reason weight and obtains.
This extraction module 18 be used for should mistake according to this comparing module 16 index file and the compare similarity of gained of a plurality of misdatas of this database 10, in this database 10, will surpass the misdata of a predetermined value and pairing debugging scheme thereof and be extracted and shows, and choose a pair of the best that should mistake according to this for the commissioning engineer and debug scheme with the similarity of this wrong index file.In the present embodiment, for instance, if the similarity extracted in this database 10 of this extraction module 18 surpasses the quantity of the misdata of a predetermined value and pairing debugging scheme thereof when being a plurality of, then the wherein a kind of mode that can take for example to fall power or ascending order according to this similarity is shown, and shows type, description and the reason etc. of described misdata and pairing debugging scheme thereof simultaneously.In addition, in the present embodiment, when the commissioning engineer chooses wherein a solution as to after should the best solution of software program in described misdata and pairing debugging scheme thereof, the debug system of this software program also can be adjusted the weight of this best solution in good time.
The adjustment method flow process of using the debug system 1 execution software program of the present invention of software program of the present invention is as shown in Figure 2, and please cooperate Fig. 1 simultaneously, this method system comprises following implementation step: at step S200, set up a database 10 in advance, be used to store the related on stream a plurality of misdatas of the software program of a plurality of projects and with the corresponding debugging scheme of this misdata respectively.Then, proceed to step S202.
At step S202, make 12 pairs one software under testing programs of this detection module carry out error-detecting, and in testing process, detected one and produce a trigger pip when wrong and exported.Then, proceed to step S204.
At step S204, make this analysis module 14 when receiving the trigger pip of this detection module 12, promptly this wrong text message is carried out text analyzing to produce an index file.Then, proceed to step S206.
At step S206, make this comparing module 16 according to this analysis module 14 index file of being produced of back by analysis, the index file that this is wrong respectively with this database 10 in a plurality of misdatas compare and calculate this wrong index file and the similarity of this misdata respectively respectively according to a computation rule by a calculation procedure.Then, proceed to step S208.
At step S208, judge whether the compare similarity of gained of index file that this comparing module 16 should mistake and a plurality of misdatas in this database 10 surpasses a predetermined value, if proceed to step S210; Otherwise, if not, then finish this flow process.
At step S210, make this extraction module 18 according to this comparing module 16 should mistake index file and the compare similarity of gained of a plurality of misdatas in this database 10, in this database 10, will surpass the misdata of a predetermined value and pairing debugging scheme thereof and be extracted and shows, and choose a pair of the best that should mistake according to this for the commissioning engineer and debug scheme with the similarity of this wrong index file.
In sum, the debug system of software program of the present invention and method, mainly be to preestablish a database that is used to store related on stream a plurality of misdatas of the software program of a plurality of projects and the debugging scheme corresponding with this misdata respectively, be achieved the management quality of the shared of resource and lifting misdata shelves, and when detecting the software under testing program and have mistake, promptly to this mistake carry out text analyzing with produce an index file and with this index file respectively with database in a plurality of misdatas compare to calculate this wrong index file and the similarity of this misdata respectively respectively, again according to the similarity of gained, to surpass the misdata of a predetermined value and pairing debugging scheme thereof with the similarity of this wrong index file system in this database is extracted and is shown, thereby choose a pair of the best debugging scheme that should be wrong according to this for the commissioning engineer, improve the accuracy and the work efficiency of debugging conscientiously.
The foregoing description only is illustrative principle of the present invention and effect thereof, but not is used to limit the present invention, that is, the present invention in fact still can do other changes.Therefore, any those skilled in the art all can make amendment to the foregoing description under spirit of the present invention and category.So the scope of the present invention, claim is listed as described later.

Claims (11)

1. the debug system of a software program comprises:
Database, be used to store the related on stream a plurality of misdatas of the software program of a plurality of projects and with the corresponding debugging scheme of this misdata respectively;
Analysis module is used for detecting this software program in the process of a software program being carried out error-detecting and has one when wrong, promptly this wrong text message is carried out text analyzing to produce an index file;
Comparing module, has a calculation procedure that comprises computation rule, be used for the index file that produces according to this analysis module, the index file that this is wrong respectively with this database in a plurality of misdatas compare and calculate this wrong index file and the similarity of this misdata respectively respectively according to this computation rule by this calculation procedure; And
Extraction module, be used for should mistake according to this comparing module index file and the compare similarity of gained of a plurality of misdatas of this database, in this database, will surpass the misdata of a predetermined value and pairing debugging scheme thereof and be extracted and shows, and choose a pair of the best that should mistake according to this for the commissioning engineer and debug scheme with the similarity of this wrong index file.
2. the debug system of software program according to claim 1 comprises that also one is used for software program is carried out the detection module of error-detecting, and detects one produce a trigger pip when wrong and exported in error detection procedure.
3. the debug system of software program according to claim 1, wherein, this wrong text message comprises this wrong type, description and reason at least, and the type, description and reason have type weight, description weight and the reason weight of a correspondence respectively.
4. the debug system of software program according to claim 3, wherein, this computation rule is meant that this wrong similarity is added up by the product that comprises type similarity and type weight, the product of describing similarity and the product of describing weight and reason similarity and reason weight and obtains.
5. the debug system of software program according to claim 3, wherein, the type is by algorithm, networking and group that literal constituted.
6. the debug system of software program according to claim 1, wherein, this debugging scheme is adopted wherein a kind of mode of falling power or ascending order and is shown according to similarity.
7. the adjustment method of a software program comprises:
Set up a database in advance, be used to store the related on stream a plurality of misdatas of the software program of a plurality of projects and with the corresponding debugging scheme of this misdata respectively;
In the process of a software program being carried out error-detecting, detect this software program and have one when wrong, promptly this wrong text message is carried out text analyzing to produce an index file;
According to the index file that produced of back by analysis, the index file that this is wrong respectively with this database in a plurality of misdatas compare and calculate this wrong index file and the similarity of this misdata respectively respectively according to a computation rule by a calculation procedure; And
Similarity according to the gained of comparing, in this database, will surpass the misdata of a predetermined value and pairing debugging scheme thereof and be extracted and shows, and choose a pair of the best that should mistake according to this for the commissioning engineer and debug scheme with the similarity of this wrong index file.
8. the adjustment method of software program according to claim 7, wherein, this wrong text message comprises this wrong type, description and reason at least, and the type, description and reason have type weight, description weight and the reason weight of a correspondence respectively.
9. the adjustment method of software program according to claim 8, wherein, this computation rule is meant that this wrong similarity is added up by the product that comprises type similarity and type weight, the product of describing similarity and the product of describing weight and reason similarity and reason weight and obtains.
10. the adjustment method of software program according to claim 8, wherein, the type is by drilling algorithm, networking and group that literal constituted.
11. the adjustment method of software program according to claim 7, wherein, this debugging scheme is adopted wherein a kind of mode of falling power or ascending order and is shown according to similarity.
CNA2006101670097A 2006-12-12 2006-12-12 System and method for debugging software program Pending CN101201787A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006101670097A CN101201787A (en) 2006-12-12 2006-12-12 System and method for debugging software program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006101670097A CN101201787A (en) 2006-12-12 2006-12-12 System and method for debugging software program

Publications (1)

Publication Number Publication Date
CN101201787A true CN101201787A (en) 2008-06-18

Family

ID=39516961

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006101670097A Pending CN101201787A (en) 2006-12-12 2006-12-12 System and method for debugging software program

Country Status (1)

Country Link
CN (1) CN101201787A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222038A (en) * 2010-04-16 2011-10-19 中国工商银行股份有限公司 Transaction software test method and system based on banking business
WO2015097587A1 (en) * 2013-12-23 2015-07-02 International Business Machines Corporation Creating trace data from recent software output and activity
CN105677503A (en) * 2016-01-13 2016-06-15 北京光年无限科技有限公司 Software exception handling method and exception self-protection system for software
CN106203753A (en) * 2015-05-04 2016-12-07 腾讯科技(深圳)有限公司 The circulation method and system of problems of operation in software operation
CN106227669A (en) * 2016-07-29 2016-12-14 北京金山安全软件有限公司 Code testing method and device and electronic equipment
CN107562558A (en) * 2017-08-28 2018-01-09 郑州云海信息技术有限公司 The feedback method and system of a kind of error message
CN107688530A (en) * 2017-04-06 2018-02-13 平安科技(深圳)有限公司 Method for testing software and device
CN110321286A (en) * 2019-06-18 2019-10-11 平安普惠企业管理有限公司 Information display method and relevant device
CN111240652A (en) * 2018-11-28 2020-06-05 北京京东尚科信息技术有限公司 Data processing method and device, computer storage medium and electronic equipment

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222038B (en) * 2010-04-16 2014-05-07 中国工商银行股份有限公司 Transaction software test method and system based on banking business
CN102222038A (en) * 2010-04-16 2011-10-19 中国工商银行股份有限公司 Transaction software test method and system based on banking business
US10049027B2 (en) 2013-12-23 2018-08-14 International Business Machines Corporation Creating trace data from recent software output and activity
WO2015097587A1 (en) * 2013-12-23 2015-07-02 International Business Machines Corporation Creating trace data from recent software output and activity
US10331544B2 (en) 2013-12-23 2019-06-25 International Business Machines Corporation Creating trace data from recent software output and activity
US10095604B2 (en) 2013-12-23 2018-10-09 International Business Machines Corporation Creating trace data from recent software output and activity
CN106203753A (en) * 2015-05-04 2016-12-07 腾讯科技(深圳)有限公司 The circulation method and system of problems of operation in software operation
CN106203753B (en) * 2015-05-04 2021-11-09 腾讯科技(深圳)有限公司 Method and system for transferring operation problems in software operation
CN105677503B (en) * 2016-01-13 2018-10-26 北京光年无限科技有限公司 A kind of software anomaly processing method and the abnormal Self-Protection Subsystem for software
CN105677503A (en) * 2016-01-13 2016-06-15 北京光年无限科技有限公司 Software exception handling method and exception self-protection system for software
CN106227669A (en) * 2016-07-29 2016-12-14 北京金山安全软件有限公司 Code testing method and device and electronic equipment
CN106227669B (en) * 2016-07-29 2019-07-12 北京金山安全软件有限公司 Code testing method and device and electronic equipment
CN107688530A (en) * 2017-04-06 2018-02-13 平安科技(深圳)有限公司 Method for testing software and device
CN107688530B (en) * 2017-04-06 2020-04-10 平安科技(深圳)有限公司 Software testing method and device
CN107562558A (en) * 2017-08-28 2018-01-09 郑州云海信息技术有限公司 The feedback method and system of a kind of error message
CN111240652A (en) * 2018-11-28 2020-06-05 北京京东尚科信息技术有限公司 Data processing method and device, computer storage medium and electronic equipment
CN110321286A (en) * 2019-06-18 2019-10-11 平安普惠企业管理有限公司 Information display method and relevant device

Similar Documents

Publication Publication Date Title
CN101201787A (en) System and method for debugging software program
CN110645153B (en) Wind generating set fault diagnosis method and device and electronic equipment
CN104137078A (en) Operation management device, operation management method, and program
CN105138770B (en) Space product Reliablility simulation appraisal procedure based on indirect characteristic quantities
CN105786678A (en) Relevance model-based testability prediction method
CN110059010B (en) Buffer overflow detection method based on dynamic symbol execution and fuzzy test
CN101593145A (en) Designing method of high-efficiency high-coverage-rate function test case
US20200401117A1 (en) Apparatus, method and computer program for identifying defective devices
CN116136950B (en) Chip verification method, device, system, electronic equipment and storage medium
CN104699617A (en) Automated testing method for games
CN116991738A (en) Computer software testing system, method, computer equipment and storage medium
CN106651731A (en) Historical-data-based communication tower to-be-solved problem set generation method and system
US20070180411A1 (en) Method and apparatus for comparing semiconductor-related technical systems characterized by statistical data
CN112035996A (en) Equipment testability integrated design and evaluation system
CN112149828B (en) Operator precision detection method and device based on deep learning framework
CN102087629A (en) Agent embedded software-based invariant test method and tool
KR20170123389A (en) System and method for human error probability calculation of nuclear generating station
CN105577424B (en) It is a kind of to be traced to the source the data assets quality monitoring method of figure based on data
CN102024322A (en) Data processing equipment and method for testing serial signals
CN115576831A (en) Test case recommendation method, device, equipment and storage medium
CN115525660A (en) Data table verification method, device, equipment and medium
CN110162806B (en) Simulation error evaluation method and system
CN113505283A (en) Test data screening method and system
CN105787205A (en) FMEA (failure mode and effects analysis) based graphic representation method and system for relation of failure modes and effects
CN112861461B (en) Abnormity detection method and device for circuit simulation model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080618