Debugging method and device of application installation package, electronic equipment and storage medium
By sending an account to the designated server on the application client to determine the debugging mode and permissions, and enabling the file access interface, the problem of inability to debug online installation packages is solved, the development efficiency and timeliness of problem handling is improved, and the confidentiality of the application is ensured. and development ease.
Patent Information
- Application Number
- CN202410813754.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-11-08
AI Technical Summary
When the application installation package is put on the application store, the file sharing function is turned off for confidentiality, resulting in the inability to view or debug the online installation package, which limits the development efficiency and timeliness of problem handling.
By sending an account to the specified server when the application client logs in to the application to determine the debug mode and debug permissions, the local or remote file access interface is enabled, allowing viewing and modifying installation package files, including program files and log files.
It realizes that when the file sharing function is turned off, the application installation package can be debugged, the development efficiency and timeliness of problem handling are improved, the online problem processing time is reduced, and player loss and revenue decline are avoided.
Smart Images

Figure CN118921182A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of program debugging, and in particular to a debugging method, device, electronic equipment and storage medium for an application installation package. Background Art
[0002] When the installation package of the target application is uploaded to the application store of the target operating system, the file sharing function for the installation package will be turned off for the confidentiality of the target application resources. However, for installation packages with the file sharing function turned off, the contents of the installation package cannot be viewed through the device management tool corresponding to the target operating system, and the files in the installation package cannot be added, deleted, or modified. Although these restrictions improve the confidentiality of the target application resources, they also impose some restrictions on application development. For example, when some problems occur in the online installation package, the operation log of the installation package cannot be pulled to find the problem; since the contents of the online installation package cannot be added, deleted, or modified, the installation package cannot be debugged online. Summary of the invention
[0003] The purpose of the present invention is to provide a method, device, electronic device and storage medium for debugging an application installation package, so as to realize online debugging of the content of the application installation package when the file sharing function of the application installation package is not enabled on the application client.
[0004] In a first aspect, the present invention provides a method for debugging an application installation package, the method being applied to an application client, the application client running an application installation package, the application installation package turning off a file sharing function, the method comprising: in response to logging into an application corresponding to the application installation package through a target account, sending the target account to a designated server, so that the designated server determines whether the application client turns on a debugging mode and the target debugging authority when the debugging mode is turned on based on the target account; wherein the target debugging authority comprises viewing and / or adjusting the local installation package files of the application client based on modification instructions, the local installation package files comprising at least one of the following: program files and log files corresponding to the application installation package; in response to receiving a mode-on instruction sent by the designated server, determining the target debugging authority based on the mode-on instruction, and turning on a local / remote file access interface, so as to obtain or adjust the local installation package files matching the target debugging authority through the file access interface.
[0005] In a second aspect, the present invention provides a debugging device for an application installation package, which is arranged at an application client, and the application client runs an application installation package, and the application installation package turns off a file sharing function. The device includes: an account detection module, which is used to send the target account to a designated server in response to logging into an application corresponding to the application installation package through a target account, so that the designated server determines whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account; wherein the target debugging authority includes viewing and / or adjusting the local installation package files of the application client based on modification instructions, and the local installation package files include at least one of the following: program files and log files corresponding to the application installation package; a file debugging module, which is used to determine the target debugging authority based on the mode turning on instruction in response to receiving the mode turning on instruction sent by the designated server, and turn on the local / remote file access interface to obtain or adjust the local installation package files matching the target debugging authority through the file access interface.
[0006] In a third aspect, the present invention provides an electronic device, which includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned debugging method of the application installation package.
[0007] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned debugging method of the application installation package.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The present invention provides a debugging method, device, electronic device and storage medium for an application installation package. If the application installation package run by the application client turns off the file sharing function, when the application client logs in to the application corresponding to the application installation package through the target account, the target account is sent to the designated server, so that the designated server determines whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account; wherein the target debugging authority includes viewing and / or adjusting the local installation package file of the application client based on the modification instruction, and the local installation package file includes at least one of the following: program files and log files corresponding to the application installation package; if the application client receives the mode opening instruction sent by the designated server, the target debugging authority is determined based on the mode opening instruction, and the local / remote file access interface is opened to obtain or adjust the local installation package file matching the target debugging authority through the file access interface. In this way, when the application installation package turns off the file sharing function, if the designated server determines that the target account logged in by the client meets the debugging mode opening condition, the client can open the file access interface to turn on the remote or local debugging mode, so that the user can debug the local installation package file corresponding to the application installation package, thereby helping the user to respond quickly and handle application online problems in a timely manner.
[0010] Other features and advantages of the present invention will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present invention.
[0011] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are specifically listed below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0013] Figure 1 A flowchart of a method for debugging an application installation package provided by an embodiment of the present invention;
[0014] Figure 2 A schematic diagram of the structure of a debugging device for an application installation package provided by an embodiment of the present invention;
[0015] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0016] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0017] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] When the installation package of the target product's application is put on the target operating system's application store, the file sharing function for the installation package will be turned off for the confidentiality of the target application's resources. For example, for game products, many game products will be connected to the iOS operating system, and players use iOS installation packages. For installation packages put on the App Store (that is, the iOS operating system's application store), the file sharing function will be turned off for the confidentiality of game resources (that is, in the Info.plist project configuration, set UIFileSharingEnabled to False, and you can see that Application supports iTunes file sharing is turned off on the Xcode project properties interface).
[0019] However, if the file sharing function is disabled, the contents of the installation package cannot be viewed through the device management tool corresponding to the target operating system, nor can the files in the installation package be added, deleted, or modified. Although these restrictions improve the confidentiality of game resources, they also impose some restrictions on game development:
[0020] 1. When some problems occur in the online installation package, the running log of the installation package cannot be pulled to find the problem.
[0021] 2. Debug the online installation package, because it may be necessary to add, delete or modify the content in the installation package, so debugging is not possible.
[0022] 3. The project process needs to support opening and closing the file sharing function, which causes the cost of the development process.
[0023] 4. When solving online problems, it takes time to make the debugging installation package of the corresponding version, resulting in untimely handling of online problems.
[0024] The installation package with the file sharing function turned off will bring restrictions to developers, which will not only affect development efficiency, but may even cause online problems to be unhandled in a timely manner, leading to serious consequences such as player loss and revenue decline.
[0025] Based on the above problems, an embodiment of the present invention provides a method, device, electronic device and storage medium for debugging an application installation package. The technology can be applied to online debugging or problem checking scenarios of the installation package.
[0026] In order to facilitate understanding of the embodiment of the present invention, a debugging method for an application installation package disclosed in the embodiment of the present invention is first described in detail. The method is applied to an application client, and an application installation package is running in the application client, and the application installation package has a file sharing function disabled; Figure 1 As shown, the method comprises the following specific steps:
[0027] Step S102, in response to logging into the application corresponding to the application installation package through the target account, sending the target account to the designated server, so that the designated server determines whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account; wherein the target debugging authority includes viewing and / or adjusting the local installation package files of the application client based on the modification instructions, and the local installation package files include at least one of the following: program files and log files corresponding to the application installation package.
[0028] In a specific implementation, the above-mentioned application client can be a mobile terminal or a computer terminal, for example, the application client can be a mobile phone, a tablet computer or a personal computer, etc. One or more application installation packages can be run in the application client, and the application corresponding to the application installation is installed in the application client, wherein different application installation packages correspond to different applications, and usually the application will be displayed in the application client in the form of an APP, and the user can test and use the application in the application client. Specifically, the above-mentioned application installation package can be any installation package that can be installed by the application client, for example, the application installation package can be a game installation package or a browser installation package, etc.
[0029] In actual applications, the user first needs to register a target account on the application corresponding to the application installation package. The target account is used to subsequently log in to the application corresponding to the application installation package. For example, the user can log in to the application by entering the target account and account password in the login interface of the application corresponding to the application installation package provided by the application client. Since when the application client runs the application corresponding to the application installation package, a connection is established with the designated server, and the client communicates with the designated server. After the user logs in to the application, the application client obtains the target account currently logged in on the application client and sends the target account to the designated server, or the designated server obtains the target account from the application client.
[0030] After the designated server obtains the target account, the designated server will determine whether the application client can turn on the debugging mode based on the target account, and if the debugging mode can be turned on, the target debugging permissions when turning on the debugging mode. Specifically, the designated server can determine that the application client turns on the debugging mode when the target account is a preset account, and determine the target debugging permissions when the application client turns on the debugging mode based on the debugging permissions pre-configured for the preset account; the designated server can determine whether the application client turns on the debugging mode based on the triggering operation of the target account in the application client; the designated server can also determine whether the application client turns on the debugging mode based on the network environment in which it is located.
[0031] In specific implementation, the target debugging authority may only include viewing the local installation package files of the application client; the target debugging authority may also include viewing the local installation package files of the application client and adjusting the local installation package files of the application installation package based on the modification instructions. Among them, the local installation package files include at least one of the following: program files and log files corresponding to the application installation package. The log file is a file used to record events, activities, operation results and interaction information between the system and the user that occur when the application is running. It can be divided into event logs, transaction logs, message logs, etc., and can be recorded in order by time. The function of the log file is to record the running process and abnormal information of the application, to provide detailed information for quickly locating problems that occur during the operation of the application and development and debugging, and can also be used for transaction fault recovery, system fault recovery and assisting backup copies in media fault recovery. The above-mentioned program file is used to store the script logic of the application installation package. The above-mentioned modification instruction can be a deletion instruction or a modification instruction for certain content in the program file, or an instruction to add content to the program file, etc.
[0032] It should be noted that the above-mentioned designated server can be matched with the application installation package. For example, if the application installation package is a game installation package, then the designated server can be a game server; if the application installation package is a browser installation package, then the designated server can be a browser server, etc.
[0033] Step S104, in response to receiving the mode start instruction sent by the designated server, determining the target debugging authority based on the mode start instruction, and opening the local / remote file access interface to obtain or adjust the local installation package file matching the target debugging authority through the file access interface.
[0034] When the designated server determines that the application client can turn on the debugging mode, the designated server will send a mode-starting instruction to the application client. The mode-starting instruction usually carries a code for indicating the target debugging permission when the debugging mode of the application client starts. The application client can determine the target debugging permission based on the mode-starting instruction and start the local file access interface or the remote file access interface, so as to obtain or adjust the local installation package file through the file access interface.
[0035] In the above-mentioned debugging method of the application installation package, when the file sharing function is turned off in the application installation package, if the designated server determines that the target account logged in to the client meets the conditions for starting the debugging mode, the client can open the file access interface to start the remote or local debugging mode, so that the user can debug the local installation package file corresponding to the application installation package, thereby helping the user to respond quickly and handle application online problems in a timely manner.
[0036] The following embodiments are used to describe a method for determining whether to enable the debugging mode of an application client.
[0037] In an optional embodiment, the specific process of the designated server determining whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account may include: determining whether the target account belongs to the preset relationship library according to the preset relationship library saved in the designated server; wherein the preset relationship library includes multiple accounts and the debugging authority corresponding to each account; if the target account belongs to the preset relationship library, determining that the application client needs to turn on the debugging mode, and determining the target debugging authority corresponding to the target account from the preset relationship library.
[0038] In a specific implementation, the preset relationship library is pre-set, and the preset relationship library includes multiple accounts and the debugging permissions corresponding to each account. The accounts included in the preset relationship library are accounts used by developers, which can also be called whitelist accounts. If the designated server retrieves that the target account is an account in the preset relationship library, it is determined that the application client needs to turn on the debugging mode, and the debugging permission corresponding to the target account in the preset relationship library is determined as the target debugging permission, so as to generate a mode start instruction based on the target debugging permission, and send the mode start instruction to the application client, so that the application client turns on the debugging mode that matches the target debugging permission based on the mode start instruction.
[0039] Furthermore, if the designated server determines that the application client needs to turn on the debugging mode, the designated server sends a mode-on instruction carrying the debugging code corresponding to the target debugging permission to the application client, so that the application client runs the debugging code to turn on the local / remote file access interface. Specifically, different debugging permissions are pre-set with corresponding debugging codes, and different debugging permissions correspond to different debugging codes, which will be carried in the mode-on instruction. Among them, the debugging code may include a code that can only view the log files of the application installation package, a code that can view the log files and program files of the application installation package, and a code that can adjust the program files of the application installation package, etc.
[0040] In an optional embodiment, after the application client turns on the debugging mode by running the debugging code, the local installation package file in the device of the application client can be obtained through the specified application running in the application client, so as to view and modify the local installation package file based on the target debugging permission. In a specific embodiment, the above-mentioned specified application can be an application that provides TP service. After the application client turns on the FTP service, the application client is equivalent to the FTP server. The user can be a local user or a remote debugging user. The user can access the device where the application client is located through the FTP service to obtain the local installation package file from the device where the application client is located.
[0041] In a specific embodiment, if the designated server determines that the application client can enable the debugging mode, it will send the debugging code to the application client for execution, so that the application client executes the debugging code to enable the ftp service. For example, the debugging code can be executed by a thread:
[0042] def ftpserver():
[0043] from pyftpdlib.authorizers import DummyAuthorizer
[0044] from pyftpdlib.handlers import FTPHandler
[0045] from pyftpdlib.servers import FTPServer
[0046] authorizer=DummyAuthorizer()
[0047] #Create a new anonymous user
[0048] authorizer.add_anonymous("ios Document",perm="r")
[0049] #Create a new common user, support read and write permissions
[0050] authorizer.add_user(username,password,FTP_ROOT,perm="elradfmw")
[0051] #Define the ftp server handler
[0052] handler = FTPHandler
[0053] handler.authorizer=authorizer
[0054] #Start FTP server
[0055] server=FTPServer((FTP_IP,FTP_PORT),handler)
[0056] server.serve_forever()
[0057] import threading
[0058] t=threading.Thread(target=ftpserver)
[0059] t.setDaemon(True)
[0060] t.start()
[0061] Optionally, a specified application is run on the application client so that a login interface is displayed on the specified application. The user can then choose to log in with a registered account or log in as a visitor (also known as anonymous login, which means that the user can log in without a registered account, and can use an account randomly assigned by the system to log in). After the user completes the login interface, the user can enter the specified application, so that the user can access the program files and log files locally installed on the application client through the above-mentioned FTP service in the specified application.
[0062] Specifically, the account types corresponding to the login accounts in the above-mentioned designated applications usually include the first type and the second type. Among them, when the user logs in as a visitor, the account type corresponding to the login account in the designated application is the first type; when the user chooses to register an account to log in to the designated application, the account type corresponding to the login account in the designated application is the second type. In specific implementation, when the account types corresponding to the login accounts in the designated application are different, the relevant files of the target installation package obtained by the designated server from the application client are also different, which can also be understood as different debugging permissions corresponding to different account types.
[0063] In an optional embodiment, if the account type of the login account in the specified application is the first type, the specified application is controlled to obtain the log file of the application installation package from the application client; that is, the first type of login account can only obtain the log file of the application installation package in the specified application, and cannot obtain the program file of the application installation package, so the content of the application installation package cannot be modified, that is, the program file cannot be added, deleted, or modified. If the account type of the login account in the specified application is the second type, the specified application is controlled to obtain the log file and program file of the application installation package from the application client, that is, the second type of login account can obtain the log file and program file of the application installation package in the specified application, and can also modify the content of the target installation package.
[0064] After the user modifies the program file of the application installation package in the designated application, the content in the application installation package can be adjusted to obtain the adjusted program file. The adjusted program file in the designated application can be sent to the application client through the designated server when the user performs a preset operation, so that the application client can replace the original program file corresponding to the application installation package according to the received adjusted program file, thereby completing the debugging of the application installation package.
[0065] In another optional embodiment, if the designated server is an intranet server, it is determined that the application client of the target account needs to turn on the debugging mode, and the target debugging permission when the application client turns on the debugging mode is to view and adjust the local installation package file of the application client based on the modification instruction. Specifically, the above-mentioned intranet server refers to a server in an internal development environment, because only developers can access the internal network in the internal development environment, so when the application client connects to the internal server, the target account for login can be unrestricted, and the application client is allowed to turn on the debugging mode by default.
[0066] In another optional embodiment, the specific process of the designated server determining the target debugging authority when the application client turns on the debugging mode based on the target account may also include: obtaining the target account's interactive operation on the application client through the designated server; in response to the interactive operation satisfying the preset debugging mode triggering condition, determining that the application client turns on the debugging mode, and determining the target debugging authority when the debugging mode is turned on based on the account type of the target account. Specifically, the debugging authority corresponding to different account types is pre-set.
[0067] Specifically, the above debugging mode triggering condition can be determined according to research and development requirements. For example, the above debugging mode triggering condition includes at least one of the following:
[0068] 1. The target account is an account in a preset whitelist; wherein the preset whitelist includes at least one account. Specifically, the preset whitelist is pre-set and includes one or more accounts. Since the present invention is mainly used in scenarios where developers test applications, or in scenarios where users provide feedback, developers simulate feedback issues in applications, and then debug the application installation package based on the feedback issues, the target account is usually an account registered by the developers.
[0069] 2. The target account receives the specified protocol data sent by the specified server connected to the application client. Specifically, the specified protocol data received by the application client that logs in to the target account is agreed upon between the application client and the specified server. For example, when the application client logs in to the application through the target account, when a specified event occurs in the application, or at a fixed time point, the specified server sends the specified protocol data to the application client.
[0070] 3. The interactive operation corresponding to the target account in the application client is the designated trigger operation. The interactive operation here can be the operation of the user corresponding to the target account in the user program provided by the application client. The above designated trigger operation can be determined according to R&D needs.
[0071] In a specific embodiment, the above-mentioned specified trigger operation includes: after a first trigger operation on a first control in a graphical user interface of an application provided by an application client, the number of triggers of a second trigger operation on a second control displayed in the graphical user interface reaches a preset number threshold or the application client is connected to an intranet server. The specific value corresponding to the preset number threshold can be determined according to research and development requirements, for example, the preset number threshold can be 3 or 5, etc.
[0072] Specifically, the first trigger operation may be: a click operation, a long press operation, a continuous multiple click operation, or a sliding operation, etc., of a first control in a graphical user interface of an application program provided by an application client by a user corresponding to the target account. The first control may be an existing control in the graphical user interface or a newly added control. For example, the first control may be a login control or a setting control, etc. The specified trigger operation may include the following two types:
[0073] The first one is that after the user corresponding to the target account performs the first trigger operation on the first control in the graphical user interface of the application provided by the application client, the debugging mode start judgment mechanism is triggered, and then the application client is judged whether the intranet server is in communication connection. If the application client is in communication connection with the intranet server, it is determined that the target account meets the debugging mode triggering condition. The intranet server can be an internal server used by R&D personnel for development, such as the company's office network, which cannot be connected by external personnel. Specifically, this method can be used to judge whether the target account is an application logged in in the intranet environment. If so, it can be considered that the current application is logged in by the target account used by the R&D personnel, so that the R&D personnel can perform subsequent debugging operations.
[0074] The second type is that after the user corresponding to the target account performs a first trigger operation on the first control in the graphical user interface of the application provided by the application client, the debugging mode startup judgment mechanism is triggered, and then it is judged that the number of trigger times of the second trigger operation of the user on the second control displayed in the graphical user interface reaches a preset number threshold. If the number of trigger times of the second trigger operation on the second control reaches the preset number threshold, it is determined that the target account meets the debugging mode trigger condition.
[0075] The second method is highly targeted, and only the application installation package corresponding to the authorized account can enable the debugging mode; the first method is simple to operate and can be triggered earlier, which helps debug more online problems of the installation package. At the same time, there are multiple options for enabling the debugging mode, which can be selected according to the specific situation of the application product.
[0076] The above method supports debugging of installation packages with the file sharing function turned off, which can conveniently debug the installation package and improve development efficiency. At the same time, this method can directly debug the installation package of the application client, which helps to quickly respond to and promptly handle problems online with the installation package. This method is also conducive to troubleshooting, optimizing user experience and avoiding the expansion of problems.
[0077] The following embodiments are used to describe the application scenarios of remote debugging, wherein the remote debugging method facilitates debugging by R&D personnel and can also solve user problems in a timely manner.
[0078] If a user reports that the local application installation package has an anomaly, and in some cases the development team cannot reproduce the anomaly using the same installation package, remote debugging is a necessary technical means.
[0079] Specifically, if an abnormality occurs in the application installation package, a debugging request is sent to the designated server through the target account, so that the designated server sets the target account as a remote debugging account after receiving the debugging request, and saves the remote debugging account; based on this, the above-mentioned designated server determines whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account. The specific process may include: determining whether the target account is a remote debugging account saved in the designated server; if the target account is a remote debugging account, determining that the application client turns on the debugging mode, and setting the target debugging authority when the debugging mode is turned on to view and adjust the local installation package files of the application client based on modification instructions.
[0080] After the user uses the target account to log in to the application corresponding to the application installation package on the application client, a connection is established with the designated server. The designated server obtains the target account. If the target account is identified as a pre-recorded account that needs to be remotely debugged, the designated server sends a mode-enabling instruction to the application client to enable the application client to enable the debugging mode. The mode-enabling instruction carries a debugging code that matches the target debugging authority. The application client runs the debugging code to enable the remote file access interface to obtain or adjust the local installation package file that matches the target debugging authority through the remote file access interface. In a specific embodiment, enabling the remote access file interface can also be understood as enabling the ftp service.
[0081] The following embodiments are used to describe a method for debugging a local installation package file.
[0082] Specifically, the above-mentioned specific process of obtaining or adjusting the local installation package files that match the target debugging permissions through the file access interface may include: obtaining the program files and / or log files corresponding to the application installation package that matches the target debugging permissions through the file access interface; displaying the program files and / or log files corresponding to the application installation package to view the program files corresponding to the application installation package, and / or adjusting the program files based on the modification instructions.
[0083] In the local debugging mode, after the user logs in to the specified application, he can obtain the program files and / or log files corresponding to the application installation package that matches the target debugging permission through the file access interface, and display the program files and / or log files corresponding to the application installation package in the specified application. In this way, the user can view the log files or program files of the application installation package on the specified application according to the target debugging permission, and can also adjust the program files.
[0084] Furthermore, the specific process of adjusting the program file based on the modification instruction may include: responding to the modification instruction for the program file, adjusting the content of the program file based on the modification, and obtaining the adjusted program file; wherein the modification instruction is used to add, modify or delete the content of the program file.
[0085] In an optional embodiment, the above method further includes: returning the adjusted program file to the application client through a file access interface, and replacing the program file corresponding to the application installation package run by the application client with the adjusted program file.
[0086] After the user modifies the program file in the specified application, the content in the application installation package can be adjusted to obtain the adjusted program file. The adjusted program file in the specified application can be sent to the application client when the user performs a preset operation, so that the application client can replace the original program file corresponding to the application installation package according to the received adjusted program file, thereby completing the debugging of the target installation package.
[0087] This method supports debugging of installation packages with the file sharing function turned off, which can easily debug the installation package and improve development efficiency. At the same time, this method can directly debug the installation package of the application client, which helps to quickly respond to and promptly handle problems online with the installation package. This method is also conducive to troubleshooting, optimizing user experience and avoiding the expansion of problems.
[0088] Corresponding to the above method embodiment, the embodiment of the present invention further provides a debugging device for an application installation package, the device is arranged in an application client, the application client runs an application installation package, and the application installation package turns off the file sharing function; Figure 2 As shown, the device comprises:
[0089] The account detection module 30 is used to send the target account to the designated server in response to logging into the application corresponding to the application installation package through the target account, so that the designated server determines whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account; wherein the target debugging authority includes viewing and / or adjusting the local installation package files of the application client based on the modification instructions, and the local installation package files include at least one of the following: program files and log files corresponding to the application installation package.
[0090] The file debugging module 31 is used to respond to receiving a mode start instruction sent by a designated server, determine the target debugging authority based on the mode start instruction, and open a local / remote file access interface to obtain or adjust a local installation package file that matches the target debugging authority through the file access interface.
[0091] The debugging device of the above installation package,
[0092] Specifically, the above-mentioned account detection module 30 is used to: determine whether the target account belongs to the preset relationship library according to the preset relationship library saved in the designated server; wherein the preset relationship library includes multiple accounts and the debugging permissions corresponding to each account; if the target account belongs to the preset relationship library, determine that the application client needs to turn on the debugging mode, and determine the target debugging permissions corresponding to the target account from the preset relationship library.
[0093] Furthermore, the above-mentioned device also includes a code sending module, which is used to: if the designated server determines that the application client needs to turn on the debugging mode, send a mode turning on instruction carrying the debugging code corresponding to the target debugging permission to the application client through the designated server, so that the application client runs the debugging code to turn on the local / remote file access interface.
[0094] Furthermore, the above-mentioned device also includes a debugging startup module, which is used to: if the designated server is an intranet server, determine that the application client sending the target account needs to turn on the debugging mode, and determine that the target debugging permission when the application client turns on the debugging mode is to view and adjust the local installation package file of the application client based on modification instructions.
[0095] Furthermore, the above-mentioned device also includes a remote debugging module, which is used to: if an abnormality occurs in the application installation package, send a debugging application to the designated server through the target account, so that the designated server sets the target account as the remote debugging account after receiving the debugging application, and saves the remote debugging account; based on this, the above-mentioned account detection module 30 is used to: determine whether the target account is a remote debugging account saved in the designated server; if the target account is a remote debugging account, determine whether the application client turns on the debugging mode, and set the target debugging authority when turning on the debugging mode to view and adjust the local installation package files of the application client based on the modification instructions.
[0096] In a specific implementation, the account detection module 30 is used to: obtain the interactive operations of the target account on the application client through a designated server; in response to the interactive operations satisfying the preset debugging mode triggering conditions, determine whether the application client turns on the debugging mode, and determine the target debugging permissions when turning on the debugging mode based on the account type of the target account.
[0097] In an optional embodiment, the above-mentioned file debugging module 31 is used to: obtain the program files and / or log files corresponding to the application installation package that matches the target debugging permissions through the file access interface; display the program files and / or log files corresponding to the application installation package to view the program files corresponding to the application installation package, and / or adjust the program files based on the modification instructions.
[0098] Furthermore, the file debugging module 31 is also used to: respond to a modification instruction for a program file, adjust the content of the program file based on the modification, and obtain an adjusted program file; wherein the modification instruction is used to add, modify or delete the content of the program file.
[0099] Furthermore, the above-mentioned device also includes a file replacement module, which is used to: return the adjusted program file to the application client through the file access interface, and replace the program file corresponding to the application installation package run by the application client with the adjusted program file.
[0100] The debugging device for the application installation package provided in the embodiment of the present disclosure has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0101] The embodiment of the present invention further provides an electronic device, such as Figure 3 As shown, the electronic device includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned debugging method of the application installation package.
[0102] Specifically, the above-mentioned debugging method of the application installation package is applied to an application client, and the application client runs an application installation package, and the application installation package has turned off the file sharing function. The method includes: in response to logging into the application corresponding to the application installation package through a target account, sending the target account to a designated server, so that the designated server determines whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account; wherein the target debugging authority includes viewing and / or adjusting the local installation package files of the application client based on modification instructions, and the local installation package files include at least one of the following: program files and log files corresponding to the application installation package; in response to receiving a mode start instruction sent by the designated server, determining the target debugging authority based on the mode start instruction, and turning on the local / remote file access interface to obtain or adjust the local installation package files that match the target debugging authority through the file access interface.
[0103] In the above-mentioned debugging method of the application installation package, when the file sharing function is turned off in the application installation package, if the designated server determines that the target account logged in on the client meets the conditions for turning on the debugging mode, the client can turn on the file access interface to turn on the remote or local debugging mode, so that the user can debug the local installation package file corresponding to the application installation package, thereby helping the user to respond quickly and handle application online problems in a timely manner.
[0104] In an optional embodiment, the step of the designated server determining whether the application client has enabled debugging mode and the target debugging permissions when enabling debugging mode based on the target account includes: determining whether the target account belongs to a preset relationship library according to a preset relationship library stored in the designated server; wherein the preset relationship library includes multiple accounts and the debugging permissions corresponding to each account; if the target account belongs to the preset relationship library, determining that the application client needs to enable debugging mode, and determining the target debugging permissions corresponding to the target account from the preset relationship library.
[0105] In an optional embodiment, the above method also includes: if the designated server determines that the application client needs to enable debugging mode, sending a mode enable instruction carrying the debugging code corresponding to the target debugging permission to the application client through the designated server, so that the application client runs the debugging code to enable the local / remote file access interface.
[0106] In an optional embodiment, the above method also includes: if the designated server is an intranet server, determining that the application client sending the target account needs to turn on the debugging mode, and determining that the target debugging permission when the application client turns on the debugging mode is to view and adjust the local installation package file of the application client based on the modification instruction.
[0107] In an optional embodiment, the above method also includes: if an abnormality occurs in the application installation package, a debugging application is sent to a designated server through a target account, so that the designated server sets the target account as a remote debugging account after receiving the debugging application, and saves the remote debugging account; the above designated server determines whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account, including: determining whether the target account is a remote debugging account saved in the designated server; if the target account is a remote debugging account, determining that the application client turns on the debugging mode, and setting the target debugging authority when the debugging mode is turned on to view and adjust the local installation package files of the application client based on the modification instructions.
[0108] In an optional embodiment, the step of the designated server determining whether the application client has enabled debugging mode and the target debugging permissions when enabling debugging mode based on the target account includes: obtaining the interactive operations of the target account on the application client through the designated server; in response to the interactive operations satisfying preset debugging mode trigger conditions, determining that the application client has enabled debugging mode, and determining the target debugging permissions when enabling debugging mode based on the account type of the target account.
[0109] In an optional embodiment, the above-mentioned step of obtaining or adjusting the local installation package file that matches the target debugging permissions through the file access interface includes: obtaining the program files and / or log files corresponding to the application installation package that matches the target debugging permissions through the file access interface; displaying the program files and / or log files corresponding to the application installation package to view the program files corresponding to the application installation package, and / or adjusting the program files based on the modification instructions.
[0110] In an optional embodiment, the above-mentioned step of adjusting the program file based on the modification instruction includes: responding to the modification instruction for the program file, adjusting the content of the program file based on modifying the specified content, and obtaining the adjusted program file; wherein the modification instruction is used to add, modify or delete the content of the program file.
[0111] In an optional embodiment, the above method further includes: returning the adjusted program file to the application client through a file access interface, and replacing the program file corresponding to the application installation package run by the application client with the adjusted program file.
[0112] Further, Figure 3 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .
[0113] The memory 100 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0114] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 101 or the instruction in the form of software. The above processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and completes the steps of the method of the above embodiment in combination with its hardware.
[0115] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the debugging method of the above-mentioned application installation package. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0116] Specifically, the above-mentioned debugging method of the application installation package is applied to an application client, and the application client runs an application installation package, and the application installation package has turned off the file sharing function. The method includes: in response to logging into the application corresponding to the application installation package through a target account, sending the target account to a designated server, so that the designated server determines whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account; wherein the target debugging authority includes viewing and / or adjusting the local installation package files of the application client based on modification instructions, and the local installation package files include at least one of the following: program files and log files corresponding to the application installation package; in response to receiving a mode start instruction sent by the designated server, determining the target debugging authority based on the mode start instruction, and turning on the local / remote file access interface to obtain or adjust the local installation package files that match the target debugging authority through the file access interface.
[0117] In the above-mentioned debugging method of the application installation package, when the file sharing function is turned off in the application installation package, if the designated server determines that the target account logged in on the client meets the conditions for turning on the debugging mode, the client can turn on the file access interface to turn on the remote or local debugging mode, so that the user can debug the local installation package file corresponding to the application installation package, thereby helping the user to respond quickly and handle application online problems in a timely manner.
[0118] In an optional embodiment, the step of the designated server determining whether the application client has enabled debugging mode and the target debugging permissions when enabling debugging mode based on the target account includes: determining whether the target account belongs to a preset relationship library according to a preset relationship library stored in the designated server; wherein the preset relationship library includes multiple accounts and the debugging permissions corresponding to each account; if the target account belongs to the preset relationship library, determining that the application client needs to enable debugging mode, and determining the target debugging permissions corresponding to the target account from the preset relationship library.
[0119] In an optional embodiment, the above method also includes: if the designated server determines that the application client needs to enable debugging mode, sending a mode enable instruction carrying the debugging code corresponding to the target debugging permission to the application client through the designated server, so that the application client runs the debugging code to enable the local / remote file access interface.
[0120] In an optional embodiment, the above method also includes: if the designated server is an intranet server, determining that the application client sending the target account needs to turn on the debugging mode, and determining that the target debugging permission when the application client turns on the debugging mode is to view and adjust the local installation package file of the application client based on the modification instruction.
[0121] In an optional embodiment, the above method also includes: if an abnormality occurs in the application installation package, a debugging application is sent to a designated server through a target account, so that the designated server sets the target account as a remote debugging account after receiving the debugging application, and saves the remote debugging account; the above designated server determines whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account, including: determining whether the target account is a remote debugging account saved in the designated server; if the target account is a remote debugging account, determining that the application client turns on the debugging mode, and setting the target debugging authority when the debugging mode is turned on to view and adjust the local installation package files of the application client based on the modification instructions.
[0122] In an optional embodiment, the step of the designated server determining whether the application client has enabled debugging mode and the target debugging permissions when enabling debugging mode based on the target account includes: obtaining the interactive operations of the target account on the application client through the designated server; in response to the interactive operations satisfying preset debugging mode trigger conditions, determining that the application client has enabled debugging mode, and determining the target debugging permissions when enabling debugging mode based on the account type of the target account.
[0123] In an optional embodiment, the above-mentioned step of obtaining or adjusting the local installation package file that matches the target debugging permissions through the file access interface includes: obtaining the program files and / or log files corresponding to the application installation package that matches the target debugging permissions through the file access interface; displaying the program files and / or log files corresponding to the application installation package to view the program files corresponding to the application installation package, and / or adjusting the program files based on the modification instructions.
[0124] In an optional embodiment, the above-mentioned step of adjusting the program file based on the modification instruction includes: responding to the modification instruction for the program file, adjusting the content of the program file based on modifying the specified content, and obtaining the adjusted program file; wherein the modification instruction is used to add, modify or delete the content of the program file.
[0125] In an optional embodiment, the above method further includes: returning the adjusted program file to the application client through a file access interface, and replacing the program file corresponding to the application installation package run by the application client with the adjusted program file.
[0126] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0127] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0128] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for debugging an application installation package, the method being applied to an application client, the application client running the application installation package, the application installation package disabling a file sharing function, It is characterized in that The method comprises: In response to logging into the application corresponding to the application installation package through the target account, sending the target account to the designated server, so that the designated server determines whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account; wherein the target debugging authority includes viewing and / or adjusting the local installation package file of the application client based on the modification instruction, and the local installation package file includes at least one of the following: a program file and a log file corresponding to the application installation package; In response to receiving a mode start instruction sent by the designated server, the target debugging authority is determined based on the mode start instruction, and a local / remote file access interface is opened to obtain or adjust a local installation package file matching the target debugging authority through the file access interface.
2. The method according to claim 1, It is characterized in that The step of the designated server determining whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account includes: Determine whether the target account belongs to the preset relationship library according to the preset relationship library stored in the designated server; wherein the preset relationship library includes multiple accounts and the debugging authority corresponding to each of the accounts; If the target account belongs to the preset relationship library, it is determined that the application client needs to enable the debugging mode, and the target debugging authority corresponding to the target account is determined from the preset relationship library.
3. The method according to claim 2, It is characterized in that The method further comprises: If the designated server determines that the application client needs to enable debugging mode, the designated server sends a mode enabling instruction carrying the debugging code corresponding to the target debugging permission to the application client, so that the application client runs the debugging code to enable the local / remote file access interface.
4. The method according to claim 1, It is characterized in that The method further comprises: If the designated server is an intranet server, it is determined that the application client that sends the target account needs to turn on the debugging mode, and the target debugging permission of the application client when turning on the debugging mode is to view and adjust the local installation package file of the application client based on the modification instruction.
5. The method according to claim 1, It is characterized in that The method further comprises: If the application installation package is abnormal, sending a debugging request to the designated server through the target account, so that the designated server sets the target account as a remote debugging account after receiving the debugging request, and saves the remote debugging account; The step of the designated server determining whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account includes: Determine whether the target account is a remote debugging account saved in the designated server; If the target account is the remote debugging account, it is determined that the application client turns on the debugging mode, and the target debugging permission when the debugging mode is turned on is set to view and adjust the local installation package file of the application client based on the modification instruction.
6. The method according to claim 1, It is characterized in that The step of the designated server determining whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account includes: Obtaining, through the designated server, the interactive operation of the target account on the application client; In response to the interactive operation satisfying a preset debugging mode triggering condition, it is determined that the application client turns on the debugging mode, and a target debugging authority when turning on the debugging mode is determined based on the account type of the target account.
7. The method according to claim 1, It is characterized in that The step of acquiring or adjusting the local installation package file matching the target debugging authority through the file access interface includes: Acquiring, through the file access interface, a program file and / or a log file corresponding to the application installation package that matches the target debugging authority; The program file and / or log file corresponding to the application installation package is displayed to view the program file corresponding to the application installation package and / or adjust the program file based on the modification instruction.
8. The method according to claim 7, It is characterized in that The step of adjusting the program file based on the modification instruction comprises: In response to a modification instruction for the program file, the content of the program file is adjusted based on the modification specification to obtain an adjusted program file; wherein the modification instruction is used to add, modify or delete the content of the program file.
9. The method according to claim 8, It is characterized in that The method further comprises: The adjusted program file is returned to the application client through the file access interface, and the program file corresponding to the application installation package run by the application client is replaced with the adjusted program file.
10. A debugging device for an application installation package, It is characterized in that The device is set on an application client, the application client runs the application installation package, and the application installation package turns off the file sharing function. The device is characterized in that it includes: An account detection module is used for sending the target account to a designated server in response to logging into the application corresponding to the application installation package through a target account, so that the designated server determines whether the application client turns on the debugging mode and the target debugging authority when the debugging mode is turned on based on the target account; wherein the target debugging authority includes viewing and / or adjusting the local installation package file of the application client based on a modification instruction, and the local installation package file includes at least one of the following: a program file and a log file corresponding to the application installation package; The file debugging module is used to respond to receiving a mode start instruction sent by the designated server, determine the target debugging authority based on the mode start instruction, and open a local / remote file access interface to obtain or adjust a local installation package file that matches the target debugging authority through the file access interface.
11. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the debugging method of the application installation package according to any one of claims 1 to 9.
12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the debugging method for the application installation package according to any one of claims 1 to 9.
