A dynamic debugging apk plug-in device

By dynamically debugging the information viewing, resource updating, scene parameter adjustment and code repair unit of the apk plug-in device, we solve the troubleshooting problems of code anomalies and scene errors in Unity development, achieve rapid location and repair, and improve development efficiency and product launch speed. .

CN117950993BActive Publication Date: 2024-10-08BEIJING EASY TIMES DIGITAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311662391.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2024-10-08
Estimated Expiration
2043-12-06

AI Technical Summary

Technical Problem

During the Unity development process, code anomalies are difficult to track and debug. Especially in large projects, the process of troubleshooting and repairing scene errors is time-consuming and inconvenient, making it difficult to quickly discover and repair them.

Method used

Provides a dynamic debugging apk plug-in device, including an information viewing unit, a resource update unit, a scene parameter adjustment unit and a code repair unit. It achieves rapid positioning by dynamically viewing and classifying display information, hot updating resources, adjusting scene parameters and repairing abnormal codes. and repair.

Benefits of technology

Developers can discover and resolve exception information more clearly and intuitively, and dynamically modify resources and codes without repackaging apk, saving time and energy, improving debugging efficiency, quickly discovering and repairing scenario exceptions, and accelerating product launch.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117950993B_ABST
    Figure CN117950993B_ABST
Patent Text Reader

Abstract

The present invention discloses a dynamic debugging apk plug-in, which includes: an information viewing unit, which is used to dynamically view the information in an application program, and locate and classify the viewed information to find abnormal information in the application program; a resource update unit, which is used to separate the resources in the application program, and dynamically load and update the resources by hot update to repair the abnormal resources; a scene parameter adjustment unit, which is used to dynamically adjust the parameters of the application program in different scenes to track and repair the abnormal parameters of the application program during the scene switching process; a code repair unit, which is used to identify the abnormal code in the application program, and dynamically repair and save the abnormal code, and verify and debug the repaired code. The present invention enables developers to more quickly find the problem points in the application program and repair them in time, ensuring that developers can work normally and efficiently, and speeding up the development cycle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a dynamic debugging apk plug-in device. Background Art

[0002] Since Unity is a cross-platform engine with complex internal mechanisms, code exceptions that occur during the development process may be difficult to track and debug, especially when the code is large and multiple external plug-ins or modules are used. The cause of the exception is often difficult to locate, which increases the difficulty of troubleshooting and fixing the exception. In large Unity projects, there are usually multiple scenes and various scene switching logics. However, when scene errors are found during debugging and testing, developers may need to manually enter and exit different scenes to troubleshoot and locate the problem. This process is time-consuming and inconvenient, and it is difficult to quickly find and fix scene errors. Summary of the invention

[0003] In order to solve the above technical problems, the present invention provides a dynamic debugging apk plug-in device, comprising:

[0004] An information viewing unit is used to dynamically view the information in the application, and locate and classify the viewed information to discover abnormal information in the application;

[0005] The resource update unit is used to separate the resources in the application and dynamically load and update the resources through hot update to repair abnormal resources;

[0006] A scene parameter adjustment unit, used to dynamically adjust the parameters of the application in different scenes, so as to track and repair abnormal parameters of the application during scene switching;

[0007] The code repair unit is used to identify abnormal codes in the application, dynamically repair and save the abnormal codes, and verify and debug the repaired codes.

[0008] Furthermore, the information viewing unit includes:

[0009] The information classification module is used to identify and classify the information in the application, and display the information according to three levels: normal, warning, and abnormal;

[0010] An information positioning module is used to locate the identified abnormal information and display the front information and the rear information of the abnormal information;

[0011] The exception tracking module is used to track the located exception information in real time and display the detailed information of the exception information.

[0012] Furthermore, the resource updating unit includes:

[0013] Resource management module, used to manage the import, export and deletion of resources in the application;

[0014] The hot update module is used to perform hot updates on resources in the application, that is, dynamically load and replace resources while the application is running;

[0015] The abnormal resource repair module is used to identify abnormal resources and repair them after they are found;

[0016] The resource version control module is used to track the version history of resources and manage resource versions.

[0017] Furthermore, in the resource update unit, resources need to be specifically authorized, and subsequent loading and updating are performed after the resources are authorized.

[0018] Furthermore, the scene parameter adjustment unit includes:

[0019] The scene switching management module is used to manage the switching of applications between different scenes;

[0020] The parameter adjustment module is used to adjust the parameters of the application in different scenarios.

[0021] Furthermore, the parameter adjustment module includes:

[0022] Dynamic parameter adjustment submodule, used to adjust parameters in real time when the application is running;

[0023] The parameter saving and loading submodule is used to save the adjusted parameter settings and load these parameters at the next run;

[0024] The parameter rollback and reset submodule is used to undo the previously set parameter adjustments, restore to the initial state, or reset the parameters to the default values;

[0025] The parameter verification and restriction submodule is used to verify and limit the range of parameters, and verify the legality and validity of parameters;

[0026] The parameter import and export submodule is used to import and export parameters, that is, to export parameter settings as files, or import parameters from files.

[0027] Furthermore, the code repair unit includes:

[0028] The code static analysis module is used to analyze the source code in the application through static analysis technology to identify potential errors and abnormal codes in the source code;

[0029] Just-in-time coding module, used to just-in-time code coding of abnormal codes, i.e. dynamically repair and save the codes while the application is running;

[0030] Verification and debugging module, used to verify and debug the repaired code;

[0031] The code version control module is used to track the version history of the repair code and manage the code version.

[0032] Furthermore, in the instant coding module, the written code needs to be verified for compliance, and the code needs to be automatically run after the compliance verification.

[0033] Compared with the prior art, the dynamic debugging apk plug-in device of the present invention has the following beneficial effects:

[0034] The present invention enables developers to more clearly and intuitively discover and resolve exception information in the application through the information viewing unit. At the same time, the exception information can be dynamically modified in a timely manner through the resource update unit and the code repair unit without repackaging the apk, thereby saving a lot of time and energy. This enables developers to debug and develop more efficiently, accelerate product launches in the process of continuous iterative optimization, and solves the problem of inconvenience caused by manual entry and exit of different scenes in multiple scenes and various scene switching logics through the scene parameter adjustment unit, so that exceptions in the scene can be quickly discovered and repaired. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a schematic diagram of the composition of a dynamic debugging apk plug-in device in an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0037] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the referred plug-in or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0038] The terms "second" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, a feature defined with "second" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "multiple" means two or more.

[0039] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0040] like Figure 1 As shown, in an embodiment of the present application, a dynamic debugging apk plug-in device is provided, including: an information viewing unit, which is used to dynamically view the information in the application, and locate and classify the viewed information to discover abnormal information in the application; a resource update unit, which is used to separate the resources in the application, and dynamically load and update the resources by hot update to repair the abnormal resources; a scene parameter adjustment unit, which is used to dynamically adjust the parameters of the application in different scenes to track and repair the abnormal parameters of the application during the scene switching process; a code repair unit, which is used to identify the abnormal code in the application, dynamically repair and save the abnormal code, and verify and debug the repaired code.

[0041] Furthermore, through the information viewing unit, developers can more clearly and intuitively discover and resolve exception information in the application. At the same time, they can dynamically modify the exception information in a timely manner through the resource update unit and the code repair unit without repackaging the apk, thereby saving a lot of time and energy. This enables developers to debug and develop more efficiently, accelerate product launches in the process of continuous iterative optimization, and solve the inconvenience caused by manual entry and exit of different scenes in multiple scenes and various scene switching logics through the scene parameter adjustment unit, so that exceptions in the scene can be quickly discovered and repaired.

[0042] In an embodiment of the present application, a dynamic debugging apk plug-in device is provided, and the information viewing unit includes: an information classification module, which is used to identify and classify the information in the application, and classify and display the information according to three levels: normal, warning, and abnormal; an information positioning module, which is used to locate the identified abnormal information, and display the front information and the rear information of the abnormal information; an abnormal tracking module, which is used to track the located abnormal information in real time, and display the detailed information of the abnormal information.

[0043] Specifically, a user interface is built into the information viewing unit, and developers can dynamically view the Log information of the application through the interface, and identify the Log information in the application through the information classification module, determine whether the information is abnormal, and classify and display it, so as to facilitate developers to distinguish and handle different types of problems; and the information positioning module in the user interface has a search function, which can quickly search by entering keywords to locate relevant Log information. When the developer selects a Log, the location of the Log will be located, and the information before and after the Log will be displayed, so that the developer can better understand the context.

[0044] The information in the application is identified and located by the information classification module and the information location module, so that developers can find possible problem points more quickly and track them in real time.

[0045] In an embodiment of the present application, a dynamic debugging apk plug-in device is provided, and the resource update unit includes: a resource management module, which is used to manage the import, export and deletion of resources in the application; a hot update module, which is used to hot update the resources in the application, that is, dynamically load and replace resources when the application is running; an abnormal resource repair module, which is used to identify abnormal resources and repair them after the abnormal resources are found; a resource version control module, which is used to track the version history of resources and manage resource versions.

[0046] Specifically, developers can import AssetBundle resource files in the Unity editor through the resource management module, upgrade them to the application, and specify the target resources that need to be updated; the hot update module will download the new resource files and replace the original resource files without the time and energy expenditure of repackaging the apk, thereby achieving the effect of hot update, greatly speeding up the debugging and optimization process, and enabling developers to work more efficiently; the abnormal resource repair module can promptly repair resource-related problems, improving development efficiency and user experience.

[0047] In an embodiment of the present application, a dynamic debugging apk plug-in device is provided. In the resource update unit, resources need to be specifically authorized, and subsequent loading and updating are performed after the resources are authorized.

[0048] In an embodiment of the present application, a dynamic debugging apk plug-in device is provided, and the scene parameter adjustment unit includes: a scene switching management module for managing the switching of the application in different scenes; and a parameter adjustment module for adjusting the parameters of the application in different scenes.

[0049] Specifically, the scene switching management module interacts with the Unity engine to obtain and modify the properties and states of UI elements, components and 3D objects, and establishes a communication bridge interface with the Unity engine; the parameter adjustment module allows developers to dynamically adjust the parameters of UI and 3D scenes through the communication bridge interface at runtime, so that developers can directly modify and adjust the properties of UI elements or 3D objects in the application on the plug-in interface. Through the provided interface, developers can view and modify the structure, properties and components of all hierarchical trees in the Unity editor, and can also modify the position, size, color and other properties of UI elements in real time, or modify the rotation, scaling and other parameters of objects in the 3D scene. In this way, developers can observe the impact of parameter changes on interface effects in real time, and quickly verify and optimize, and this intuitive debugging method greatly improves development efficiency.

[0050] In an embodiment of the present application, a dynamic debugging apk plug-in device is provided, and the parameter adjustment module includes: a dynamic parameter adjustment submodule, which is used to adjust parameters in real time when the application is running; a parameter saving and loading submodule, which is used to save the adjusted parameter settings and load these parameters at the next run; a parameter rollback and reset submodule, which is used to undo the previously set parameter adjustments, restore to the initial state, or reset the parameters to the default values; a parameter verification and restriction submodule, which is used to verify and limit the range of parameters, and verify the legality and validity of the parameters; a parameter import and export submodule, which is used to import and export parameters, that is, to export parameter settings as files, or import parameters from files.

[0051] Specifically, the dynamic parameter adjustment submodule can support dynamic parameter adjustment, that is, adjust the parameters in real time when the application is running. Developers can dynamically adjust the parameters in the application according to the needs of different scenarios, such as game difficulty, sound effect volume, etc.; the parameter saving and loading submodule can support parameter saving and loading functions. Developers can save the adjusted parameter settings and load these parameters at the next run, so that the user's personalized settings can be retained and a better user experience can be provided; the parameter rollback and reset submodule can provide parameter rollback and reset functions. Developers can undo previous parameter adjustments, restore to the initial state, or reset the parameters to the default values, which helps developers to flexibly control parameters during debugging and testing; the parameter verification and restriction submodule can verify and limit the range of parameters to ensure the legality and validity of the parameters. Developers can set the value range of the parameters to prevent unreasonable parameter settings; the parameter import and export submodule can support parameter import and export functions. Developers can export parameter settings as files, or import parameter settings from files, which facilitates parameter backup, sharing and cross-platform use.

[0052] In an embodiment of the present application, a dynamic debugging apk plug-in device is provided, and the code repair unit includes: a code static analysis module, which is used to analyze the source code in the application through static analysis technology, and identify abnormal codes with potential errors and problems in the source code; a real-time encoding module, which is used to encode the abnormal code in real time, that is, dynamically repair and save the code while the application is running; a verification and debugging module, which is used to verify and debug the repaired code; a code version control module, which is used to track the version history of the repair code and manage the code version.

[0053] Specifically, the instant coding module allows developers to write and save code directly on the interface through the user interface. After saving, the developer can restart the application to automatically load and apply the modified code effect. The developer does not need to repackage the APK, but can verify and debug the modified code through the verification and debugging module, allowing developers to quickly iterate and debug the code, saving packaging time. This flexible debugging method not only reduces repetitive steps, but also can quickly verify the correctness of logic and functions, thereby accelerating the development cycle.

[0054] In an embodiment of the present application, a dynamic debugging apk plug-in device is provided. In the just-in-time encoding module, the written code needs to be verified for compliance, and the code is automatically run after the compliance verification.

[0055] In summary, an embodiment of the present invention provides a dynamic debugging apk plug-in device, which includes: an information viewing unit, which is used to dynamically view the information in the application, and locate and classify the viewed information to discover abnormal information in the application; a resource update unit, which is used to separate the resources in the application, and dynamically load and update the resources by hot update to repair the abnormal resources; a scene parameter adjustment unit, which is used to dynamically adjust the parameters of the application in different scenes to track and repair the abnormal parameters of the application during the scene switching process; a code repair unit, which is used to identify the abnormal code in the application, dynamically repair and save the abnormal code, and verify and debug the repaired code. The present invention enables developers to more clearly and intuitively discover and resolve exception information in the application through the information viewing unit. At the same time, the exception information can be dynamically modified in a timely manner through the resource update unit and the code repair unit without repackaging the apk, thereby saving a lot of time and energy. This enables developers to debug and develop more efficiently, accelerate product launches in the process of continuous iterative optimization, and solves the problem of inconvenience caused by manual entry and exit of different scenes in multiple scenes and various scene switching logics through the scene parameter adjustment unit, so that exceptions in the scene can be quickly discovered and repaired.

[0056] Finally, it should be noted that it is obvious that those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

[0057] The above is only an example of implementation of the present invention, but it cannot be used to limit the scope of the present invention. Any structural changes made according to the present invention, as long as they do not lose the essence of the present invention, should be regarded as falling within the scope of protection of the present invention and subject to restrictions. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process and related instructions described above can refer to the corresponding process in the aforementioned plug-in embodiment, and will not be repeated here.

[0058] The term "comprises," "comprising," or any other similar term is intended to cover a non-exclusive inclusion such that a process, plug-in, article, or device / plug-in that comprises a list of elements includes not only those elements but also other elements not expressly listed or inherent to such process, plug-in, article, or device / plug-in.

[0059] So far, the technical solutions of the present invention have been described in conjunction with the further embodiments shown in the accompanying drawings, but it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0060] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.

Claims

1. A dynamic debugging apk plug-in device, characterized in that: Based on the Unity engine, including: An information viewing unit is used to dynamically view the information in the application, and locate and classify the viewed information to discover abnormal information in the application; The resource update unit is used to separate the resources in the application and dynamically load and update the resources through hot update to repair abnormal resources; A scene parameter adjustment unit, used to dynamically adjust the parameters of the application in different scenes, so as to track and repair abnormal parameters of the application during scene switching; A code repair unit is used to identify abnormal codes in the application, dynamically repair and save the abnormal codes, and verify and debug the repaired codes; The scene parameter adjustment unit comprises: The scene switching management module is used to manage the switching of applications between different scenes; Parameter adjustment module, used to adjust the parameters of the application in different scenarios; The parameter adjustment module comprises: Dynamic parameter adjustment submodule, used to adjust parameters in real time when the application is running; The parameter saving and loading submodule is used to save the adjusted parameter settings and load these parameters at the next run; The parameter rollback and reset submodule is used to undo the previously set parameter adjustments, restore to the initial state, or reset the parameters to the default values; The parameter verification and restriction submodule is used to verify and limit the range of parameters, and verify the legality and validity of parameters; The parameter import and export submodule is used to import and export parameters, that is, to export parameter settings as files, or import parameters from files.

2. A dynamic debugging apk plug-in device according to claim 1, characterized in that: The information viewing unit comprises: The information classification module is used to identify and classify the information in the application, and display the information according to three levels: normal, warning, and abnormal; An information positioning module is used to locate the identified abnormal information and display the front information and the rear information of the abnormal information; The exception tracking module is used to track the located exception information in real time and display the detailed information of the exception information.

3. A dynamic debugging apk plug-in device according to claim 1, characterized in that: The resource updating unit comprises: Resource management module, used to manage the import, export and deletion of resources in the application; The hot update module is used to perform hot updates on resources in the application, that is, dynamically load and replace resources while the application is running; The abnormal resource repair module is used to identify abnormal resources and repair them after they are found; The resource version control module is used to track the version history of resources and manage resource versions.

4. A dynamic debugging apk plug-in device according to claim 3, characterized in that: In the resource update unit, resources need to be authorized, and subsequent loading and updating are performed after the resources are authorized.

5. A dynamic debugging apk plug-in device according to claim 1, characterized in that: The code repair unit comprises: The code static analysis module is used to analyze the source code in the application through static analysis technology to identify potential errors and abnormal codes in the source code; Just-in-time coding module, used to just-in-time code coding of abnormal codes, i.e. dynamically repair and save the codes while the application is running; Verification and debugging module, used to verify and debug the repaired code; The code version control module is used to track the version history of the repair code and manage the code version.

6. A dynamic debugging apk plug-in device according to claim 5, characterized in that: In the instant coding module, the written code needs to be verified for compliance, and the code needs to be automatically run after the compliance verification.