Software debugging method based on Windows message mechanism

A technology of software debugging and message mechanism, which is applied in the field of Windows message mechanism to achieve the effect of convenient debugging

Inactive Publication Date: 2013-04-03
THE 45TH RES INST OF CETC
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a kind of software debugging method based on Windows message mechanism, will solve the technical problem that encounters when debugging the program that exists in the background technology, especially how not to disturb the window picture problem of the program being debugged in the process of debugging a program

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
  • Software debugging method based on Windows message mechanism
  • Software debugging method based on Windows message mechanism
  • Software debugging method based on Windows message mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in combination with specific examples and with reference to the accompanying drawings.

[0030] see figure 1 As shown, the software debugging method based on the Windows message mechanism, the steps are as follows:

[0031] Step 1: Insert a debugging information into the code line that needs to be debugged in the program to be debugged; the program to be debugged is a message sending end; the debugging information is a global function, which can be easily inserted into any program that needs to be debugged. The code of the global function is fixed, and it can be called directly after being inserted into the program to be debugged; the debugging information can be set with a message ID number, which is an integer ranging from –32768 to 32767, It can be set arbitrarily according to the needs, and is used to calib...

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 software debugging method based on a Windows message mechanism. The method comprises the following steps of: step 1, inserting debugging information into a program to be debugged; step 2, starting the program to be debugged to call the debugging information, and sending a message to an information debugger through a Window message queue; step 3, starting the information debugger; step 4, directly running the program to be debugged, and testing a part needing to obtaining the debugging information; step 5, closing the program to be debugged; step 6, activating the information debugger to display the debugging information; step 7, analyzing problems of the program to be debugged; step 8, modifying reference codes of the program to be debugged; and step 9, repeating the steps 4 to 8 until all codes of the program to be debugged is debugged. According to the method, all debugging information are displayed by an independent window, a running information record of the program can be still remained when the program to be debugged is crashed, and the method is applicable for processes of unit debugging, overall debugging and the like of a large multi-module multi-threading complicated software system.

Description

technical field [0001] The invention relates to the field of Windows message mechanism, in particular to a method for debugging software based on the Windows message mechanism. Background technique [0002] Debugging a program is an extremely important part of the software writing process. When debugging a program, AfxMessageBox() is usually used to pop up a message box to display debugging information. Although this method is convenient, it will interrupt the running of the program to be debugged. In addition, if the message box occupies the window screen of the program to be debugged, once the message box ends, the system will send an unnecessary WM_PAINT message to the window of the program to be debugged, and the OnDraw() or OnPaint() function will be called at the same time, making the debugger The whole process becomes cumbersome and inconvenient to use. If the message box is placed in the OnDraw() or OnPaint() functions, program debugging will fall into an infinite...

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 THE 45TH RES INST OF CETC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products