Fault Location Method Using Version-Based Mapping Files
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing exception analysis methods in application development are inefficient due to low time effectiveness and increasing application package sizes, leading to poor user experience.
Innovation Solution
A method that parses error information to obtain version and error attributes, determines a target mapping file based on version information, and uses the error attribute and mapping file to locate fault description content, optimizing storage and analysis efficiency by adjusting storage locations and using multilevel memories.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of time
If original exception analysis method is used, then fault information can be obtained, but time effectiveness is low
Solution Approach 1:
The patent pre-processes and stores mapping relationships between error locations and source code positions in a mapping file before actual error analysis. When an error occurs, the system can directly query the pre-prepared mapping file to quickly locate fault information, avoiding time-consuming analysis of the entire application package at runtime.
2Adaptability or versatility
If application functions continuously expand, then application capabilities improve, but application package size increases
Solution Approach 1:
The patent extracts only the necessary mapping information (error location to source code position relationships) from the application package and stores it in a separate mapping file. This separation allows the main application package to remain compact while still providing comprehensive error analysis capabilities through the external mapping file.
3Measurement precision
If comprehensive error analysis is performed, then fault location accuracy improves, but analysis time increases
Solution Approach 1:
The system pre-calculates and stores the mapping relationships between error locations and source code positions during application development or deployment. When an error occurs, the system directly queries this pre-prepared mapping data to achieve both high accuracy in fault location and fast analysis speed, eliminating the need for time-consuming real-time analysis.
Data Source
AI summary
A method for locating a fault information is provided. The method includes: parsing error information of a target application to obtain version information and an error attribute of the target application; determining, based on the version information, a target mapping file corresponding to the error information; and determining a target location by utilizing the error attribute and the target mapping file, where the target location is used to determine a location of fault description content.


