Dynamic debugging method, device and equipment of intelligent kitchen electrical application and storage medium
By receiving and parsing dynamic debugging broadcasts in smart kitchen appliances, the problem of low efficiency in traditional fault diagnosis is solved. Runtime debugging without pre-embedded code is achieved, key variables are dynamically obtained, and fault diagnosis efficiency and information integrity are improved.
Patent Information
- Application Number
- CN202610185239.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-02-09
- Publication Date
- 2026-06-16
AI Technical Summary
Traditional methods for troubleshooting smart kitchen appliances are inefficient, provide incomplete information, and are difficult to quickly reproduce scenarios, resulting in long cycles, low efficiency, and an inability to dynamically obtain key variables during device operation.
By broadcasting user-defined dynamic debugging commands, the system receives and verifies the dynamic debugging broadcasts, parses and executes debugging operations, enabling runtime debugging without pre-embedded code. This breaks through the limitations of traditional static log collection, making it dynamic, lightweight, and requiring no application reinstallation.
It enables dynamic debugging during application runtime, allowing for lightweight and dynamic observation of the running status and acquisition of key variables without the need for pre-embedded code, thereby improving troubleshooting efficiency and information integrity.
Smart Images

Figure CN122220202A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart kitchen appliance application debugging technology, and in particular to a dynamic debugging method, device, equipment and storage medium for smart kitchen appliance applications. Background Technology
[0002] As people's quality of life improves and technologies such as the Internet, big data, artificial intelligence, and voice interaction are promoted and popularized, more and more traditional lifestyles are gradually changing, and the use of kitchen appliances is gradually moving towards intelligence.
[0003] However, the complex software logic, diverse sensor data, and frequent interactions with cloud services and mobile applications of smart kitchen appliances make online versions of applications prone to occasional problems, such as operation crashes and data anomalies. Traditional troubleshooting methods often fail to quickly reproduce these online issues and are difficult to dynamically obtain key variables during device operation, resulting in long cycles, low efficiency, and incomplete information. Summary of the Invention
[0004] To address the technical problems of low efficiency and incomplete information in existing application troubleshooting methods, this invention provides a dynamic debugging method, device, equipment, and storage medium for smart kitchen appliance applications. It carries user-customized dynamic debugging instructions via broadcast, allowing the corresponding application to respond to the broadcast, parse and execute the corresponding debugging operations during application runtime. This enables runtime debugging without pre-embedded code, overcoming the limitations of traditional static log collection. It offers advantages such as lightweight design, dynamism, and no need to reinstall the application. The required dynamic debugging instructions can be set, and target functions and variables can be executed through these instructions to assist in observing the running status and thus obtain key runtime variables.
[0005] In a first aspect, embodiments of this application provide a dynamic debugging method for a smart kitchen appliance application, the method comprising: During application operation, dynamic debugging broadcasts are received; dynamic debugging broadcasts carry dynamic debugging instructions. Verify the dynamic debugging broadcast and obtain the verification result; If the verification result indicates that the dynamic debugging broadcast verification is successful, the dynamic debugging command is parsed to obtain the debugging operation content; Execute the corresponding debugging operation based on the debugging operation content.
[0006] In one optional embodiment, the dynamic debugging instruction includes the target application package name; the dynamic debugging broadcast is validated to obtain a validation result, including: Get the current application package name; If the current application package name matches the target application package name, the verification is considered successful and the result is valid; or if the current application package name does not match the target application package name, the verification is considered unsuccessful and the result is valid.
[0007] In one optional embodiment, the dynamic debugging instruction further includes additional information; if the verification result indicates that the dynamic debugging broadcast verification passed, the dynamic debugging instruction is parsed to obtain the debugging operation content, including: If the verification result indicates that the dynamic debugging broadcast verification is successful, the additional information is parsed to obtain the debugging operation type, debugging operation object, and debugging operation parameters. The content of the debugging operation is determined based on the debugging operation type, the debugging operation object, and the debugging operation parameters.
[0008] In one optional embodiment, the debugging operation type includes a method call type; performing the corresponding debugging operation based on the debugging operation content includes: If the debugging operation type of the debugging operation content is a method call type, the target parameter format is determined based on the method call type; Based on the target parameter format, the debugging operation parameters of the debugging operation content are converted to obtain the target operation parameters; Execute the corresponding debugging operation based on the target operation parameters, the debugging operation object, and the debugging operation type.
[0009] In one optional embodiment, the debugging operation type further includes reading variable type and modifying variable type; performing corresponding debugging operations based on the debugging operation content includes: If the debugging operation type is a read variable type, then the corresponding debugging operation is executed based on the read variable type, the debugging operation object, and the debugging operation parameters; or; If the debugging operation type of the debugging operation content is to modify the variable type, the corresponding debugging operation is executed based on the variable type to be modified, the debugging operation object, and the debugging operation parameters.
[0010] In one optional embodiment, the debug operation object includes an instance object; performing the corresponding debug operation based on the debug operation content includes: If the debug operation object of the debug operation content is an instance object, obtain the application's user interface instance object; Execute the corresponding debugging operation based on the debugging operation type, user interface instance object, and debugging operation parameters.
[0011] In one optional embodiment, the dynamic debugging broadcast is verified to obtain the verification result, including: Get the application's debug switch status; If the debug switch is in the ON state, the dynamic debug broadcast is verified to obtain the verification result; or, if the debug switch is in the OFF state, the verification fails as the verification result.
[0012] Secondly, embodiments of this application provide a dynamic debugging device for a smart kitchen appliance application, the device comprising: The receiving module is used to receive dynamic debugging broadcasts during application operation; the dynamic debugging broadcasts carry dynamic debugging instructions. The verification module is used to verify the dynamic debugging broadcast and obtain the verification result; The parsing module is used to parse the dynamic debugging command and obtain the debugging operation content if the verification result indicates that the dynamic debugging broadcast verification has passed. The execution module is used to perform corresponding debugging operations based on the debugging operation content.
[0013] Thirdly, embodiments of this application provide a kitchen appliance, which includes a processor and a memory. The memory stores at least one instruction, at least one program, code set, or instruction set. The processor loads and executes the at least one instruction, at least one program, code set, or instruction set to implement the dynamic debugging method for the intelligent kitchen appliance application of the first aspect.
[0014] Fourthly, embodiments of this application provide a computer-readable storage medium storing at least one instruction or at least one program, wherein the at least one instruction or at least one program is loaded and executed by a processor to implement the dynamic debugging method for the intelligent kitchen appliance application of the first aspect.
[0015] Fifthly, embodiments of this application provide a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the dynamic debugging method for the intelligent kitchen appliance application of the first aspect.
[0016] The dynamic debugging method, apparatus, device, and storage medium for smart kitchen appliances provided in this application have the following technical effects: During application operation, a dynamic debugging broadcast is received; the dynamic debugging broadcast carries dynamic debugging instructions; the dynamic debugging broadcast is verified to obtain a verification result; if the verification result indicates that the dynamic debugging broadcast verification passed, the dynamic debugging instructions are parsed to obtain the debugging operation content; and the corresponding debugging operation is executed based on the debugging operation content. In this embodiment, user-customized dynamic debugging instructions are carried in the form of a broadcast. The corresponding application can respond to the dynamic debugging broadcast, parse and execute the corresponding debugging operation during application runtime, and achieve runtime debugging without code pre-embedding. This overcomes the limitations of traditional static log collection and has the advantages of being lightweight, dynamic, and requiring no application reinstallation. The required dynamic debugging instructions can be set, and the target function and target variable can be executed through the instructions to assist in observing the running status and thus obtain key runtime variables. Attached Figure Description
[0017] To more clearly illustrate the technical solutions and advantages in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of an application environment provided in an embodiment of this application; Figure 2 This is a flowchart illustrating a dynamic debugging method for a smart kitchen appliance application provided in an embodiment of this application. Figure 1 ; Figure 3 This is a flowchart illustrating a dynamic debugging method for a smart kitchen appliance application provided in an embodiment of this application. Figure 2 ; Figure 4 This is a flowchart illustrating a method for performing corresponding debugging operations provided in an embodiment of this application. Figure 1 ; Figure 2 This is a flowchart illustrating a method for performing corresponding debugging operations provided in an embodiment of this application. Figure 6 ; Figure 7 This is a schematic diagram of the structure of a dynamic debugging device for an intelligent kitchen appliance application provided in an embodiment of this application; Figure 1 This is a hardware structure block diagram of a server for a dynamic debugging method for a smart kitchen appliance application provided in an embodiment of this application. Detailed Implementation
[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0020] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0021] Please see Figure 1 , Figure 2 This is a schematic diagram of an application environment provided in an embodiment of this application, including a debugging terminal 101 and a smart kitchen appliance 102.
[0022] In one possible embodiment, the debugging terminal 101 and the smart kitchen appliance 102 are connected in communication, and the debugging terminal 101 can send broadcast notifications to the smart kitchen appliance 102.
[0023] In one possible embodiment, the smart kitchen appliance 102 is an Android system and is applied in an Android application. During the operation of the application, the smart kitchen appliance 102 receives a dynamic debugging broadcast; the dynamic debugging broadcast carries a dynamic debugging instruction; the dynamic debugging broadcast is verified to obtain a verification result; if the verification result indicates that the dynamic debugging broadcast verification is successful, the dynamic debugging instruction is parsed to obtain the debugging operation content; and the corresponding debugging operation is executed based on the debugging operation content.
[0024] In this embodiment, user-customized dynamic debugging instructions are carried via broadcast. The corresponding application can respond to the dynamic debugging broadcast, parse and execute the corresponding debugging operations during application runtime, and achieve runtime debugging without code pre-embedding. This breaks through the limitations of traditional static log collection and has the advantages of being lightweight, dynamic, and requiring no application reinstallation. The required dynamic debugging instructions can be set, and the target function and target variables can be executed through the instructions to help observe the running status and obtain key variables during runtime.
[0025] The following describes a specific embodiment of a dynamic debugging method for a smart kitchen appliance application according to this application. Figure 1 This is a flowchart illustrating a dynamic debugging method for a smart kitchen appliance application provided in an embodiment of this application. Figure 2 This specification provides method operation steps as shown in the embodiments or flowcharts, but based on conventional or non-inventive labor, more or fewer operation steps may be included. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only execution order. In actual system or server products, the methods shown in the embodiments or drawings can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment). Specifically, as shown in the embodiments or drawings... Figure 3 As shown, it may include: S201: During application operation, receive dynamic debugging broadcasts; dynamic debugging broadcasts carry dynamic debugging instructions.
[0026] S202: Verify the dynamic debugging broadcast and obtain the verification result.
[0027] S203: If the verification result indicates that the dynamic debugging broadcast verification is successful, the dynamic debugging command is parsed to obtain the debugging operation content.
[0028] S204: Execute the corresponding debugging operation based on the debugging operation content.
[0029] Figure 2 This is a flowchart illustrating a dynamic debugging method for a smart kitchen appliance application provided in an embodiment of this application. Figure 4 The method may include: S301: Receives dynamic debugging broadcasts during application operation.
[0030] In this embodiment, the dynamic debugging broadcast carries dynamic debugging instructions. Specifically, Android system notifications are used to carry the dynamic debugging instructions, and the smart kitchen appliance is equipped with a broadcast receiver to receive the dynamic debugging broadcast.
[0031] S302: Verify the dynamic debugging broadcast and obtain the verification result.
[0032] In this embodiment of the application, since all smart kitchen appliances can receive dynamic debugging broadcasts, but only specific smart kitchen appliances can respond to the dynamic debugging broadcasts, the dynamic debugging broadcasts need to be verified before parsing the instructions. The instructions can only be parsed after the verification is passed.
[0033] In one possible embodiment, the dynamic debugging broadcast is verified to obtain the verification result, including: S3021: Get the debug switch status of the application; S3022: Determine if the debug switch is in the ON state. If yes, execute S3023; otherwise, execute S3024.
[0034] S3023: Verify the dynamic debugging broadcast and obtain the verification result.
[0035] S3024: The verification failure is determined as the verification result.
[0036] Optionally, if the debug switch is in the on state, subsequent package name verification can be performed; if the debug switch is in the off state, for security reasons, the verification will be deemed unsuccessful.
[0037] In other possible embodiments, the function is disabled by default in the production environment, and the debug switch is in the off state. It can be turned on by specific configuration (e.g., by entering a password) to switch the debug switch from the off state to the on state before performing subsequent package name verification.
[0038] In this embodiment, the dynamic debugging instruction includes the target application package name. Specifically, the target application package name is the unique identifier of the dynamic debugging instruction, which consists of the target application package name and ".debug", such as com.example.app.debug.
[0039] In one possible embodiment, the dynamic debugging broadcast is verified to obtain the verification result, including: S30231: Get the current application package name of the application.
[0040] S30232: Determine whether the current application package name matches the target application package name. If yes, execute S30233; otherwise, execute S30234.
[0041] S30233: Verification passed is the verification result.
[0042] S30234: Verification failure is the result of the verification.
[0043] Optionally, if the current application package name matches the target application package name, the dynamic debugging command is sent to the current application, the verification passes, and subsequent command parsing operations can be performed; if the current application package name does not match the target application package name, the dynamic debugging command is not sent to the current application, the verification fails, and subsequent command parsing operations cannot be performed.
[0044] In this embodiment, the dynamic debugging instruction also includes additional information, specifically, the extras of the dynamic debugging instruction carries key-value pair format instructions.
[0045] S303: Parse the additional information to obtain the debugging operation type, debugging operation object, and debugging operation parameters.
[0046] S304: Determine the debugging operation content based on the debugging operation type, debugging operation object, and debugging operation parameters.
[0047] In one possible embodiment, the dynamic debugging instruction can be to read a static variable, wherein the debugging operation type is to read a variable type, the debugging operation object is a static variable, and the instruction format is log:ABx. Its function is to print (read) the value of a static variable (x) in a specified class (B) under a specified package (A). For example, log:com.utils.Config.API_URL reads the current value of the static variable API_URL in the Config class under the com.utils package.
[0048] In one possible embodiment, the dynamic debugging instruction can be to read instance variables, where the debugging operation type is to read variable type, the debugging operation object is an instance variable, the instruction format is log:x, and its function is to print (read) the value of the member variable (x) in the current interface (such as Activity or Fragment) object. For example, log:mUserName reads the current value of the member variable mUserName in the current interface object.
[0049] In one possible embodiment, the dynamic debugging instruction can be a call to a static method with parameters, wherein the debugging operation type is a method call type, the debugging operation object is a static method, and the instruction format is call:ABx(param1, param2), which calls the static method (x) in a specified class (B) under a specified package (A), and supports passing multiple parameters, such as call:com.utils.Calc.sum(10, 20.5).
[0050] In one possible embodiment, the dynamic debugging instruction can be a parameterized instance method of the current interface object, wherein the debugging operation type is a method call type, the debugging operation object is an instance method, the instruction format is call:x(param), its function is to call the instance method (x) of the current interface object, and it supports passing parameters, such as call:updateText("hello").
[0051] In one possible embodiment, the dynamic debugging instruction can be to modify a static variable, wherein the debugging operation type is to modify the variable type, the debugging operation object is a static variable, and the instruction format is set:ABx=value. Its function is to set (modify) the value of a static variable (x) in a specified class (B) under a specified package (A), for example, set:com.utils.Config.debugMode=true.
[0052] In one possible embodiment, the dynamic debugging instruction can be to modify the value of a member variable of the current interface object. The debugging operation type is to modify the variable type, the debugging operation object is an instance variable, and the instruction format is set:x=value. Its function is to set (modify) the value of the member variable (x) in the current interface object, for example, set:mIsLoading=false.
[0053] S305: Execute the corresponding debugging operation based on the debugging operation content.
[0054] Figure 1 This is a flowchart illustrating a method for performing corresponding debugging operations provided in an embodiment of this application. Figure 5 The steps for performing corresponding debugging operations based on the debugging operation content may include: S401: Determine if the debugging operation type is a method call type. If yes, execute S402; otherwise, execute S404.
[0055] In this embodiment of the application, the debugging operation type includes the method call type, and the debugging operation type also includes the variable read type and the variable modify type.
[0056] S402: Determine the target parameter format based on the method call type.
[0057] S403: Based on the target parameter format, the debugging operation parameters of the debugging operation content are converted to obtain the target operation parameters.
[0058] In this embodiment of the application, if the debugging operation type is a method call type, the target parameter format is determined according to the method call type, and the debugging operation parameters of the debugging operation content are format converted based on the target parameter format to obtain the target operation parameters. The string is then converted into a basic type, specifically String, bool, int, float, etc., using a parameter format converter.
[0059] S404: Execute the corresponding debugging operation based on the target operation parameters, the debugging operation object, and the debugging operation type.
[0060] In one possible embodiment, the corresponding debugging operation is performed based on the target operation parameters after format conversion, the debugging operation object, and the debugging operation type.
[0061] S405: Determine if the debugging operation type is a read variable type. If yes, execute S406; otherwise, execute S407.
[0062] S406: Execute the corresponding debugging operation based on the read variable type, debugging operation object, and debugging operation parameters.
[0063] S407: Execute the corresponding debugging operation based on the modified variable type, debugging operation object, and debugging operation parameters.
[0064] In one optional embodiment, if the debugging operation type of the debugging operation content is a read variable type, the corresponding debugging operation is executed based on the read variable type, the debugging operation object, and the debugging operation parameters.
[0065] In another optional embodiment, if the debugging operation type of the debugging operation content is to modify the variable type, the corresponding debugging operation is executed based on the variable type, the debugging operation object, and the debugging operation parameters.
[0066] Figure 2 This is a flowchart illustrating a method for performing corresponding debugging operations provided in an embodiment of this application. Figure 6 The steps for performing corresponding debugging operations based on the debugging operation content may include: S501: Determine whether the debugging operation object is an instance object. If yes, execute S505; otherwise, execute S507.
[0067] In this embodiment of the application, the debugging operation object includes instance objects and static objects.
[0068] S502: Get the application's user interface instance object.
[0069] S503: Execute the corresponding debugging operation based on the debugging operation type, user interface instance object, and debugging operation parameters.
[0070] S504: Execute the corresponding debugging operation based on the debugging operation type, debugging operation object, and debugging operation parameters.
[0071] In one optional embodiment, if the debugging operation object of the debugging operation content is an instance object, the user interface instance object of the application is obtained, and the corresponding debugging operation is executed based on the debugging operation type, the user interface instance object, and the debugging operation parameters.
[0072] When the debugging operation object is an instance object, context awareness can be achieved. By accessing the application programming interface (API) provided by the Android Framework, the user interface instance object of the current application can be obtained in real time, including Activity instance, Fragment instance, and View instance. The user interface instance object can be used as the debugging operation object to perform the corresponding debugging operation, which enhances the ability to automatically identify the current user interface context and realizes direct operation on interface layer variables with zero interference to the production environment.
[0073] This application also provides a dynamic debugging device for smart kitchen appliance applications. Figure 6 This is a schematic diagram of the structure of a dynamic debugging device for a smart kitchen appliance application provided in an embodiment of this application, as shown below. Figure 7 As shown, the device 600 includes: The receiving module 601 is used to receive dynamic debugging broadcasts during application operation; the dynamic debugging broadcasts carry dynamic debugging instructions. The verification module 602 is used to verify the dynamic debugging broadcast and obtain the verification result; The parsing module 603 is used to parse the dynamic debugging command and obtain the debugging operation content if the verification result indicates that the dynamic debugging broadcast verification is passed. Execution module 604 is used to execute corresponding debugging operations based on the debugging operation content.
[0074] In one alternative embodiment, the dynamic debugging instructions include the target application package name; and further include: The first acquisition module is used to obtain the current application package name of the application; The first determining module is used to determine that if the current application package name matches the target application package name, the verification passes and is taken as the verification result; or if the current application package name does not match the target application package name, the verification fails and is taken as the verification result.
[0075] In an alternative embodiment, the dynamic debugging instructions further include additional information; including: The first parsing module is used to parse the additional information to obtain the debugging operation type, debugging operation object and debugging operation parameters if the verification result indicates that the dynamic debugging broadcast verification is passed. The second determination module is used to determine the content of the debugging operation based on the debugging operation type, the debugging operation object, and the debugging operation parameters.
[0076] In one optional embodiment, the debugging operation type includes a method call type; and further includes: The third determination module is used to determine the target parameter format based on the method call type when the debugging operation type of the debugging operation content is a method call type. The first conversion module is used to convert the debugging operation parameters of the debugging operation content based on the target parameter format to obtain the target operation parameters; The first execution module is used to execute the corresponding debugging operation based on the target operation parameters, the debugging operation object, and the debugging operation type.
[0077] In an optional embodiment, the debug operation type further includes reading variable types and modifying variable types; it also includes: The second execution module is used to execute the corresponding debugging operation based on the variable type, the debugging operation object, and the debugging operation parameters when the debugging operation type of the debugging operation content is a variable read type; or; The third execution module is used to execute the corresponding debugging operation based on the variable type, the debugging operation object, and the debugging operation parameters when the debugging operation type of the debugging operation content is to modify the variable type.
[0078] In one optional embodiment, the debug operation object includes an instance object; and further includes: The second acquisition module is used to acquire the application's user interface instance object if the debugging operation object of the debugging operation content is an instance object; The fourth execution module is used to execute the corresponding debugging operation based on the debugging operation type, the user interface instance object, and the debugging operation parameters.
[0079] In an optional embodiment, it further includes: The third acquisition module is used to acquire the debug switch status of the application; The first verification module is used to verify the dynamic debugging broadcast if the debugging switch is in the on state, and obtain the verification result; or, if the debugging switch is in the off state, determine that the verification fails as the verification result.
[0080] The apparatus and method embodiments in this application are based on the same application concept.
[0081] The methods and embodiments provided in this application can be executed on a computer terminal, server, or similar computing device. Taking running on a server as an example, Figure 7 This is a hardware structure block diagram of a server for a dynamic debugging method for an intelligent kitchen appliance application provided in an embodiment of this application. For example... Figure 7As shown, the server 700 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 710 (CPUs 710 may include, but are not limited to, microprocessors such as MCUs or programmable logic devices such as FPGAs), a memory 730 for storing data, and one or more storage media 720 (e.g., one or more mass storage devices) for storing application programs 723 or data 722. The memory 730 and storage media 720 may be temporary or persistent storage. The program stored in the storage media 720 may include one or more modules, each module may include a series of instruction operations on the server. Furthermore, the CPU 710 may be configured to communicate with the storage media 720 and execute the series of instruction operations stored in the storage media 720 on the server 700. Server 700 may also include one or more power supplies 760, one or more wired or wireless network interfaces 750, one or more input / output interfaces 740, and / or one or more operating systems 721, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0082] The input / output interface 740 can be used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of server 700. In one example, the input / output interface 740 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the input / output interface 740 may be a radio frequency (RF) module used for wireless communication with the Internet.
[0083] Those skilled in the art will understand that Figure 7 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, server 700 may also include... Figure 7 The more or fewer components shown, or having the same The different configurations shown.
[0084] This application provides a kitchen appliance, which includes a processor and a memory. The memory stores at least one instruction, at least one program, code set, or instruction set. The processor loads and executes the at least one instruction, at least one program, code set, or instruction set to implement the above-described data processing method.
[0085] Embodiments of this application also provide a computer-readable storage medium, which can be disposed in a server to store at least one instruction, at least one program, code set, or instruction set related to implementing a dynamic debugging method for a smart kitchen appliance application in the method embodiment. The at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the dynamic debugging method for the smart kitchen appliance application described above.
[0086] Optionally, in this embodiment, the storage medium may be located at at least one of the multiple network servers in a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0087] As can be seen from the embodiments of the dynamic debugging method, device, kitchen appliance, or storage medium for smart kitchen appliance applications provided in this application, during the application's operation, a dynamic debugging broadcast is received; the dynamic debugging broadcast carries dynamic debugging instructions; the dynamic debugging broadcast is verified to obtain a verification result; if the verification result indicates that the dynamic debugging broadcast verification is successful, the dynamic debugging instructions are parsed to obtain debugging operation content; and the corresponding debugging operation is executed based on the debugging operation content. In the embodiments of this application, user-customized dynamic debugging instructions are carried in the form of broadcasts, and the corresponding application can respond to the dynamic debugging broadcast, parse and execute the corresponding debugging operation during application runtime, which can realize runtime debugging without code pre-embedding, breaking through the limitations of traditional static log collection, and has the advantages of being lightweight, dynamic, and requiring no application reinstallation. The required dynamic debugging instructions can be set, and the target function and target variables can be executed through the instructions to assist in observing the running status, thereby obtaining key variables during runtime.
[0088] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0089] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0090] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0091] The above description is only a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A dynamic debugging method for intelligent kitchen appliance applications, characterized in that, include: During application runtime, receive dynamic debugging broadcasts; The dynamic debugging broadcast carries dynamic debugging instructions; The dynamic debugging broadcast is verified to obtain the verification result; If the verification result indicates that the dynamic debugging broadcast verification is successful, the dynamic debugging instruction is parsed to obtain the debugging operation content; Execute the corresponding debugging operation based on the debugging operation content.
2. The dynamic debugging method for an intelligent kitchen appliance application according to claim 1, characterized in that, The dynamic debugging command includes the target application package name; The verification of the dynamic debugging broadcast to obtain the verification result includes: Get the current application package name of the application; If the current application package name matches the target application package name, the verification is determined to be successful; or, if the current application package name does not match the target application package name, the verification is determined to be unsuccessful.
3. The dynamic debugging method for an intelligent kitchen appliance application according to claim 2, characterized in that, The dynamic debugging instruction also includes additional information; if the verification result indicates that the dynamic debugging broadcast verification passed, the dynamic debugging instruction is parsed to obtain the debugging operation content, including: If the verification result indicates that the dynamic debugging broadcast verification is successful, the additional information is parsed to obtain the debugging operation type, debugging operation object, and debugging operation parameters; The debugging operation content is determined based on the debugging operation type, the debugging operation object, and the debugging operation parameters.
4. The dynamic debugging method for an intelligent kitchen appliance application according to claim 3, characterized in that, The debugging operation type includes the method call type; the execution of the corresponding debugging operation based on the debugging operation content includes: If the debugging operation type of the debugging operation content is the method call type, the target parameter format is determined based on the method call type; Based on the target parameter format, the debugging operation parameters of the debugging operation content are converted to obtain the target operation parameters; Execute the corresponding debugging operation based on the target operation parameters, the debugging operation object, and the debugging operation type.
5. The dynamic debugging method for an intelligent kitchen appliance application according to claim 4, characterized in that, The debugging operation types also include reading variable types and modifying variable types; the execution of corresponding debugging operations based on the debugging operation content includes: If the debugging operation type of the debugging operation content is the read variable type, then the corresponding debugging operation is executed based on the read variable type, the debugging operation object, and the debugging operation parameters; or; If the debugging operation type of the debugging operation content is the variable modification type, then the corresponding debugging operation is executed based on the variable modification type, the debugging operation object, and the debugging operation parameters.
6. The dynamic debugging method for an intelligent kitchen appliance application according to claim 5, characterized in that, The debugging operation object includes instance objects; the execution of the corresponding debugging operation based on the debugging operation content includes: If the debugging operation object of the debugging operation content is the instance object, obtain the user interface instance object of the application; Execute the corresponding debugging operation based on the debugging operation type, the user interface instance object, and the debugging operation parameters.
7. The dynamic debugging method for an intelligent kitchen appliance application according to claim 1, characterized in that, The verification of the dynamic debugging broadcast to obtain the verification result includes: Obtain the debug switch status of the application; If the debug switch is in the ON state, the dynamic debug broadcast is verified to obtain the verification result; or, if the debug switch is in the OFF state, the verification fails as the verification result.
8. A dynamic debugging device for intelligent kitchen appliances, characterized in that, The device includes: The receiving module is used to receive dynamic debugging broadcasts during application operation; the dynamic debugging broadcasts carry dynamic debugging instructions. The verification module is used to verify the dynamic debugging broadcast and obtain the verification result; The parsing module is used to parse the dynamic debugging instruction to obtain the debugging operation content if the verification result indicates that the dynamic debugging broadcast verification has passed. The execution module is used to perform corresponding debugging operations based on the debugging operation content.
9. A smart kitchen appliance, characterized in that, The intelligent kitchen appliance includes a processor and a memory. The memory stores at least one instruction, at least one program, a code set, or an instruction set. The at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the dynamic debugging method for the intelligent kitchen appliance application as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction or at least one program, which is loaded and executed by a processor to implement the dynamic debugging method for the smart kitchen appliance application as described in any one of claims 1-7.
