TW200825732A - Debugging system and method for software program - Google Patents

Debugging system and method for software program Download PDF

Info

Publication number
TW200825732A
TW200825732A TW95145823A TW95145823A TW200825732A TW 200825732 A TW200825732 A TW 200825732A TW 95145823 A TW95145823 A TW 95145823A TW 95145823 A TW95145823 A TW 95145823A TW 200825732 A TW200825732 A TW 200825732A
Authority
TW
Taiwan
Prior art keywords
error
debugging
software program
similarity
description
Prior art date
Application number
TW95145823A
Other languages
Chinese (zh)
Inventor
Chau-Cer Chiu
yan-bo Shu
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 TW95145823A priority Critical patent/TW200825732A/en
Publication of TW200825732A publication Critical patent/TW200825732A/en

Links

Abstract

A debugging system and method for software programs is disclosed, including establishing a database for storing a plurality of bug data associated with developing a software program and corresponding solutions for debugging/eliminating bugs; analyzing the text containing the bug to generate an index file when a bug is detected by the software program in a bug-checking process; comparing the index file containing the bug with the bug data stored in the database according to the generated index file and calculating similarities between the index file containing the bug and each of the bug data according to a predetermined algorithm; retrieving and displaying bug data having degrees of similarities exceeding a preset value from the database and its corresponding debugging solutions for allowing debug engineers to choose there from for debugging purposes. This invention can accurately and effectively locate closest solutions for debugging to increase working efficiency.

Description

200825732 九、發明說明: 【發明所屬之技術領域】 本發明係有關於一軟體程式之除錯技術,更詳而言 之’係有關於一種於軟體程式之開發過程中所檢測之錯誤 (bug)進行除錯(debUg)之系統及方法。 【先前技術】 隨著近年來電子技術的發展,於硬體設備上配備可對 應提升硬體設備功能特性之軟體程式的包括開發週期、規 r模以及複雜度都呈上升趨勢,故於該軟體程式之開發過程 中不可避免地會產生程式錯誤(bug),以致於使得程式沒有 辦^順利執行,或是執行後所得之結果係為錯誤的。一般 而確保該軟體程式之產品品質,於軟體程式之“ j転中或疋於開發過程的最後—個步驟中,通常需對該測 試產品進行測試,並於對測試過程中將所發現的錯誤U 私丁-除錯(debug)動作’以使得該軟體產品允符一 批述操作係先由測試人員執行測試,並於測試 進:二=夺,:該錯誤予以記錄並將所有之錯誤 之广伊人。’歹'^如貝料檔的形式,再將其傳送至相雇 : =提出解決方案並予以除錯。該種處理方 之平臺IS;:錯人員係為單獨作業’缺乏-個共同 用,·另外,㈣案不㈣實現共 J樣的錯块,同時可能右 從而造成-個錯誤很難得到_=的人評注, j個®滿的解決方案,而影響 110027 5 .200825732 ’:=作業的時效性及準確性;再有,於資料之管理 多的問題,例如同樣種類的錯誤問題,若指派由 =人處理,因㈣無法有效的共用而會造成重複勞 門!上鑒:此,業界提出建立一可用以儲存該軟體程式於 所可,r有錯誤及其對應解決方案的錯 、”、以於晷現錯块時,可至該錯誤資料庫中杳,出 糾誤之解決讀,相對於習知單獨作業之作業方 咼了工作效率。 捉 …惟,現有之錯誤資料庫仍存在有一定之缺失,其 4呈係針對單一軟體程式成兮餘雕妒4 * a 又 飞4权體耘式之其中一個專案的錯 »、貝科的官理,各軟體程式之錯誤資料仍不能完全得 用’另外’於現有技術中’一般而言’除錯工程 二 過程中係依靠自身之經驗以人工方式至錯誤資料庫選= «亥錯秩貧料庫對應之解決方案,由此可見,該種方式大 加重了㈣人員之工作量’影響其王作效率,且因很大程 度上依賴個人經驗而不可避免地於作業過程中發生例如邏 取之解決方案並非最佳甚至係錯誤的而影響除 = 確性的情事。 f耒您竿 因此,如何克服上述習知技術之缺失,進而提供一種 卓有成效之除錯管理技術,以使軟體程式開發過程中所涉 及之錯誤資料檔及其對應之解決方案得以共用,並可快2 且準確地查詢出與所發現之錯誤對應之最接近的解決方= 以提供指導,避免如習知技術中因錯誤資料檔及其對應: 110027 6 200825732 解决方案热法共用或 效性及準確性箄門Bg &刀而办音除錯作業之工作時 性寻問碭’切貫提高工作 品品質,實為日么·^ ~又卞及钬體転式之產 只馮目則亟待解決之問題。 【發明内容】 馨於上述習知技術之缺失,本發明之主 提供一種軟俨ρ/ 要目的係在於 所涉及之锊::二示錯系統及方法,俾軟體開發過程中 ι及之錯料播及其對應 錯誤資料檔之管理品質。 木伃以,、用,“ #統及=明Γ另一、目的係在於提供一種軟體程式之除錯系 對應之最接近的解決方安❹鮮現之錯⑽ug) 』胖决方术以美供指導,提高除錯之準確性 及工作效率。 為達上述以及其他目的,本發明即提供一種軟體程式 之除錯(debug)系統及方法。該軟體程式之除錯系統係包 括貝料庫,係用以儲存多個項目之軟體程式於開發過程 _中所涉及之複數個錯誤(bug)資料以及與各該錯誤資料對 應之除錯方案;分析模組,係用以於對一軟體程式進行測 忒之過私中檢測到該軟體程式具有一錯誤時,即對該錯誤 之文本訊息進行文本分析以產生一索引文檔;比對模組, 具有一包含計算規則之計算程式,係用以依據該分析模組 所產生之索引文檔,將該錯誤之索引文檔分別與該資料庫 中之複數個錯誤資料進行比對並透過該計算程式依據該計 异規則分別計算該錯誤之索引文檔與各該錯誤資料之相似 度;以及提取模組,係用以依據該比對模組將該錯誤之索 7 110027 200825732 · ··;丨ΓΓ資料庫中之複數個錯誤資料進行比對所得之相 Γ預!Γ嶋中將與該錯誤之索引文槽之相似度係超 預疋值的錯誤資料及其所對應之除錯方案予以提取並 =以供除錯工程師據以選取一對應該錯誤之最佳除錯 錄體程式之除錯系統復包括—用以對軟體程式 日守即產生一觸發訊號予以輸出。 ^述該錯誤之文本訊息係至少包括該錯誤 type、描述(des_⑽)以及原因㈣㈣,且該類型 f ^、描述(d⑽咖啦及原因㈣。η)係分別具有:對 應之類型權重、描述權重以及原„重。其_^❹ 施例中=刚由演算法、網路以及文字犧 择44异規則係指該錯誤之相似度係由包括類型相 與㈣權重之乘積、描述相似度與描述權重之乘積以 >及原因相似度與原因權重之乘積進行累加而得到的。、 另外,本發明亦提供—種軟體程式之除錯(糾㈣方 法,。係包括:預先建立-資料庫,用以儲存多個項目之軟 體私式於開發過程巾所涉及之複數個錯誤(㈣)資料以及 f各該錯誤資料對應之除錯方案;於對—軟體程式進行錯 誤檢測之過程中檢測到該軟體程式具有一錯誤時,即對咳 錯誤之文本訊息進行文本分析以產生一索引文播;依_ 純後所產生之索引文檔,將該錯誤之索引文標分別與該 資料庫中之複數個錯誤資料進行比對並透過一計算程式依 110027 8 200825732 , ,據一計算規則分別計算該錯誤之索引文檔與各該錯誤資料 之相似度;以及依據所比對所得之相似度,自該資料庠中 將與该錯誤之索引文檔之相似度係超過一預定值的錯誤資 料及其所對應之除錯方案予以提取並顯示,以供除錯工程 師據以選取一對應該錯誤之最佳除錯方案。 明之軟體程式之除錯系統及方法,其特徵係在於 預先設定一用以儲存多個項目之軟體程式於開發過程中所 涉及之複數個錯誤(bug)資料以及與各該錯誤資料對應之 :錯:木的貝枓庫,得以實現資源之共用及提昇錯誤資料 檔ί管理品質,且於當檢測到一軟體程式係具有錯誤時, =對該錯誤進行文本分析並將其至資料庫巾與複數個錯誤 貧料進行^對以計算相似度,再自該資料庫中將與該錯誤 之索引文杌之相似度係超過一預定值的錯誤資料及其所對 二之除鈮方案予以提取並顯示,俾供除錯工程師據以選取 7對應該錯誤之最佳除錯方案,提高除錯之準確性及工作 效率。 【實施方式】 ;九朵以下错由特定的具體實施例說明本發明之實施方式’ =此技藝之人士可由本說明書所揭示之内容輕易地瞭解 雕^之其他優點及功效。本發明亦可藉由其他不同的具 於二二例^&订或應用’本說明書中的各項細節亦可基 修飾與2點與制’在不㈣本發明之精神下進行各種 如弟1圖所示者係為本發明之軟體程式之除錯㈣㈣ 110027 9 200825732 、. 系統之基本架構方塊示意 用斟私遍 °亥軟體程式之除錯系統1係 用以對軟體程式於錯誤檢測 ^係 除錯(debug)作業。 T所&狀錯#(bug)執行 10、:圖:示’該軟體程式之除錯系統1係包括:資料庫 1双測模組12、分析模組14、比對槿袓〗6以另担 —組丨8。 比對楔組16以及提取模 ^料庫1Q係用以儲存多個項目之軟體程式於開發 =耘中所涉及之複數個錯誤(bug)資料以 ‘ 丨料對應之除錯方案。 貝 、忒榀測松組12係用以對待測軟體程式進行錯誤檢 測,亚於檢測過程中檢測到有—錯誤時即產生—觸發訊猿 並予以輸出。 〇該分析模組14係用以接收到該檢測模組12之觸發訊 號時,即對該錯誤之文本訊息進行文本分析以產生一索引 文檔。於本實施例中,該錯誤之文本訊息係至少包括該錯 ._块之類型(type)、描述(descripti〇n)以及原因(reas〇n),且該 、類型(type)、描述(description)以及原因(reason)係分別具有 一對應之類型權重、描述權重以及原因權重。其中,該類 型係例如演算法、網路或文字之其中一者。 該比對模組16係具有一包含計算規則之計算程式,用 以依據該分析模組14所產生之索引文檔,將該錯誤之索引 文指分別與該資料庫1 〇中之複數個錯誤資料進行比對並 透過該計算程式依據該計算規則分別計算該錯誤之索引文 檔與各該錯誤資料之相似度。於本實施例中,該計算規則 10 110027 200825732 ..係指該錯誤之相似度係由包括類型相好 〃 積、描述相似度與描述權重之乘積以及:因'型權重之乘 權重之乘積進行累加而得刺。 、才目似度與原因 該提取模組18係用以依據該比對模組 索引文標與該資料庫1G中之複數個錯 將該錯誤之 得之相似度,自該資料庫10中將與該錯誤之4索進;丁比^所 似度係超過一預定值"、丨文知之相 以提取if @ _ 曰决貝科及其所對應之除錯方宰予 4取亚頒不’以供除錯工程師據以選 木予 最佳除錯方案。於本實施例中,舉例來說,若誤之 18自該資料庫10中所提取之相似度係超過:楔組 誤資料及其所對應之除錯方案的數量係值㈣ ㈣該相似度而採取例如降幕或昇序之其;!則可 頒不,亚且同時顯示有該等鹿工卞以 案之類型(type) . 其所對應之除錯方 外,於太1 SGnPtiGn)以及原因(_n)等。另 所對應之除錯方荦中選取以寺錯块貧料及其 程式之最佳解決;安:;广解決方案作為對應該軟體 最佳解決方軟體程式之除錯系統復可對該 解决方木之榷重進行適時調整。 ,用^發明之軟體程式之除錯系統! 肢耘式之除錯方法流程係 、知月之孝人 1圖,該方法係包括以下亚同%請配合第 立一資料座丨〇,田、見鞑步驟:於步驟S2㈧,預先建 中所井及之U以館存多個項目之軟體程式於開發過程 木接者,進至步驟S202。 110027 11 .200825732 /於步驟咖2, ♦該檢測模、组12f十一待測軟體程式進 打錯誤檢測,並於檢測過程中檢_有—錯誤時即產生一 觸發汛號並予以輸出。接著,進至步驟s2〇4。 於步驟S204,令該分析模組14於接收到該檢測模组 12之觸發訊號時,即對該錯誤之文本訊息進行文本分析以 產一索引文樯。接著,進至步驟S206。 於步驟S206’ ♦該比對模組16依據該分析模組14妳 分析後所產生之索引錢,將該錯狀索引幻#分別㈣ 貧料庫10中之複數個錯誤資料進行比對並透過一計算程 ^據-計算㈣分別計算該錯誤之索引域與各該錯^吳 貝料之相似度。接著,進至步驟S208。 於步驟S208,判斷該比對模組16將該錯誤之索 權與該資料庫H)中之複數個錯誤#料進行比對所得之相 似度疋否超過一預定值,若是,進至步驟;反之,— 否,則結束該流程。 右 '·於步驟S21〇,令該提取模組Μ依據該比對模組】 、該錯誤之索引文檔與該資料庫1〇中之複數個錯誤資料谁 打比對所得之相似度,自該資料庫1G中將與該錯誤之索Γ引 目似度係超過-預定值的錯誤資料及其所對應之除 、.曰方二予以提取亚顯示,以供除錯工程師據以選取一對鹿 該錯誤之最佳除錯方案^ ' Μ 标上所述 y X 5之孝人驵狂八心除錯糸統及方法,主 要係在於預先5又疋—用以儲存多個項目之軟體程式於開發 過程中所涉及之複數個錯誤(bug)f^及與各該錯誤/ 110027 12 200825732 •’料對應之除錯方㈣㈣庫,得以實現㈣之共用及提昇 錯秩貧料檐之管理品質,且於當檢測到待測軟體程式係且 有錯誤時,即對該錯誤進行文本分析以產生一索引文槽並 將該索引文構分別與資料庫中之複數個錯誤資料進行比對 以分別計算該錯誤之索引文標與各該錯誤資料之相似度, -再依據所得之相似度,自該資料庫中將與該錯誤之索引文 •槽之相似度係超過-預定值的錯誤資料及其所對應之除錯 方案予以提取並顯示,俾供除錯工程師據以選取一對岸該 錯誤之最佳除錯方案’切實提高除錯之準魏及工作效率。 上述實施例僅為例示性說明本發明之原理及其功效, =非用於限制本發明,亦即,本發明事實上仍可作其他改 二 =任何熟習此項技藝之人士均可在不違背本發明 下,對上述實施例進行修改。因此本發明之 Η呆叹耗圍,應如後述之申請專利範圍所列。 【圖式簡單說明】 弟1圖所不者係為本發明之敕 本架構方塊示意圖♦,以及““之除錯系統之基 第2圖係用以顯示本發明之軟體程式 本步驟流程圖。 乃泛之暴 【主要元件符號說明】 1 軟體程式之除錯系統10 資料庫 14 分析模組 提取模組 12 檢測模組 組 16 比對模 驟 S200〜S210 步 110027 13 18200825732 IX. Description of the invention: [Technical field to which the invention pertains] The present invention relates to a debugging technique for a software program, and more specifically, to a bug detected during the development of a software program. A system and method for debugging (debUg). [Prior Art] With the development of electronic technology in recent years, the software, including the development cycle, the norm and the complexity of the software program that can be used to improve the functional characteristics of the hardware device are on the rise, so the software Program errors (bugs) are inevitably generated during the development of the program, so that the program does not run smoothly, or the results obtained after execution are wrong. Generally, to ensure the product quality of the software program, in the "j" of the software program or in the last step of the development process, the test product is usually tested and the errors found during the testing process. U private-debug action 'so that the software product allows a batch of operations to be tested by the tester first, and in the test: two = win,: the error is recorded and all errors Guangyi people. '歹'^ In the form of a shell file, then transfer it to the employer: = propose a solution and debug it. The platform of the processing side IS;: the wrong person is a separate job 'lack- Use together, · In addition, (4) The case does not (4) achieve a total of J-like wrong blocks, and at the same time may cause the right to cause - a mistake is difficult to get _ = people comment, j ® full solution, and affect 110027 5 .200825732 ' := The timeliness and accuracy of the operation; again, the problem of managing more data, such as the same kind of error problem, if the assignment is handled by = person, because (4) can not effectively share, it will cause repeated labor! : This, the industry proposed to establish Can be used to store the software program in the right, r has the error and its corresponding solution error,", in order to get the wrong block, you can go to the error database, solve the error correction, relative to the ha It is known that the work of the individual work is efficient. Catch... However, there is still a certain lack of the existing error database, and the 4 is for the single software program to become the fault of one of the projects of the 4* a fly and the 4th body. The official data, the error data of each software program can not be fully used in the 'other' in the existing technology 'generally' in the process of debugging the second process in the process of relying on its own experience manually to the wrong database selection = «hai wrong rank The solution corresponding to the poor stockpile shows that this method is greatly aggravated. (4) The workload of the personnel 'affects the efficiency of its work, and it depends on personal experience to inevitably occur during the operation, such as logic. The solution is not optimal or even wrong, but it affects the facts of =. f耒 竿 竿 竿 竿 竿 , , , , , , , , , , , , , , , 竿 竿 竿 竿 竿 竿 竿 竿 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何 如何2 and accurately find the closest solution corresponding to the error found = to provide guidance to avoid the error data file and its correspondence as in the prior art: 110027 6 200825732 Solution thermal sharing or validity and accuracy Sexual tricks Bg & knives and sounds in the work of debugging the wrong time to ask questions 切 'cut through to improve the quality of work products, it is a day · ^ ~ and 卞 钬 钬 钬 之 之 冯 冯 冯 冯 冯 冯 冯 冯 冯 冯 冯The problem. SUMMARY OF THE INVENTION In the absence of the above-mentioned prior art, the present invention provides a soft 俨 / 要 要 要 要 锊 锊 : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : Broadcast and its corresponding error data file management quality.伃 伃 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , To improve the accuracy and efficiency of debugging. To achieve the above and other objects, the present invention provides a debugging system and method for a software program. The debugging system of the software program includes a shell library. The software program for storing a plurality of items in the development process _ the plurality of bug data and the debug scheme corresponding to each of the error data; the analysis module is used to test a software program When the software program detects that the software program has an error, the text message of the error is analyzed by text to generate an index document; the comparison module has a calculation program including a calculation rule, which is used according to the An index file generated by the analysis module, the index file of the error is respectively compared with a plurality of error data in the database, and the calculation program separately calculates the error document according to the calculation rule The similarity between the error index document and each of the error data; and the extraction module is configured to perform the error data in the database according to the comparison module. The comparison between the obtained and the Γ嶋 Γ嶋 Γ嶋 与 与 与 与 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之 之The debugging system of the best debug recording program corresponding to the error includes - for outputting a trigger signal to the software program, the output is output. The text message describing the error includes at least the error type and description (des_(10) And reason (4) (4), and the type f ^, description (d (10) coffee and reason (four). η) have: corresponding type weight, description weight and original „heavy. The _^❹ instance = just by algorithm, network and text sacrifice 44 different rules means that the similarity of the error is the product of the type phase and (4) weight, the product of the description similarity and the description weight. And the sum of the reason similarity and the cause weight are accumulated. In addition, the present invention also provides a software program debugging (correction (four) method, which includes: a pre-established-database, which is used to store multiple items of software in the private process of the development process involved in the multiple errors ( (4) The data and the debugging scheme corresponding to the error data; when the software program detects that the software program has an error during the error detection, the text analysis of the coughing error text is performed to generate an index. Text broadcast; according to the index document generated by _ pure, the index of the error index is compared with the plurality of error data in the database and passed a calculation program according to 110027 8 200825732, according to a calculation rule Calculating the similarity between the index document of the error and each of the error data; and, according to the similarity obtained by the comparison, the error data from the data file that is similar to the index document of the error is an error data exceeding a predetermined value and The corresponding debugging scheme is extracted and displayed for the debugging engineer to select a pair of best debugging solutions that should be wrong. The debugging system and method are characterized in that a plurality of bug data involved in the development process of a software program for storing a plurality of items are preset and corresponding to each error data: wrong: wood Bessie, the ability to achieve resource sharing and improve the error data file ί management quality, and when it is detected that a software program has errors, text analysis of the error and to the database towel and a number of errors The material is subjected to the pairwise calculation to calculate the similarity, and then the error data with the similarity of the index of the error is more than a predetermined value and the method of extracting and displaying the second is removed from the database. The debugging engineer selects 7 pairs of error-correcting optimal debugging schemes to improve the accuracy and efficiency of debugging. [Embodiment] The following nine embodiments illustrate the implementation of the present invention by specific embodiments. The person skilled in the art can easily understand other advantages and effects of the carving by the contents disclosed in the present specification. The present invention can also be applied to two or two cases by the other two. The details in this specification can also be modified and 2 points and the system is carried out in the spirit of the invention. The one shown in the figure 1 is the debugging of the software program of the invention (4) (4) 110027 9 200825732 . The basic architecture block of the system indicates that the debugging system 1 used for the private software program is used to debug the software program in the error detection system. T&error=# (bug) execution 10, : Figure: The software system debug system 1 includes: database 1 dual test module 12, analysis module 14, comparison 槿袓 6 to another - group 丨 8. Compare wedge group 16 and The extraction module library 1Q is used to store a plurality of project software programs in the development of a number of error (bug) data involved in the 以 对应 对应 对应 对应 对应 对应 。 。 。 贝 贝 贝 贝 贝 贝 贝The error detection is performed for the software program to be tested, and the detection signal is detected when there is an error in the detection process, and is outputted. The analysis module 14 is configured to perform text analysis on the error text message to generate an index document when the trigger signal of the detection module 12 is received. In this embodiment, the error text message includes at least the type, the description (descripti〇n), and the reason (reas〇n) of the error. The type, type, description (description) And reason (reason) have a corresponding type weight, description weight, and cause weight, respectively. Among them, the type is one of an algorithm, a network or a text. The comparison module 16 has a calculation program including a calculation rule for indexing the error according to the index file generated by the analysis module 14 and the plurality of error data in the database 1 Performing an alignment and calculating, by the calculation program, the similarity between the index document of the error and each of the error data according to the calculation rule. In the present embodiment, the calculation rule 10 110027 200825732 .. means that the similarity of the error is accumulated by the product including the type of the good product, the description of the similarity and the description weight, and the product of the multiplication weight of the 'type weight. And got the thorn. The extraction module 18 is used to determine the similarity of the error according to the comparison module index document and the plurality of errors in the database 1G, from the database 10 4 with the error; Ding than ^ similar degree exceeds a predetermined value ", 丨文知之相 to extract if @ _ 曰 贝 贝 及其 及其 及其 及其 及其 及其 及其 及其 及其 及其'For the debugging engineer to choose the best debugging solution. In this embodiment, for example, if the error 18 is extracted from the database 10, the similarity exceeds: the wedge group error data and the number of the corresponding debugging schemes (4) (4) the similarity Take, for example, a curtain or ascending order; It can be awarded, and at the same time, it shows the type of the deer's work, the corresponding debugger, the SGnPtiGn) and the reason (_n). In addition, the corresponding debugging method selects the best solution to the poor block and its program in the temple; the security solution is used as the debugging system corresponding to the software solution of the software, and the solution is solved. After that, make timely adjustments. , using the software system of the invention of the debugging system! The procedure of the limb-type debugging method, the filial piety of Zhiyue 1 map, the method includes the following sub-same%, please cooperate with the first one data block, Tian, see the steps: in step S2 (eight), pre-built the well And the U is stored in the development process by the software program of the plurality of items in the library, and the process proceeds to step S202. 110027 11 .200825732 / In step 2, ♦ The detection mode, group 12f eleven software program to be tested enters the error detection, and during the detection process, a trigger nickname is generated and output. Then, the process proceeds to step s2〇4. In step S204, when the triggering signal of the detecting module 12 is received, the analyzing module 14 performs text analysis on the error text message to generate an index document. Next, the process proceeds to step S206. In step S206', the comparison module 16 compares and transmits the plurality of error data in the quarantine index 10 according to the index money generated by the analysis module 14妳. A calculation process-calculation (4) respectively calculates the similarity between the index domain of the error and each of the errors. Next, the process proceeds to step S208. In step S208, it is determined that the comparison module 16 compares the error of the error with the plurality of errors in the database H) by more than a predetermined value, and if so, proceeds to the step; Otherwise, - no, the process ends. Right '· in step S21 〇, the extraction module Μ according to the comparison module 】, the error index file and the plurality of erroneous data in the database 1 打 compare the similarity, since In the database 1G, the error data that exceeds the predetermined value of the error and the corresponding value are extracted, and the second display is extracted for the debugging engineer to select a pair of deer. The best debugging solution for this error ^ ' Μ Μ y y y y y y 八 八 八 八 八 八 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及 及The multiple errors (bugs) involved in the process and the errors (110) 12 200825732 corresponding to the error (4) (4) library, to achieve (4) sharing and improve the management quality of the wrong ranks, and When the software program to be tested is detected and there is an error, the error is subjected to text analysis to generate an index spoof and the index analytic is compared with a plurality of erroneous data in the database to calculate the error respectively. The index of the wrong index and the corresponding error data Similarity, - based on the similarity obtained, from the database, the error data with the similarity of the error index and the slot exceeds the predetermined value and the corresponding debugging scheme is extracted and displayed. The debugging engineer selects the best debugging solution for the error of the pair of shores to effectively improve the quasi-wei and the efficiency of the debugging. The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the invention, that is, the invention may in fact be otherwise modified. Under the present invention, the above embodiment is modified. Therefore, the sigh of the present invention should be as listed in the scope of the patent application described later. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of the block diagram of the present invention, and the “base of the debug system”. FIG. 2 is a flowchart showing the steps of the software program of the present invention. It is a panic [Main component symbol description] 1 Software program debugging system 10 Database 14 Analysis module Extraction module 12 Detection module group 16 Comparison module S200~S210 Step 110027 13 18

Claims (1)

200825732 • 十、申清專利範圍: 1. 一種軟體程式之除錯(debug)系統,係包括: 貝料庫’係用以健存多個項目之軟體程式於 程中所涉及之複數個錯誤(bug)資料以及與各該錯= 料對應之除錯方案; 8 °、1 刀析H係用以於對—軟體程式進行錯誤檢測 ,=2_該軟體程式具有_錯誤時,即對該錯誤之 文本Λ心進行文本分析以產生一索引文禆,· 、比對模組,具有—包含計算規則之計算程式,係用 以依據該分㈣組所產生之㈣文檔,將該錯誤之索 文棺分別與該資料庫中之複數個錯誤資 =計算程式依據該計算規則分別計算該錯誤:; 引文杈與各該錯誤資料之相似度;以及 ’、 提取模組,剌以依據該比龍組將該錯誤之 文棺,該資料庫中之複數個錯誤#料進行比對所ς =度’自該資料料將與該錯誤之Μ文檔之相似声 1過-預定值的錯誤f料及其所對應之除錯方案= 以提取並顯不,以供除錯 之最佳除錯方案。 ㈣據心取一對應該錯誤 2.如申請專利範圍第β之軟體 一用L”料私础如>、心丨示錯糸統’復包括 用以對L式進行錯誤㈣之檢_組,且於錯, 3 Γ ^ Γ檢測到—錯誤時即產生—觸發訊號並予以輸^出: .二二!專利範圍第1項之軟體程式之除錯系統,其中’ …以之文本訊息係至少包括該錯誤之類型(type)、描 110027 •14 .200825732 述(description)以及原因(reas〇n),且該類型(type)、描述 (description)以及原因(reason)係分別具有—對應之類型 權重、描述權重以及原因權重。 、 4. 5. 6· 如申請專利範圍第3項之軟體程式之除錯系統,其中, 該計算規則係指該錯誤之相似度係由包括類型相似产 與類型權重之乘積、描述相似度與描述權重之乘積以^ 原因相似度與原因權重之乘積進行累加而得到的。 如申請專利範圍第3項之軟體程式之除錯系統,其中, 該類型係由演算法、網路以及文字所構成之群组了 =申請專利範圍» i項之軟體程式之除錯系统,其中, 路除錯方案係依據相似度而采降冪或昇序之其中一種 方式予以顯示。 一種軟體程式之除錯(debug)方法,係包括·· 預先建立一資料庫,用以儲存多個項目之軟體程式 於開發過程中所涉及之複數個錯誤(bug)資料以及與1 該錯誤資料對應之除錯方案; 於對一軟體程式進行錯誤檢測之過程中檢測到該 軟體程式具有一錯誤時,即對該錯誤之文本訊息進行文 本分析以產生一索引文檔; 依據經分析後所產生之索引文檔,將該錯誤之索引 文檔分別與該資料庫中之複數個錯誤資料進行比對並 透過一計算程式依據一計算規則分別計算該錯誤之索 引文播與各該錯誤資料之相似度;以及 依據所比對所得之相似度,自該資料庫中將與該錯 15 110027 200825732 &吳之索引文棺之相似度係超過一預定值的錯誤資料及 其所氧應之除錯方案予以提取並顯示,以供除錯工程師 據以選取一對應該錯誤之最佳除錯方案。 8·如申請專利範圍第7項之軟體程式之除錯方法,其中, 該錯誤之文本訊息係至少包括該錯誤之類型^外勾、描 述(description)以及原因(reason),且該類型、描述 (心sCripti0n)以及原因(reas〇n)係分別具有一對應之類型 權重、描述權重以及原因權重。 9.如申=專利範圍第8項之軟體程式之除錯方法,其中 該計算夫見則係指該錯誤之相似度係由包括類型相似刀 與類型權重之乘積、描述相似度與描述權重之 原因相似度與原因權重之乘積進行累加而得到/〆 10·如申請專利範圍第8項之軟體程式之除錯方法, ::型係由演演算法、網路以及文字所構成之群:且。 :申請專利範圍第7項之軟體程式之除錯方法,㈠ =錯方案係依據相似度而采降冪或昇序之复中、 方式予以顯示。 /、 才 Π0027 16200825732 • X. Shen Qing patent scope: 1. A software program debugging system, including: Beacon library is a plurality of errors involved in the process of storing software programs of multiple projects ( Bug) data and the debugging scheme corresponding to each of the errors; 8 °, 1 knife analysis H is used for error detection of the software program, = 2_ when the software program has _ error, the error is The text is subjected to text analysis to generate an index document, and the comparison module has a calculation program containing a calculation rule, which is used to generate the error according to the (4) document generated by the subgroup (4).棺 respectively, and the plurality of error calculations in the database calculate the error according to the calculation rule:; the similarity between the citation and each of the error data; and ', extracting the module, according to the Biron group The text of the error, the multiple errors in the database, the material is compared with the ς = degree 'from the data will be similar to the error of the document 1 1 - the predetermined value of the error f and its Corresponding debugging scheme = And not significant taken to debug the program for debugging the best. (4) According to the heart, one pair should be wrong. 2. If the application for patent scope is the software of the beta, the use of L" material private basis, such as >, heart 丨 糸 ' 复 复 复 用以 用以 用以 用以 用以 用以 用以 用以 用以 用以And in error, 3 Γ ^ Γ detected - when the error occurs - trigger the signal and output it: . 22! Patent scope 1 software program debugging system, where ... ... text message system At least the type of the error, the description 110027 •14 .200825732 description, and the reason (reas〇n), and the type, description, and reason have respectively corresponding Type weight, description weight, and cause weight., 4. 5. 6· As in the patent system scope 3 software program debugging system, wherein the calculation rule means that the similarity of the error is caused by the type and similar production The product of the weight of the type, the product of the description similarity and the weight of the description is obtained by accumulating the product of the reason similarity and the cause weight. For example, the debug system of the software program of the third application of the patent scope, wherein the type A group consisting of an algorithm, a network, and a text = a patenting scope » i software program debugging system, wherein the road debugging scheme is one of the methods of descending or ascending according to the similarity A method for debugging a software program includes: pre-establishing a database for storing a plurality of bugs in a software program of a plurality of projects during development, and The error data corresponding to the debugging scheme; when detecting that the software program has an error during the error detection of a software program, performing text analysis on the text message of the error to generate an index document; The generated index document compares the error index document with a plurality of error data in the database, and respectively calculates a similarity of the error index by a calculation program according to a calculation rule. Degree; and based on the similarity of the comparison, from the database will be the error 15 110027 200825732 & Wu index The similarity of the literary genre is obtained by extracting and displaying the erroneous data exceeding a predetermined value and the error-correcting scheme of the oxygen responsiveness, so that the debugging engineer can select a pair of optimal debugging schemes that should be erroneous. The method for debugging the software program of the seventh item of the patent scope, wherein the text message of the error includes at least the type of the error ^ outer hook, description (description) and reason (reason), and the type, description (heart sCripti0n) And the reason (reas〇n) has a corresponding type weight, description weight, and cause weight, respectively. 9. The method of debugging the software program of claim 8 of the patent scope, wherein the calculation of the similarity is the product of the type-similar knife and the type weight, the description similarity and the description weight. The product of the reason similarity and the cause weight is accumulated to obtain /〆10. For the debugging method of the software program of the eighth application patent scope, the ::type is a group consisting of an algorithm, a network, and a text: . : The method of debugging the software program of the seventh application patent scope, (1) = The wrong scheme is displayed according to the degree of similarity and the way of descending or ascending order. /, 才Π0027 16
TW95145823A 2006-12-07 2006-12-07 Debugging system and method for software program TW200825732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW95145823A TW200825732A (en) 2006-12-07 2006-12-07 Debugging system and method for software program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW95145823A TW200825732A (en) 2006-12-07 2006-12-07 Debugging system and method for software program

Publications (1)

Publication Number Publication Date
TW200825732A true TW200825732A (en) 2008-06-16

Family

ID=44772080

Family Applications (1)

Application Number Title Priority Date Filing Date
TW95145823A TW200825732A (en) 2006-12-07 2006-12-07 Debugging system and method for software program

Country Status (1)

Country Link
TW (1) TW200825732A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572436A (en) * 2013-10-25 2015-04-29 纬创资通股份有限公司 Automatic debugging and error proofing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572436A (en) * 2013-10-25 2015-04-29 纬创资通股份有限公司 Automatic debugging and error proofing method and device
US9256513B2 (en) 2013-10-25 2016-02-09 Wistron Corporation Method, apparatus and computer readable medium for automatic debugging and error prevention
CN104572436B (en) * 2013-10-25 2017-03-29 纬创资通股份有限公司 Automatic debugging and error proofing method and device

Similar Documents

Publication Publication Date Title
US10719431B2 (en) Graph based code performance analysis
CN106484606A (en) Method and apparatus submitted to by a kind of code
US8949675B2 (en) Error report processing using call stack similarity
CN104468777B (en) Data manipulation method and device
CN107124289B (en) Weblog time alignment method, device and host
JP2012208604A5 (en)
Duchêne et al. Tree imbalance causes a bias in phylogenetic estimation of evolutionary timescales using heterochronous sequences
Katzir et al. Framework and algorithms for network bucket testing
Mancini et al. Anytime system level verification via random exhaustive hardware in the loop simulation
Ashkenazy et al. Indel reliability in indel-based phylogenetic inference
Ghandehari et al. Fault localization based on failure-inducing combinations
Yang et al. An industrial study of natural language processing based test case prioritization
Zhuo et al. Model-lite case-based planning
US10241957B2 (en) Workload patterns for realistic load recreation in performance testing
JP2018060332A (en) Incident analysis program, incident analysis method, information processing device, service specification program, service specification method and service specification device
KR102312685B1 (en) Data analysis support system and data analysis support method
CN104461761B (en) Data verification method, device and server
Rummel Probability Plotting: A Tool for Analyzing Task Completion Times.
TW200825732A (en) Debugging system and method for software program
Tao et al. Metric ranking of invariant networks with belief propagation
Wang et al. Nonparametric estimation for cumulative duration of adverse events
Arora et al. A regression test selection technique by optimizing user stories in an agile environment
JP6257373B2 (en) Fault extraction support device
Chung et al. Concurrent path selection algorithm in statistical timing analysis
Li et al. Effective fault localization using weighted test cases.