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
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...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com