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

Application layer code debugging information multi-channel output realization method

A technology for debugging information and implementation methods, which is applied in software testing/debugging, instrumentation, electrical digital data processing, etc., to achieve the effects of reducing labor costs and time costs, improving debugging efficiency, and saving debugging time

Inactive Publication Date: 2018-08-03
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this solution still has the following defects: the standard input and output functions encapsulated by Glibc can only realize the local printing of debugging information, and it is helpless for the accident scene and the situation where the personnel are located in different places.

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
  • Application layer code debugging information multi-channel output realization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0075] Defined in config.h are:

[0076] / / #define DBG_PRINTF(...)

[0077] #define DBG_PRINTF DebugPrint

[0078] During the code debugging stage, you can open the following macro to print the debugging information. When the official version is released, open the above macro, and comment out the following macro to remove the printing information.

[0079] The code sample snippet is as follows:

[0080] static int GetPixelDatasFrmBMP(PT_FileMap ptFileMap, PT_PixelDatasptPixelDatas)

[0081] {

[0082] ...

[0083] iWidth = ptBITMAPINFOHEADER->biWidth;

[0084] iHeight = ptBITMAPINFOHEADER->biHeight;

[0085] iBMPBpp = ptBITMAPINFOHEADER->biBitCount;

[0086] if (iBMPBpp != 24)

[0087] {

[0088] DBG_PRINTF("iBMPBpp = %d\n", iBMPBpp);

[0089] DBG_PRINTF("sizeof(BITMAPFILEHEADER)=%d\n",sizeof(BITMAPFILEHEADER));

[0090] return -1;

[0091]}

[0092] ...

[0093] return 0;

[0094]}

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 particularly relates to an application layer code debugging information multi-channel output realization method. According to the application layer code debugging information multi-channel output realization method, a debug_manager.c program is taken as a core layer, multi-channel output and remote network printing of debugging information are supported, and a developer can obtain afield log in real time remotely; and the debug_manager.c program provides a practical interface package for a user upwards, abstracts a package structure body for a specific printing channel downwards, and provides a registry function of the structure body. According to the application layer code debugging information multi-channel output realization method, the multi-channel output and the remotenetwork printing of the debugging information are supported, and the developer can obtain the field log in real time remotely, so that the debugging time can be saved, the debugging efficiency can beimproved, and the labor and time cost of remote debugging is reduced.

Description

technical field [0001] The invention relates to the technical field of debugging information, in particular to a multi-channel output implementation method of application layer code debugging information. Background technique [0002] Debugging information plays an important role in the program development stage. Program debugging (debug), performance tuning, and auxiliary information printing are all inseparable from the help of debugging information. Traditional debugging information is used to interact with R&D personnel through standard input and output. If the code is local, then the presentation of this debugging information is naturally the first choice. However, if the R&D personnel who need to view the debugging information and the code are not in the same place, for example, the machine of a foreign customer is hung, and the solution personnel are in China, then the traditional debugging information interaction method cannot meet the demand. [0003] Based on the ...

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
IPC IPC(8): G06F11/36
CPCG06F11/362G06F11/3624
Inventor 王鹏
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD