CN108132850A - Code location method, apparatus and electronic equipment - Google Patents
Code location method, apparatus and electronic equipment Download PDFInfo
- Publication number
- CN108132850A CN108132850A CN201711402595.3A CN201711402595A CN108132850A CN 108132850 A CN108132850 A CN 108132850A CN 201711402595 A CN201711402595 A CN 201711402595A CN 108132850 A CN108132850 A CN 108132850A
- Authority
- CN
- China
- Prior art keywords
- code
- abnormal
- abnormality
- line number
- abnormality code
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000002159 abnormal effect Effects 0.000 claims abstract description 201
- 230000005856 abnormality Effects 0.000 claims abstract description 150
- 230000005540 biological transmission Effects 0.000 claims description 11
- 238000002372 labelling Methods 0.000 claims description 8
- 238000004891 communication Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000007774 longterm Effects 0.000 description 4
- 238000010295 mobile communication Methods 0.000 description 3
- 230000010267 cellular communication Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 210000004602 germ cell Anatomy 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000002787 reinforcement Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0775—Content or structure details of the error report, e.g. specific table structure, specific error fields
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/805—Real-time
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/865—Monitoring of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Debugging And Monitoring (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
System banner | Code Number |
System A | Source code 1 |
System B | Source code 2 |
… | … |
Claims (10)
- A kind of 1. Code location method, which is characterized in that the method includes:When the system of detecting is abnormal, acquisition abnormity information and abnormal data, what the exception information carrying was abnormal Abnormality code line number of the code in the source code of the system, the abnormal data include at least input parameter, output parameter And operation variable;Based on the abnormality code line number, abnormality code is positioned in the source code, the abnormality code is the abnormal generation Code in the code line of code line number instruction;The abnormality code is obtained, generate and shows abnormal notice, the abnormal notice carries the abnormality code, the exception Information and the abnormal data.
- 2. according to the method described in claim 1, it is characterized in that, described when the system of detecting is abnormal, acquisition abnormity Before information and abnormal data, the method further includes:When the access request for receiving the system, based on collecting device, the data connection between the system is established;Based on collecting device, the source code of the system transmission is received, by the system banner of the system and the source generation The corresponding storage of code.
- 3. according to the method described in claim 1, it is characterized in that, described be based on the abnormality code line number, in the source generation Positioning abnormality code includes in code:Determine the code line number of at least line code in the source code;It is positioned in the code line number of at least line code, code line number is consistent with the abnormality code line number Code in code line is as the abnormality code.
- 4. according to the method described in claim 1, it is characterized in that, described be based on the code line number, in the source code After positioning abnormality code, the method further includes:Based on default notation methods, the exception information and the abnormal data are labeled in the specific bit of the abnormality code It puts.
- 5. according to the method described in claim 1, it is characterized in that, the acquisition abnormality code, generates and shows exception Notice includes:The abnormality code is obtained, determines preset format, the preset format is used to indicate the form notified extremely;According to the preset format, the abnormality code, the exception information and the abnormal data are combined, generate institute State abnormal notice;Show the abnormal notice.
- 6. a kind of Code location device, which is characterized in that described device includes:Acquisition module, for when the system of detecting is abnormal, acquisition abnormity information and abnormal data, the exception information to be taken Abnormality code line number of the code that band is abnormal in the source code of the system, the abnormal data, which includes at least input, joins Number, output parameter and operation variable;Locating module for being based on the abnormality code line number, positions abnormality code, the abnormality code in the source code For the code in the code line of abnormality code line number instruction;Generation module for obtaining the abnormality code, generates and shows abnormal notice, and the abnormal notice carries the exception Code, the exception information and the abnormal data.
- 7. device according to claim 6, which is characterized in that described device further includes:Module is established, for when the access request for receiving the system, based on collecting device, establishing between the system Data connection;Receiving module for being based on collecting device, receives the source code of the system transmission, by the system mark of the system Know storage corresponding with the source code.
- 8. device according to claim 6, which is characterized in that described device further includes:The exception information and the abnormal data for being based on default notation methods, are labeled in the exception by labeling module The designated position of code.
- 9. a kind of electronic equipment, which is characterized in that including the Code location device described in claim 6 to 8 any one.
- 10. a kind of electronic equipment, which is characterized in that including:Memory, for storing executable instruction;And processor, for communicating to perform the executable instruction so as to complete claim 1 to 5 times with the memory The operation of Code location method described in meaning one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711402595.3A CN108132850B (en) | 2017-12-22 | 2017-12-22 | Code positioning method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711402595.3A CN108132850B (en) | 2017-12-22 | 2017-12-22 | Code positioning method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108132850A true CN108132850A (en) | 2018-06-08 |
CN108132850B CN108132850B (en) | 2021-06-01 |
Family
ID=62391435
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711402595.3A Active CN108132850B (en) | 2017-12-22 | 2017-12-22 | Code positioning method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108132850B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111597093A (en) * | 2019-02-20 | 2020-08-28 | 阿里巴巴集团控股有限公司 | Exception handling method, device and equipment |
CN112445706A (en) * | 2020-11-27 | 2021-03-05 | 深圳前海微众银行股份有限公司 | Program abnormal code acquisition method and device, electronic equipment and storage medium |
CN112527546A (en) * | 2020-12-14 | 2021-03-19 | 携程旅游网络技术(上海)有限公司 | Application exception rapid positioning method, system, equipment and storage medium |
CN113535579A (en) * | 2021-07-28 | 2021-10-22 | 展讯半导体(成都)有限公司 | Abnormity positioning method and related device |
CN113672429A (en) * | 2021-10-25 | 2021-11-19 | 深圳市工易付电子科技有限公司 | Code exception pushing method, device, equipment and storage medium |
CN114217782A (en) * | 2022-02-22 | 2022-03-22 | 深圳市明源云科技有限公司 | Method, device, equipment and medium for automatically generating interactive page |
CN116662096A (en) * | 2022-12-12 | 2023-08-29 | 荣耀终端有限公司 | Fault debugging method and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239219A (en) * | 2014-10-21 | 2014-12-24 | 中国科学院软件研究所 | Software defect positioning technology on-line evaluating and experimenting platform and method based on coverage |
CN104731696A (en) * | 2013-12-19 | 2015-06-24 | 腾讯科技(深圳)有限公司 | Method of locating bug in procedure code and relevant device |
CN106294134A (en) * | 2016-07-29 | 2017-01-04 | 腾讯科技(深圳)有限公司 | The collapse localization method of code and device |
US20170228293A1 (en) * | 2016-02-04 | 2017-08-10 | International Business Machines Corporation | Providing integrity for data sets backed-up from client systems to objects in a network storage |
US20170353195A1 (en) * | 2016-06-02 | 2017-12-07 | Texas Instruments Incorporated | Methods and apparatus to determine and apply polarity-based error correction code |
-
2017
- 2017-12-22 CN CN201711402595.3A patent/CN108132850B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731696A (en) * | 2013-12-19 | 2015-06-24 | 腾讯科技(深圳)有限公司 | Method of locating bug in procedure code and relevant device |
CN104239219A (en) * | 2014-10-21 | 2014-12-24 | 中国科学院软件研究所 | Software defect positioning technology on-line evaluating and experimenting platform and method based on coverage |
US20170228293A1 (en) * | 2016-02-04 | 2017-08-10 | International Business Machines Corporation | Providing integrity for data sets backed-up from client systems to objects in a network storage |
US20170353195A1 (en) * | 2016-06-02 | 2017-12-07 | Texas Instruments Incorporated | Methods and apparatus to determine and apply polarity-based error correction code |
CN106294134A (en) * | 2016-07-29 | 2017-01-04 | 腾讯科技(深圳)有限公司 | The collapse localization method of code and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111597093A (en) * | 2019-02-20 | 2020-08-28 | 阿里巴巴集团控股有限公司 | Exception handling method, device and equipment |
CN111597093B (en) * | 2019-02-20 | 2024-04-16 | 阿里巴巴集团控股有限公司 | Exception handling method, device and equipment thereof |
CN112445706A (en) * | 2020-11-27 | 2021-03-05 | 深圳前海微众银行股份有限公司 | Program abnormal code acquisition method and device, electronic equipment and storage medium |
CN112527546A (en) * | 2020-12-14 | 2021-03-19 | 携程旅游网络技术(上海)有限公司 | Application exception rapid positioning method, system, equipment and storage medium |
CN113535579A (en) * | 2021-07-28 | 2021-10-22 | 展讯半导体(成都)有限公司 | Abnormity positioning method and related device |
CN113672429A (en) * | 2021-10-25 | 2021-11-19 | 深圳市工易付电子科技有限公司 | Code exception pushing method, device, equipment and storage medium |
CN114217782A (en) * | 2022-02-22 | 2022-03-22 | 深圳市明源云科技有限公司 | Method, device, equipment and medium for automatically generating interactive page |
CN116662096A (en) * | 2022-12-12 | 2023-08-29 | 荣耀终端有限公司 | Fault debugging method and electronic equipment |
CN116662096B (en) * | 2022-12-12 | 2024-04-23 | 荣耀终端有限公司 | Fault debugging method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108132850B (en) | 2021-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108132850A (en) | Code location method, apparatus and electronic equipment | |
CN105577293B (en) | A kind of test method of bluetooth equipment, apparatus and system | |
US8655336B1 (en) | Remote issue logging and reporting of mobile station issues and diagnostic information to manufacturer | |
CN104811894B (en) | Statistical method and device for people flow distribution and server | |
CN105392178B (en) | A kind of method and apparatus for being used to obtain the access information of WAP | |
CN106535234A (en) | Method and device for associating measurement report with user, and method and device for locating Internet surfing problem of user | |
US11740997B2 (en) | Method and apparatus for debugging a device | |
CN110031746A (en) | Chip testing long-distance monitoring method, device, computer equipment and storage medium | |
CN111274131A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN105491576A (en) | Method and device for acquiring network test data | |
CN112148579A (en) | User interface testing method and device | |
CN105392142A (en) | Wireless fidelity Wi-Fi access point information storage method and device | |
CN112566078A (en) | Device connection method and apparatus, storage medium, and electronic apparatus | |
CN106982463B (en) | Positioning method, positioning device, positioning terminal and server based on multiple information | |
CN106503023A (en) | The method and device of prompting nearby friends | |
CN110928797B (en) | Code coupling detection method and device, terminal equipment and storage medium | |
US20220382821A1 (en) | Method for recommending social user, electronic device and non-transitory computer-readable storage medium | |
CN104156684A (en) | Data display method and device thereof | |
CN103168481B (en) | The operational administrative of call center | |
CN107370863B (en) | Connection information updating method and device based on Bluetooth connection | |
CN112911629A (en) | Network testing method and device and computer readable storage medium | |
CN105989159A (en) | Information pushing method, device and system | |
CN113965476B (en) | Inspection method, device and equipment based on application | |
CN112398909B (en) | Data exchange method, device, equipment and computer readable storage medium | |
CN115102638B (en) | Information acquisition method, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180920 Address after: 26 Ying Yun street, Singapore Applicant after: Bit continent Technology Co., Ltd. Address before: 100029 Beijing Haidian District Austria north industrial base project 6 Building 2 level. Applicant before: BEIJING BITMAIN TECHNOLOGY CO., LTD. |
|
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210115 Address after: Room A1, 11 / F, punctuality building, 245-251 Hennessy Road, Hong Kong, China Applicant after: BITMAIN TECHNOLOGY Co.,Ltd. Address before: 26 Ying Yun street, Singapore Applicant before: BITMAIN TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210511 Address after: 2701, 27th floor, Central Plaza, 18 Harbour Road, Wanchai, Hong Kong, China Applicant after: Ant Mining Technology Co.,Ltd. Address before: Room A1, 11 / F, punctuality building, 245-251 Hennessy Road, Hong Kong, China Applicant before: BITMAIN TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |