Application debugging method and device, equipment and storage medium

By obtaining and calling the target graphics resources of the application to be debugged during the application debugging process, the problem of computing resources consumption of graphics resource decoding and compilation is solved, and the debugging efficiency is improved.

CN119718894APending Publication Date: 2025-03-28CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411736182.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

During the development and debugging phase of an application, decoding and compiling all graphics resources will consume a lot of computing resources and time, resulting in poor debugging efficiency.

Method used

By obtaining the target graphics resources of the application to be debugged, determining its path information, and adding the path information to the application resource package, the target graphics resources are called based on the path information during the debugging process, avoiding unnecessary decoding and compilation.

Benefits of technology

It improves the convenience of calling target graphics resources, saves the computing resources and time required during the debugging process, and thus improves the debugging efficiency of the application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718894A_ABST
    Figure CN119718894A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of application debugging, and provides an application debugging method and device, equipment and a storage medium, and the application debugging method comprises the steps: obtaining a target graphic resource of a to-be-debugged application; determining path information of the target graphic resource in the to-be-debugged application; adding the path information to an application resource packet of the to-be-debugged application; in the process of debugging the to-be-debugged application, the corresponding target graphic resource is called according to the path information in the application resource packet, so that the calling convenience of the target graphic resource is improved, and the debugging efficiency of the application is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of application debugging technology, and in particular to an application debugging method, device, equipment and storage medium. Background Art

[0002] At present, in order to optimize the image decoding performance of the application, the relevant technology will decode and compile all the graphic resources in the graphic resource files involved in the application to achieve image decoding optimization for different hardware. However, in the development and debugging stage of the application, if all the graphic resources are decoded and compiled, it will consume a lot of computing resources and time, resulting in poor debugging efficiency of the application. Summary of the invention

[0003] The main purpose of this application is to provide an application debugging method, device, equipment and storage medium, aiming to improve the debugging efficiency of the application.

[0004] In a first aspect, the present application provides an application debugging method, comprising the following steps:

[0005] Get the target graphics resource of the application to be debugged;

[0006] Determine the path information of the target graphic resource in the application to be debugged;

[0007] Adding the path information to the application resource package of the application to be debugged;

[0008] During debugging of the application to be debugged, the corresponding target graphic resource is called according to the path information in the application resource package.

[0009] In a second aspect, the present application further provides an application debugging device, the application debugging device comprising:

[0010] An acquisition module is used to acquire target graphics resources of the application to be debugged;

[0011] A path determination module, used to determine the path information of the target graphic resource in the application to be debugged;

[0012] A path adding module, used for adding the path information to the application resource package of the application to be debugged;

[0013] The image calling module is used to call the corresponding target graphic resource according to the path information in the application resource package during the debugging of the application to be debugged.

[0014] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor;

[0015] The memory is used to store computer programs;

[0016] The processor is used to execute the computer program and implement the above-mentioned application debugging method when executing the computer program.

[0017] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the application debugging method as described above are implemented.

[0018] The present application provides an application debugging method, apparatus, device and storage medium. The application debugging method includes: obtaining a target graphic resource of an application to be debugged; determining path information of the target graphic resource in the application to be debugged; adding the path information to an application resource package of the application to be debugged; and in the process of debugging the application to be debugged, calling the corresponding target graphic resource according to the path information in the application resource package to improve the convenience of calling the target graphic resource, thereby improving the debugging efficiency of the application.

[0019] For example, in the process of debugging the application to be debugged, the computer device can directly call the target graphic resource based on the path information in the application resource package, which is conducive to improving the convenience of calling the target graphic resource. Based on the improvement of the convenience of calling the target graphic resource, the application to be debugged can call the target graphic resource without compiling the target graphic resource during the debugging process, which is conducive to saving the computing resources and time required for the debugging process of the application to be called, and then it is conducive to improving the debugging efficiency of the application to be debugged. The application debugging method can be applied to applications in different scenarios to debug applications in different scenarios, thereby improving the debugging efficiency of applications in different scenarios. Applications in different scenarios include, for example, financial applications, social applications, shopping applications, etc., which are not limited here. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1 It is a flowchart of an application debugging method provided in an embodiment of the present application;

[0022] Figure 2 is a schematic diagram of a graphic resource folder involved in an embodiment of the present application;

[0023] Figure 3is a schematic block diagram of an application debugging device provided in an embodiment of the present application;

[0024] Figure 4 It is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0026] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0027] The embodiments of the present application provide an application debugging method, apparatus, device and storage medium. Among them, the application debugging method can be applied to a computer device, which can be a mobile phone, a tablet computer, a laptop computer, a desktop computer and other devices. It can also be applied to a server, which can be a separate server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0028] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0029] See also Figure 1 , Figure 1It is a flowchart of an application debugging method provided by an embodiment of the present application. It should be noted that the application debugging method provided by the embodiment of the present application can be used for computer devices, and of course can also be used for servers. For example, the server can obtain the target graphic resource of the application to be debugged from the computer device, determine the path information of the target graphic resource in the application to be debugged according to the application debugging method, and add the path information to the application resource package of the application to be debugged, so that in the process of debugging the application to be debugged, the corresponding target graphic resource can be called according to the path information in the application resource package. Exemplarily, the server can, for example, send the application resource package of the application to be debugged after debugging to the computer device, so that the computer device can use the application to be debugged after debugging; of course, it is not limited to this, and no limitation is made here.

[0030] In specific implementation, computer devices include but are not limited to: any one of mobile phones, tablet computers, laptop computers, and desktop computers; the server can be a single server or a server cluster, or a cloud server that provides cloud computing services.

[0031] like Figure 1 As shown, the application debugging method includes steps S101 to S104.

[0032] Step S101: Acquire target graphics resources of the application to be debugged.

[0033] The target graphic resource may be used to indicate the graphic resource that is required to be debugged during the debugging process of the application to be debugged.

[0034] For example, when debugging an application to be debugged, if the relevant personnel have a debugging requirement for at least one of the interface designs related to the preset graphic resources, such as the application icon, application interface, user interaction effect, etc. of the application to be debugged, the computer device needs to respond to the interface design debugging requirement of the relevant personnel and obtain the target graphic resources of the application to be debugged for subsequent debugging of the application to be debugged. The target graphic resources may include icons, startup pictures, picture sets, etc., which are not limited here. The target graphic resources may include static graphic resources, dynamic graphic resources, etc., which are not limited here.

[0035] In some implementations, a preset graphic resource of the application to be debugged is obtained; and a target graphic resource of the application to be debugged is determined from the preset graphic resources.

[0036] When developing an application to be debugged, relevant personnel may set corresponding preset graphic resources in the application to be debugged. For example, the preset graphic resources may be used as a basis for displaying images related to the interface design of the application to be debugged, such as the application icon, application interface, user interaction effect, etc. of the application to be debugged. The preset graphic resources may include icons, startup images, picture sets, etc., which are not limited here. The preset graphic resources may include static graphic resources, dynamic graphic resources, etc., which are not limited here.

[0037] During the process of debugging the application to be debugged by the computer device, the interface design debugging requirements of the relevant personnel may involve debugging all preset graphic resources, or may involve debugging some preset graphic resources. Based on this, the computer device can obtain the preset graphic resources of the application to be debugged. The preset graphic resources can be used as a basis for determining the target graphic resources. For example, the computer device can obtain the target graphic resources of the application to be debugged from the preset graphic resources of the application to be debugged. The target graphic resources may include any one of all preset graphic resources and some preset graphic resources.

[0038] The target graphic resource can be used for subsequent debugging of the application to be debugged. For example, during the debugging process of the application to be debugged, the computer device can call the target graphic resource to determine whether at least one of the application icon, application interface, user interaction effect, etc. of the application to be debugged can be displayed normally.

[0039] In some implementations, according to the preset folder format, a graphic resource folder conforming to the preset folder format is determined from the application to be debugged; and all graphic resources located in the graphic resource folder are determined as preset graphic resources.

[0040] For example, the application to be debugged may be developed through an integrated development environment. The integrated development environment may provide development tools such as code editing, compilation, debugging, and version control to the application to be debugged. The integrated development environment includes, for example, Xcode, Android Studio, etc., which are not limited here. Based on this, the application to be debugged may have a corresponding project directory. The project directory corresponding to the application to be debugged is equivalent to a warehouse containing files, resources, and information required to build the application to be debugged. Among them, the resources required to build the application to be debugged may include preset graphic resources of the application to be debugged.

[0041] In the process of obtaining preset graphic resources, the computer device can traverse the project directory corresponding to the application to be debugged to find the preset graphic resources of the application to be debugged. For example, the project directory corresponding to the application to be debugged can be provided with a graphic resource folder in a preset folder format. The graphic resource folder can be used to store the preset graphic resources of the application to be debugged. Based on this, in the process of traversing the project directory corresponding to the application to be debugged, the computer device can determine the graphic resource folder that conforms to the preset folder format from the application to be debugged according to the preset folder format. Accordingly, the computer device can determine all graphic resources located in the graphic resource folder as preset graphic resources. Graphic resource folders that conform to the preset folder format may include xcassets folders, Resource folders, custom folders, etc., which are not limited here. The preset folder format may be pre-set or set by the user, which is not limited here.

[0042] In this way, the computer device can obtain the preset graphic resources of the application to be debugged according to the preset folder format, which is conducive to improving the convenience and efficiency of obtaining the preset graphic resources of the application to be debugged.

[0043] In some implementations, a target debugging device corresponding to the application to be debugged is obtained; and a target graphic resource is determined from preset graphic resources according to target device information of the target debugging device.

[0044] When the preset graphic resources of the application to be debugged are acquired, the computer device may select a target graphic resource from the preset graphic resources of the application to be debugged according to a target debugging device of the application to be debugged.

[0045] For example, the computer device can obtain the target debugging device corresponding to the application to be debugged. The same application can be adapted to different preset debugging devices. In the process of debugging the application to be debugged, the computer device needs to debug whether the application to be debugged is adapted to different preset debugging devices, so that the application to be debugged after debugging can have the ability to adapt to different preset debugging devices. Accordingly, the computer device can determine the current preset debugging device as the target debugging device in the process of debugging the application to be debugged to determine whether the application to be debugged is adapted to the current preset debugging device.

[0046] Based on this, the computer device can determine the target graphic resource according to the target debugging device. Accordingly, the computer device can debug whether the target graphic resource of the application to be debugged can be normally displayed on the target debugging device.

[0047] Exemplarily, the computer device may determine the target graphic resource from the preset graphic resources according to the target device information of the target debugging device. The target device information may include the screen zoom ratio, screen size, etc. of the target debugging device, which is not limited here.

[0048] For example, when a computer device is debugging whether an application to be debugged is adapted to a target debugging device, the target debugging device, for example, only needs to call some preset graphic resources. The target debugging device and the target device information of the target debugging device may correspond one to one. Based on this, the computer device may establish an association relationship between the target device information of the target debugging device and the target debugging device's call requirement for preset graphic resources. When the computer device determines the target debugging device, it may determine the target debugging device's call requirement for preset graphic resources based on the target device information of the target debugging device, so as to select a graphic resource adapted to the target device information from the preset graphic resources as the target graphic resource in response to the target debugging device's call requirement for preset graphic resources. The target graphic resource may include all preset graphic resources, or may include some preset graphic resources, which are not limited here.

[0049] Take the target debugging device as device 1, the preset graphic resources include graphic resource 1, graphic resource 2 and graphic resource 3, and the target device information of device 1 includes the screen zoom ratio of device 1 as an example. The computer device can obtain the graphic resolution of each of graphic resources 1 to graphic resource 3. When the computer device determines that the graphic resolution of each of graphic resource 1 and graphic resource 2 is adapted to the screen zoom ratio of device 1, and the graphic resolution of graphic resource 3 is not adapted to the screen zoom ratio of device 1, the computer device can determine that device 1 has a call requirement for graphic resource 1 and graphic resource 2 in the preset graphic resources. Accordingly, the computer device can determine graphic resource 1 and graphic resource 2 as target graphic resources for subsequent calling of the target graphic resources when determining whether the debugging application is adapted to device 1. Of course, the target debugging device, preset graphic resources, target graphic resources and target device information are not limited to this and are not limited here.

[0050] Take the target debugging device as device 2, and the preset graphic resources include graphic resources 4, graphic resources 5, and graphic resources 6 as an example. When it is determined according to the target device information of device 2 that device 2 has a call requirement for graphic resource 6, but does not have a call requirement for graphic resources 4 and 5, the computer device can determine that graphic resource 6 is the target graphic resource, so that the target graphic resource can be called later when determining whether the debugging application is suitable for device 2. Of course, the target debugging device, the preset graphic resources, and the target graphic resources are not limited to this, and are not limited here.

[0051] In this way, the computer device can determine the target graphic resource from the preset graphic resources by comprehensively considering the target debugging device corresponding to the application to be debugged and the target device information of the target debugging device, which is conducive to improving the convenience of determining the target graphic resource. Accordingly, when the computer device can select some preset graphic resources as target graphic resources for debugging the application to be debugged, the target graphic resources required to be called when debugging the application to be debugged can be reduced, which is conducive to improving the debugging efficiency of the application to be debugged.

[0052] For example, according to the correspondence between the preset debugging device and the preset device information, the target device information corresponding to the target debugging device is determined.

[0053] The computer device may be pre-set with a correspondence between a preset debugging device and preset device information. Accordingly, when the computer device determines the target debugging device, it may determine whether the target debugging device exists in the preset debugging devices involved in the correspondence. When the target debugging device exists in the preset debugging devices involved in the correspondence, the computer device may determine the target device information of the target debugging device based on the correspondence. The establishment of a correspondence between the preset debugging device and the preset device information is conducive to improving the convenience of determining the target device information corresponding to the target debugging device.

[0054] Exemplarily, in the process of determining the target graphic resources, the computer device may also directly determine all preset graphic resources as the target graphic resources, so that the target graphic resources can be called in the subsequent process of debugging the application to be debugged.

[0055] In some implementations, all preset graphic resources are determined as target graphic resources of the application to be debugged.

[0056] For example, the computer device may determine all the acquired preset graphic resources as target graphic resources of the application to be debugged. For example, the computer device may determine all the preset graphic resources in the graphic resource folder as target graphic resources, which is not limited here.

[0057] Thus, in the process of determining the target graphic resources of the application to be debugged from the preset graphic resources, the computer device can select all preset graphic resources as the target graphic resources, or select some graphic resources as the target graphic resources, which is conducive to improving the flexibility of determining the target graphic resources.

[0058] Step S102: Determine the path information of the target graphic resource in the application to be debugged.

[0059] For example, when determining the target graphic resource, the computer device may determine the path information of the target graphic resource in the application to be debugged. The path information of the target graphic resource may be used as a basis for the application to be debugged to call the target graphic resource.

[0060] In some implementations, file structure information of a graphic resource folder corresponding to the target graphic resource is obtained; and path information of the target graphic resource is determined according to the file structure information.

[0061] The graphic resource folder may have corresponding file structure information. The file structure information may be used to indicate the respective setting positions of all preset graphic resources included in the graphic resource folder in the graphic resource folder, so as to determine the path information of the preset graphic resources.

[0062] like Figure 2 As shown, a graphic resource subfolder is provided in the graphic resource folder. A graphic resource set 1 and a graphic resource set 2 are provided in the graphic resource subfolder. Preset graphic resources are provided in the graphic resource set 1, such as graphic resource 1 at different graphic resolutions, such as graphic resource 1 at 2 times the graphic resolution and graphic resource 1 at 3 times the graphic resolution. Graphic resource set 1 is provided with graphic resource 2 at different graphic resolutions, such as graphic resource 2 at 2 times the graphic resolution and graphic resource 2 at 3 times the graphic resolution. Based on this, the file structure information of the graphic resource folder can be used to indicate that the graphic resource folder includes the graphic resource set 1 and the graphic resource set 2, the graphic resource set 1 includes the graphic resource 1 at different graphic resolutions, and the graphic resource set 2 includes the graphic resource 2 at different graphic resource resolutions.

[0063] The identification information of preset graphic resources of different graphic resolutions may be different. The identification information includes, for example, the name of the preset graphic resource. The computer device may determine the graphic resolution of the graphic resource through the identification information of the corresponding graphic resource. For example, for graphic resource 1 and graphic resource 2 with 2 times the graphic resolution, the identification information may carry the text "@2x" to indicate that the graphic resolution is 2 times the graphic resolution. For another example, for graphic resource 1 and graphic resource 2 with 3 times the graphic resolution, the identification information may carry the text "@3x" to indicate that the graphic resolution is 3 times the graphic resolution. And so on.

[0064] Take the example of a target graphic resource including a graphic resource 1 with a 2x graphic resolution. Figure 2, since the graphic resource 1 with 2 times the graphic resolution is set in the graphic resource folder, the computer device can obtain the file structure information of the graphic resource folder. Accordingly, the computer device can determine the path information of the graphic resource 1 in combination with the path information of the graphic resource folder in the project directory corresponding to the application to be debugged and the setting position of the graphic resource 1 with 2 times the graphic resolution indicated by the file structure information of the graphic resource folder. For example, when the path information of the graphic resource folder in the project directory is: project directory of the application to be debugged / graphic resource folder, and the setting position of the graphic resource 1 with 2 times the graphic resolution indicated by the file structure information of the graphic resource folder is: graphic resource folder / graphic resource collection 1 / graphic resource 1 with 2 times the graphic resolution, the computer device can determine the path information of the graphic resource 1 with 2 times the graphic resolution as: project directory of the application to be debugged / graphic resource folder / graphic resource collection 1 / graphic resource 1 with 2 times the graphic resolution.

[0065] In this way, the computer device can determine the path information of the target graphic resource based on the file structure information of the graphic resource folder corresponding to the target graphic resource, which is conducive to improving the convenience and accuracy of determining the path information of the target graphic resource. Based on the determination of the path information of the target graphic resource, the path information of the target graphic resource can be used by the computer device to call the target graphic resource during the process of debugging the application to be debugged, which is conducive to improving the convenience and accuracy of calling the target graphic resource in the subsequent debugging process of the application to be debugged.

[0066] Step S103: Add the path information to the application resource package of the application to be debugged.

[0067] For example, a computer device can debug an application to be debugged through an application resource package of the application to be debugged. The application resource package of the application to be debugged may include an application bundle package of the application to be debugged, a bundle package of the application to be debugged, and the like, which are not limited here. In the process of debugging the application to be debugged, the computer device can check at least one of the file content information and the file structure information in the application resource package, and the computer device can have the ability to access the application resource package of the application to be debugged. Based on this, the computer device can add the path information of the target graphic resource to the application resource package of the application to be debugged, so that the computer device can debug the application to be debugged by accessing the application resource package of the application to be debugged. Accordingly, the path information of the target graphic resource set in the application resource package can be used by the computer device to call the corresponding target graphic resource in the process of debugging the application to be debugged.

[0068] In this way, by adding the path information of the target graphic resource to the application resource package of the application to be debugged, the computer device can call the corresponding target graphic resource according to the path information included in the application resource during the debugging of the application to be debugged, without compiling the target graphic resource, which is conducive to improving the convenience of calling the target graphic resource.

[0069] In some implementations, the path information is copied to the root directory of the application resource bundle.

[0070] The computer device may add the path information to the application resource package of the application to be debugged by copying the path information to the root directory of the application resource package.

[0071] For example, the computer device may be preset with a copy script corresponding to the target graphic resource. The copy script may have a copy logic for the target graphic resource. When the computer device obtains the target graphic resource and the path information of the target graphic resource, the computer device may copy the path information of the target graphic resource to the root directory of the application resource package through the copy script. The root directory of the application resource package can be used by the computer device to obtain the path information of the target graphic resource during the debugging of the application to be debugged, so as to call the target graphic resource. For example, the copy script may copy the path information of the target graphic resource to the root directory of the application resource package of the application to be debugged through a preset command, such as the cp command.

[0072] In this way, by copying the path information to the root directory of the application resource package, the computer device can subsequently obtain the path information of the target graphic resource by accessing the application resource package of the application to be debugged during the debugging of the application, and call the target graphic resource based on the path information of the target graphic resource. That is, the target graphic resource can be called without compiling the target graphic resource, which is conducive to improving the convenience of calling the target graphic resource.

[0073] Step S104: during debugging of the application to be debugged, calling the corresponding target graphic resource according to the path information in the application resource package.

[0074] For example, when debugging an application to be debugged, the computer device can call the corresponding target graphic resource according to the path information in the application resource package. Accordingly, for preset graphic resources other than the target graphic resource, since the application resource package does not contain the path information of the preset graphic resources other than the target graphic resource, the computer device does not need to call the preset graphic resources other than the target graphic resource.

[0075] In some implementations, the corresponding target graphic resource is called according to the path information in the root directory of the application resource package.

[0076] For example, the computer device may obtain the root directory of the application resource package of the application to be debugged. If the root directory includes the path information of the target graphic resource, the computer device may call the target graphic resource according to the path information.

[0077] Combination Figure 2 , when the target graphic resource is a graphic resource 1 with a 2x graphic resolution, if the path information of the graphic resource 1 with a 2x graphic resolution set in the root directory of the application resource package of the application to be debugged is the project directory / graphic resource folder / graphic resource set 1 / graphic resource 1 with a 2x graphic resolution of the application to be debugged, the computer device can sequentially access the project directory, graphic resource folder, and graphic resource set 1 of the application to be debugged to call the graphic resource 1 with a 2x graphic resolution. Of course, the target graphic resource and the path information of the target graphic resource are not limited to this, and are not limited here.

[0078] In some implementations, during the process of debugging the application to be debugged, compiling all preset graphic resources of the application to be debugged is prohibited, and the corresponding target graphic resource is called according to the path information in the application resource package.

[0079] For example, the computer device can debug the application to be debugged by compiling the code corresponding to the application to be debugged. Before debugging the application to be debugged, the computer device can set the compilation information of the application to be debugged. For example, the computer device can set the application to be debugged to exclude all preset graphic resources in the graphic resource folder when compiling, that is, to prohibit the compilation of all preset graphic resources of the application to be debugged, so as to ensure that the application to be debugged will not consume additional computing resources to decode and encode the preset graphic resources during the compilation process. Accordingly, when the computer device is prohibited from compiling all preset graphic resources of the application to be debugged, the computer device can call the corresponding target graphic resource according to the path information in the application resource package during the debugging of the application to be debugged.

[0080] In this way, during the debugging process of the application to be debugged, the computer device can avoid the compilation process of the preset graphic resources from consuming additional computing resources and time of the computer device by prohibiting the compilation of all preset graphic resources of the application to be debugged. Accordingly, the computer device can directly call the target graphic resource according to the path information in the application resource package, which is conducive to improving the convenience of calling the target graphic resource. Based on the improvement of the convenience of calling the target graphic resource, the computer device does not need to consume too much computing resources and time to call the target graphic resource during the debugging process of the application to be debugged, which is conducive to improving the debugging efficiency of the application to be debugged.

[0081] The application debugging method provided in the above embodiment obtains the target graphic resource of the application to be debugged; determines the path information of the target graphic resource in the application to be debugged; adds the path information to the application resource package of the application to be debugged; and in the process of debugging the application to be debugged, calls the corresponding target graphic resource according to the path information in the application resource package, so as to improve the debugging efficiency of the application by facilitating the calling of the target graphic resource.

[0082] For example, in the process of debugging the application to be debugged, the computer device can directly call the target graphic resource based on the path information in the application resource package, which is conducive to improving the convenience of calling the target graphic resource. Based on the improvement of the convenience of calling the target graphic resource, the application to be debugged can call the target graphic resource without compiling the target graphic resource during the debugging process, which is conducive to saving the computing resources and time required for the debugging process of the application to be called, and then it is conducive to improving the debugging efficiency of the application to be debugged. The application debugging method can be applied to applications in different scenarios to debug applications in different scenarios, thereby improving the debugging efficiency of applications in different scenarios. Applications in different scenarios include, for example, financial applications, social applications, shopping applications, etc., which are not limited here.

[0083] See also Figure 3 , Figure 3 1 is a schematic block diagram of an application debugging device provided in an embodiment of the present application. The application debugging device can be configured in a server or an electronic device to execute the aforementioned application debugging method.

[0084] like Figure 3 As shown, the application debugging device includes: an acquisition module 110 , a path determination module 120 , a path adding module 130 and a picture calling module 140 .

[0085] An acquisition module 110 is used to acquire a target graphics resource of the application to be debugged;

[0086] A path determination module 120, configured to determine path information of the target graphic resource in the application to be debugged;

[0087] A path adding module 130, used to add the path information to the application resource package of the application to be debugged;

[0088] The image calling module 140 is used to call the corresponding target graphic resource according to the path information in the application resource package during the debugging of the application to be debugged.

[0089] It should be noted that technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices and modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0090] The method of the present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0091] Exemplarily, the above method and apparatus may be implemented in the form of a computer program, which may be run on a computer device.

[0092] See also Figure 4 , Figure 4 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device may be a server or an electronic device.

[0093] like Figure 4 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a storage medium and an internal memory.

[0094] The storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any application debugging method.

[0095] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0096] The internal memory provides an environment for the operation of the computer program in the storage medium. When the computer program is executed by the processor, the processor can execute any application debugging method.

[0097] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0098] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0099] In one embodiment, the processor is used to execute a computer program and implement the following steps when executing the computer program:

[0100] Get the target graphics resource of the application to be debugged;

[0101] Determine the path information of the target graphic resource in the application to be debugged;

[0102] Adding the path information to the application resource package of the application to be debugged;

[0103] During debugging of the application to be debugged, the corresponding target graphic resource is called according to the path information in the application resource package.

[0104] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the application debugging described above can refer to the corresponding process in the aforementioned application debugging method embodiment, and will not be repeated here.

[0105] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The method implemented when the computer program is executed by a processor can refer to the various embodiments of the application debugging method of the present application.

[0106] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.

[0107] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0108] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0109] It should also be understood that the non-Company software tools or components appearing in the embodiments of the present application are merely examples and do not represent actual use.

[0110] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. An application debugging method, characterized in that: include: Get the target graphics resource of the application to be debugged; Determine the path information of the target graphic resource in the application to be debugged; Adding the path information to the application resource package of the application to be debugged; During debugging of the application to be debugged, the corresponding target graphic resource is called according to the path information in the application resource package.

2. The application debugging method according to claim 1, characterized in that: The step of obtaining the target graphics resource of the application to be debugged includes: Obtaining preset graphic resources of the application to be debugged; A target graphic resource of the application to be debugged is determined from the preset graphic resources.

3. The application calling method according to claim 2, characterized in that: The step of determining the target debugging resource of the application to be debugged from the preset graphic resources includes: Obtaining a target debugging device corresponding to the application to be debugged; According to the target device information of the target debugging device, a target graphic resource is determined from the preset graphic resources.

4. The application debugging method according to claim 2, characterized in that: The obtaining of the preset graphic resources of the application to be debugged includes: According to a preset folder format, determining a graphic resource folder that conforms to the preset folder format from the application to be debugged; All graphic resources located in the graphic resource folder are determined as preset graphic resources.

5. The application debugging method according to any one of claims 1 to 4, characterized in that: The determining the path information of the target graphic resource in the application to be debugged includes: Obtaining file structure information of a graphic resource file corresponding to the target graphic resource; The path information of the target graphic resource is determined according to the file structure information.

6. The application debugging method according to any one of claims 1 to 4, characterized in that: The adding the path information to the application resource package of the application to be debugged includes: Copy the path information to the root directory of the application resource package; The calling of the corresponding target graphic resource according to the path information in the application resource package includes: According to the path information in the root directory of the application resource package, the corresponding target graphic resource is called.

7. The application debugging method according to any one of claims 1 to 4, characterized in that: In the process of debugging the application to be debugged, calling the corresponding target graphic resource according to the path information in the application resource package includes: During debugging of the application to be debugged, compiling all preset graphic resources of the application to be debugged is prohibited, and the corresponding target graphic resources are called according to the path information in the application resource package.

8. An application debugging device, characterized in that: The application debugging device comprises: An acquisition module is used to acquire target graphics resources of the application to be debugged; A path determination module, used to determine the path information of the target graphic resource in the application to be debugged; A path adding module, used for adding the path information to the application resource package of the application to be debugged; The image calling module is used to call the corresponding target graphic resource according to the path information in the application resource package during the debugging of the application to be debugged.

9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is configured to execute the computer program and implement the application debugging method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the application debugging method according to any one of claims 1 to 7 are implemented.