Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for recording software debugging logs

A technology for recording software and logs, applied in the field of recording software debugging logs, to achieve the effect of efficient software abnormal location

Inactive Publication Date: 2014-02-12
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a method and device for recording software debugging logs, which can easily see the steps of program execution and locate software abnormalities, so as to solve the problems of the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for recording software debugging logs
  • Method and device for recording software debugging logs
  • Method and device for recording software debugging logs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] see figure 1 , figure 1 is a schematic block diagram of a device 10 for recording software debugging logs according to an embodiment of the present invention. The device 10 includes a processing unit 12 , a storage unit 14 , an input interface 16 , an output unit 18 , a log creation unit 20 and a log writing unit 22 . The device 10 may be a personal computer (PC), a notebook computer, a digital TV, or other electronic devices capable of executing software program codes, or a hardware circuit, software unit or It is a combination of software and hardware.

[0026] The processing unit 12 may be a single-core, dual-core or multi-core processor, and is used to control the operation of the device 10 and to execute software program codes, such as debugging programs. In this embodiment, the debugging program includes at least one thread, and the debugging program can run multiple threads at the same time to complete different tasks.

[0027] The storage unit 14 may be a me...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for recording software debugging logs. The method comprises the steps of starting one or more thread, wherein every thread comprises a thread identifier; setting a thread name of every thread and establishing a corresponding table of the thread names and the thread identifiers; establishing a plurality of log files, corresponding every thread to one of the log files; obtaining the current thread identifier and searching the thread name which is corresponding to the current thread identifier according to the corresponding table; writing log information produced by execution of the current thread into the log file which is corresponding o the current thread. Every thread comprises a corresponding log file name and accordingly an operator can understand the execution steps of the integral program conveniently by reviewing a plurality of log content. In addition, the operator can still understand which one of the threads is in case of errors in the execution process by reviewing the plurality of log files even if a module which is utilized by the plurality of threads is abnormal when one of the threads is executed.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a method and device for recording software debugging logs. Background technique [0002] With the rapid development of computer technology, the demand for using application software through computers in people's life and work is also increasing. As the scale of application software continues to expand, in order to allow computers to operate more efficiently, current software generally adopts multi-threading technology. However, the larger the size of the software, the higher the complexity of debugging. Therefore, in order to facilitate the operator to query, track and analyze in the future, the system will generate a log (log) to record the behavior and status of each thread running. [0003] Traditional software debugging logs are recorded according to software modules, and the logs of the same module or multiple modules are recorded in the same file. However, in the process...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 赖晶
Owner TENCENT TECH (SHENZHEN) CO LTD