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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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]}
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
