Program debugging method, device, device, and readable storage medium

A technology for program debugging and storage media, which is applied in software testing/debugging, instrumentation, electrical digital data processing, etc. It can solve problems such as time-consuming problem positioning, affecting storage system performance, and slow system development process, so as to improve program debugging. Efficiency, the effect of shortening the development time

Active Publication Date: 2019-02-15
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF10 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The debugging efficiency of the debugging method is low, resulting in a slow system development p

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
  • Program debugging method, device, device, and readable storage medium
  • Program debugging method, device, device, and readable storage medium
  • Program debugging method, device, device, and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0050] Example one:

[0051] Please refer to figure 1 , figure 1 It is a flowchart of a program debugging method in an embodiment of the present invention. The method includes the following steps:

[0052] S101. Compile the system program with the trace module added, and obtain the variable structure of the specified format in the system program.

[0053] In the embodiment of the present invention, a trace module can be added in advance to the system program to be debugged. Among them, the system program can be the system program of the storage system, the trace module, and the trace information can be recorded to the memory space in each storage module in the storage system through the interface function provided by the trace module. In addition, the variable structure that needs to be displayed is encoded in a specified format, such as BE format.

[0054] Preferably, in order to facilitate the operation, the variable structure to be displayed can also be determined according to the...

Example Embodiment

[0080] Embodiment two:

[0081] In order to facilitate those skilled in the art to better understand the technical solutions provided by the embodiments of the present invention, the following takes the query and debugging in the inBE tool as an example to describe in detail the technical solutions provided by the embodiments of the present invention.

[0082] Please refer to figure 2 First, the trace module defines the trace_table, which is composed of N trace_entry. The structure of the entry can be defined, that is, it defines a common interface, which can deal with the trace record of multiple parameters. Secondly, it is necessary to define and initialize the trace_table when using it, and allocate it to the trace table Memory space, then you can use the interface function to record the trace; finally, you can view the defined trace information through inBE.

[0083] The storage system program implementation mainly includes: selfDefineStruct that defines the trace, the trace con...

Example Embodiment

[0086] Embodiment three:

[0087] Corresponding to the above method embodiment, the embodiment of the present invention also provides a program debugging device. The program debugging device described below and the program debugging method described above can be referenced correspondingly.

[0088] See image 3 As shown, the device includes the following modules:

[0089] The variable structure obtaining module 101 is used to compile the system program with the trace module added, and obtain the variable structure of the specified format in the system program;

[0090] The file generating module 102 is used to generate a Definition file corresponding to the variable structure and a Symbol file corresponding to the Definition file;

[0091] The trcae information storage module 103 is used to run the system program, and use the Definition file in combination with the Symbol file to write the trace information output by the trace module into the memory;

[0092] The trace information readin...

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 program debugging method. By adding a trace module in a system program, the system data change information corresponding to a variable structure in a specified format in thesystem program can be obtained during debugging and running, and the system data change information is displayed on a visual interface. It can improve the debugging efficiency and further shorten thedevelopment time of the system program. The invention also discloses a program debugging device, a device and a readable storage medium, which have corresponding technical effects.

Description

technical field [0001] The present invention relates to the field of computer application technology, in particular to a program debugging method, device, equipment and readable storage medium. Background technique [0002] In order to ensure the security of the storage system and realize various characteristics of storage, the storage system is often large in scale, with as many as 20 or 30 modules, which makes the problem location complicated when debugging the system program during the system development process. [0003] At present, the main method of system debugging is to directly use the inBE tool to view. This method is suitable for viewing the variable values ​​​​defined by the data structure during program operation, but with the increase of data structures, the operating efficiency will decrease. The debugging efficiency of the debugging method is low, resulting in a slow system development process, time-consuming problem location, and even affecting the performan...

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/3636G06F11/3644
Inventor 赵书龙
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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