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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap