Invention Grant
- Patent Title: Method and apparatus for finding bugs in computer program codes
-
Application No.: US15182463Application Date: 2016-06-14
-
Publication No.: US09772924B2Publication Date: 2017-09-26
- Inventor: Feihu Zhou , Liqiang Xie
- Applicant: Tencent Technology (Shenzhen) Company Limited
- Applicant Address: CN Shenzhen, Guangdong Province
- Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
- Current Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
- Current Assignee Address: CN Shenzhen, Guangdong Province
- Agency: Morgan, Lewis & Bockius LLP
- Priority: CN201310704156 20131219
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F11/36

Abstract:
A method for debugging program code is performed at an apparatus having one or more processors and memory for storing programs to be executed by the one or more processors. The method includes the following steps: for each program code segment from a set of program code segments, assigning a unique value to a detection variable of a state machine when the respective program code segment operates the state machine. The unique value is based on a value of an identification variable associated with the respective program code segment. The method also includes determining a current value of the detection variable corresponding to an abnormal program exit, and determining a suspicious program code segment based on a comparison of the current value of the detection variable with the unique values of the respective identification variables. The method further includes outputting debug information based on the suspicious program code segment.
Public/Granted literature
- US20160350202A1 METHOD AND APPARATUS FOR FINDING BUGS IN COMPUTER PROGRAM CODES Public/Granted day:2016-12-01
Information query