Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 process, time-consuming problem location, and even affecting the performance of the storage system

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

Embodiment 1

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

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

[0053]In the embodiment of the present invention, a trace module may be pre-added to the system program to be debugged. Wherein, the system program may be a system program of the storage system, and the trace module may record trace information in each storage module in the storage system to the memory space through an interface function provided by the trace module. In addition, the variable structure to be displayed is encoded in a specified format, such as BE format.

[0054] Preferably, for the convenience of operation, the variable structure to be displayed can also be determined according to the debugging information display request output by th...

Embodiment 2

[0081] In order to facilitate those skilled in the art to better understand the technical solution provided by the embodiment of the present invention, the technical solution provided by the embodiment of the present invention will be described in detail below by taking query debugging in combination with the inBE tool as an example.

[0082] Please refer to figure 2 , firstly, the trace module defines trace_table, which is composed of N trace_entries. The structure of the entry can be defined, that is, a general interface is defined, which can deal with trace records in multi-parameter situations; secondly, trace_table needs to be defined and initialized when using it, and the trace table is allocated Memory space, and then you can use the interface function to record trace; finally, you can view the defined trace information through inBE.

[0083] The implementation of the storage system program mainly includes: defining the selfDefineStruct of the trace, the trace content ...

Embodiment 3

[0087] Corresponding to the above method embodiments, an embodiment of the present invention also provides a program debugging device, and the program debugging device described below and the program debugging method described above can be referred to in correspondence.

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

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

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

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

[0092] Trace information reading module...

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
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More