WO2023109202A1 - Applet plugin debugging method and system, and computer readable storage medium - Google Patents

Applet plugin debugging method and system, and computer readable storage medium Download PDF

Info

Publication number
WO2023109202A1
WO2023109202A1 PCT/CN2022/117422 CN2022117422W WO2023109202A1 WO 2023109202 A1 WO2023109202 A1 WO 2023109202A1 CN 2022117422 W CN2022117422 W CN 2022117422W WO 2023109202 A1 WO2023109202 A1 WO 2023109202A1
Authority
WO
WIPO (PCT)
Prior art keywords
debugging
applet
plug
target
window
Prior art date
Application number
PCT/CN2022/117422
Other languages
French (fr)
Chinese (zh)
Inventor
张聪萍
解楠
沈玺
Original Assignee
中国银联股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国银联股份有限公司 filed Critical 中国银联股份有限公司
Publication of WO2023109202A1 publication Critical patent/WO2023109202A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Definitions

  • the invention belongs to the field of debugging, and in particular relates to a small program plug-in debugging method, device and computer-readable storage medium.
  • the existing applet plug-in debugging solutions still have some limitations.
  • the debugging of business logic and plug-in calls is usually run in the debugging tool for simulation, not in the production version of the application for debugging, so it cannot Debug comprehensively and realistically.
  • the present invention provides the following solutions.
  • a small program plug-in debugging method including: when the target small program calls the plug-in of the small program to be debugged, the application program sends the first plug-in debugging protocol package to the main process of the debugging tool, wherein the target small program runs in the application In the applet container with the debugging function enabled in the program; when the real machine debugging window is switched to the target debugging panel, the real machine debugging window obtains the first plug-in debugging protocol package from the main process of the debugging tool and parses out the calling information of the small program plug-in, and displays it in Target debugging panel; when the real machine debugging window initiates a plug-in debugging operation for the target debugging panel, the real machine debugging window pushes the second plug-in debugging protocol package to the application through the pre-established two-way communication channel; the application responds to the second plug-in debugging protocol The package enters plugin debug mode.
  • it also includes the step of establishing a two-way communication channel, including: the main process of the debugging tool obtains debugging information of one or more applets that pass the authorization check from one or more application programs, and the debugging information includes: applets ID, applet container debugging server address; the debugging tool rendering process obtains the debuggable applet list from the debugging tool main process, and the debuggable applet list includes debugging information of one or more applets;
  • the real machine debugging window obtains the address of the applet container debugging server corresponding to the target applet selected in the debuggable applet list from the debugging tool rendering process; the real machine debugging window connects to the applet corresponding to the target applet as the applet container debugging client.
  • the address of the program container debugging server to establish a two-way communication channel between the real device debugging window and the application program where the target applet is located.
  • it also includes: the communication connection between the application program and the main process of the debugging tool through an encapsulated USB/ADB service channel.
  • the first plug-in debugging protocol package is constructed based on a custom plug-in debugging protocol format
  • the custom plug-in debugging protocol format includes: method, request, and response; wherein, the method is composed of the main protocol, plug-in name, and plug-in action; request It consists of request ID, request parameters and parameter values; the response consists of callback ID, response parameters and parameter values.
  • the application obtains the applet configuration information of one or more applets; and performs permission verification according to the applet configuration information; wherein, the permission verification includes one or more of the following: Verify whether the applet is allowed to run, verify whether the applet plug-in is available, and verify whether the debugging permission of the applet is enabled.
  • the two-way communication channel is a websocket channel
  • the applet container debugging server is a websocket server
  • the applet container debugging client is a websocket client.
  • the debugging tool rendering process obtains the list of debuggable applets from the debugging tool main process through inter-process communication.
  • the debugging tool is implemented based on Electron.
  • the real device debugging window is implemented based on Chrome DevTools.
  • the switching second plug-in debugging protocol packet is sent based on the two-way communication channel; the application program intercepts switching the second plug-in debugging protocol packet, and the execution schedule switches the corresponding applet container to the foreground .
  • a small program plug-in debugging system including: an application program, a debugging tool main process, and a real machine debugging window; wherein, the target applet runs in a small program container with a debugging function enabled in the application program; the application program, Used to send the first plug-in debugging protocol packet to the main process of the debugging tool when the target applet calls the plug-in of the applet to be debugged; the real device debugging window is used to obtain the first plug-in from the main process of the debugging tool when switching to the target debugging panel Debug the protocol package and parse out the calling information of the applet plug-in, and display it on the target debugging panel; it is also used to push the second plug-in debugging protocol to the application through the pre-established two-way communication channel when the plug-in debugging operation for the target debugging panel is initiated package; an application program for entering a plug-in debug mode in response to the second plug-in debug mode
  • a small program plug-in debugging device including: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by at least one processor.
  • a processor executes, so that at least one processor can execute: the method of the first aspect.
  • a computer-readable storage medium stores a program, and when the program is executed by a multi-core processor, the multi-core processor executes the method of the first aspect.
  • FIG. 1 is a schematic flowchart of a method for debugging a plug-in of a small program according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a small program plug-in debugging system according to an embodiment of the present invention
  • FIG. 3 is an interactive schematic diagram of a method for debugging a plug-in of a small program according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method for debugging a plug-in of a small program according to another embodiment of the present invention.
  • Fig. 5 is a schematic structural diagram of an apparatus for debugging plug-in applets according to yet another embodiment of the present invention.
  • A/B can mean A or B; "and/or” in this article is just an association relationship describing associated objects, indicating that there can be three relationships, For example, A and/or B may mean that A exists alone, A and B exist simultaneously, and B exists alone.
  • first”, “second”, etc. are used for descriptive purposes only, and should not be understood as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as “first”, “second”, etc. may expressly or implicitly include one or more of that feature. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
  • Fig. 1 is a schematic flowchart of a small program plug-in debugging method according to an embodiment of the present application, which is used to debug the small program plug-in in real time.
  • the execution subject may be one or more Electronic equipment; from a program perspective, the execution subject may be a program carried on these electronic equipment.
  • the method provided in this embodiment may include the following steps:
  • the target applet runs in an applet container with a debugging function enabled in the application program.
  • the delivery of the first plug-in debugging protocol package can be realized through the service channel between the application program and the debugging tool.
  • the communication connection between the application program and the main process of the debugging tool can be implemented through an encapsulated USB/ADB service channel.
  • the communication connection between the application program and the main process of the debugging tool may also be implemented through a network service channel.
  • USB Universal Serial Bus
  • ADB Android Debug Bridge, Android Debug Bridge
  • the client is the computer used for operation
  • the server is the Android device.
  • the first plug-in debugging protocol package refers to a data package that includes applet calling information constructed based on a custom plug-in debugging protocol format.
  • the custom plug-in debugging protocol format includes: method, request, and response; wherein, the method is composed of the main protocol, plug-in name, and plug-in action; the request is composed of request ID, request parameters and parameter values; the response is composed of callback ID , response parameters and parameter values.
  • the plug-in debugging protocol format is as follows, including Method, Request, and Response.
  • Method consists of: [main agreement. Plug-in name. Plug-in action].
  • Request consists of: reqId (request Id, incrementally generated) and specific request parameters and parameter values.
  • Response consists of callbackId (callback Id, the value is the same as the request Id) and specific response parameters and parameter values.
  • the real machine debugging window obtains the first plug-in debugging protocol package from the main process of the debugging tool, parses out the applet plug-in calling information, and displays it on the target debugging panel;
  • the main process of the debugging tool can store after obtaining the first plug-in debugging protocol package, and only when the real-device debugging window is switched to the target debugging panel for debugging the plug-in, the real-device debugging window needs to obtain it from the storage service.
  • the first plug-in debugging protocol package is parsed to obtain the calling information of the applet plug-in and displayed in the real machine debugging window, so that the developer can trigger the generated plug-in debugging operation in the target debugging panel according to the displayed applet plug-in calling information, such as setting breakpoints etc.
  • the target debugging panel above is a preset panel for plug-in debugging. For example, if the main protocol in the first plug-in debugging protocol package is cordova, it will be displayed in the cordova panel, and if the main protocol is jsbridge, it will be displayed in the jsbridge panel.
  • the real machine debugging window initiates a plug-in debugging operation for the target debugging panel
  • the real machine debugging window pushes the second plug-in debugging protocol package to the application through the pre-established two-way communication channel;
  • the second plug-in debugging protocol package refers to a data packet based on a custom plug-in debugging protocol format and generated according to a plug-in debugging operation. Since a two-way communication channel has been established in advance as a debugging channel between the real machine debugging window and the applet container running the target applet in the application program, various debugging of the target applet can be realized.
  • the two-way communication channel may be a websocket channel
  • the applet container debugging server is a websocket server
  • the applet container debugging client is a websocket client.
  • the application program enters a plug-in debugging mode in response to the second plug-in debugging protocol package.
  • the application program can be configured to enter the plug-in debugging mode after receiving the data packet having the format of the plug-in debugging protocol, so that the application program can enter the plug-in debugging mode in response to the second plug-in debugging protocol packet.
  • Fig. 2 shows an exemplary debugging environment for executing the above S101-104; wherein, the applet container corresponding to the target applet in the application program and the debugging window of the real machine realize a two-way communication connection through a websocket channel, and the application program and the debugging tool host
  • the two-way communication connection is realized between the processes through the USB/ADB service channel
  • the communication connection is realized between the main process of the debugging tool and the rendering process of the debugging tool through inter-process communication
  • the main process of the debugging tool, the rendering process of the debugging tool and the debugging window of the real machine are passed
  • the local storage service realizes the communication connection.
  • FIG. 3 an exemplary interaction diagram based on the embodiment of the present application is shown, and FIG. 3 will be described in detail below in conjunction with FIG. 2 .
  • S101a the target applet calls the plug-in of the applet to be debugged
  • S101b the application where the target applet is located sends the first plug-in debugging protocol package to the main process of the debugging tool through the USB/ADB service channel
  • S102a when the real machine debugging window is switched to the target debugging panel , the real machine debugging window obtains the first plug-in debugging protocol package from the main process of the debugging tool through the local storage service
  • S102b the real machine debugging window parses out the plug-in calling information of the applet
  • S102c the real machine debugging window displays the applet on the target debugging panel Program plug-in calling information for developers to debug
  • S103a the real machine debugging window initiates a plug-in debugging operation for the target debugging panel
  • S103b the real machine debugging window pushes the second plug-in debugging protocol package to the application through the pre-established websocket channel ;
  • FIG 4 shows the steps of how to establish the above-mentioned two-way communication channel, which will be described in detail below in conjunction with Figure 4,
  • Establishing the above two-way communication channel includes:
  • the main process of the debugging tool obtains the debugging information of one or more applets that pass the permission verification from one or more applications;
  • the applet that passes the permission verification runs in the applet container with the debugging function enabled in the application.
  • the debugging information includes: applet ID, applet container debugging server address.
  • the applet identifier may be the applet page address, the applet title, and the like.
  • the debugging tool rendering process acquires a debuggable applet list from the debugging tool main process.
  • the debuggable applet list includes debugging information of one or more applets.
  • each item in the list contains debugging information such as the applet page address, title, and the address of the debugging server of the applet container
  • the real machine debugging window obtains the address of the debugging server of the applet container corresponding to the target applet selected in the list of debuggable applets from the debugging tool rendering process;
  • the debugging tool rendering process displays the list of the above-mentioned debuggable applets, and the developer can select the target applet to be debugged through the trigger action, and notify the real device debugging window, so that the real device debugging window can start from the debugging tool rendering process Obtain the address of the applet container debugging server corresponding to the target applet.
  • the real-device debugging window serves as the applet container debugging client to connect to the address of the applet container debugging server corresponding to the target applet, so as to establish a two-way communication channel between the real-device debugging window and the application where the target applet is located.
  • the exemplary debugging environment shown in FIG. 2 can be obtained.
  • the debugging environment created based on the above steps 201-204 can also support debugging functions such as applet pages, network requests, and web storage, and supports simultaneous debugging of multiple applets, providing more flexible Efficient multi-instance plugin debugging.
  • the application program obtains the applet configuration information of one or more applets; and performs permission verification according to the configuration information of the programs; wherein, the permission verification includes one or more of the following: verifying whether the applet is allowed to run, calibrating Check whether the applet plug-in can be used, and verify whether the debugging permission of the applet is enabled.
  • the applet can be run in the applet container with the debugging function enabled for subsequent debugging.
  • the debugging tool is implemented based on Electron.
  • the debugging tool includes a debugging tool main process and a debugging tool rendering process.
  • the real device debugging window is implemented based on Chrome DevTools.
  • the switching second plug-in debugging protocol packet is sent based on the two-way communication channel; the application program intercepts switching the second plug-in debugging protocol packet, and the execution schedule switches the corresponding applet container to the foreground .
  • a small program plug-in debugging method proposed in the above embodiments of the present application provides cross-terminal, real-time, safe, comprehensive support, non-intrusive, less network dependency, and supports multiple instances of small program plug-in debugging.
  • the applet plug-ins all run in the production version of the application, providing a more comprehensive and real plug-in debugging. And there is no need to deploy the source code of the applet on a specific platform, and the source code does not need to be modified in any way, providing a more secure and controllable solution, which is suitable for fields such as the financial industry with high security requirements.
  • first and second are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features.
  • the features defined as “first” and “second” may explicitly or implicitly include at least one of these features.
  • “plurality” means at least two, such as two, three, etc., unless otherwise specifically defined.
  • an embodiment of the present invention further provides a small program plug-in debugging system, which is used to execute the small program plug-in debugging method provided in any one of the above embodiments.
  • FIG. 2 is a schematic diagram of a small program plug-in debugging system provided by an embodiment of the present invention.
  • the application program includes: the application program, the main process of the debugging tool, the rendering process of the debugging tool, and the real machine debugging window; wherein, the target applet runs in the applet container with the debugging function enabled in the application program; the application program is used for When the target applet calls the plug-in of the applet to be debugged, it sends the first plug-in debugging protocol package to the main process of the debugging tool; The process obtains the first plug-in debugging protocol package and parses out the calling information of the applet plug-in, and displays it on the target debugging panel; it is also used for when the plug-in debugging operation for the target debugging panel is initiated, through the pre-established two-way The communication channel pushes a second plug-in debugging protocol package to the application program; the application program is configured to enter a plug-in debugging mode in response to the second plug-in debugging protocol package.
  • Fig. 5 is a small program plug-in debugging device according to an embodiment of the present application, which is used to execute the small program plug-in debugging method shown in Fig. 1 , the device includes: at least one processor; and, communicated with at least one processor A memory; wherein, the memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor, so that the at least one processor can execute the methods described in the above-mentioned embodiments.
  • a non-volatile computer storage medium of a small program plug-in debugging method on which computer executable instructions are stored, and the computer executable instructions are configured to be executed when run by a processor: the above implementation The method described in the example.
  • each embodiment in the present application is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments.
  • the apparatus, equipment, and computer-readable storage medium embodiments since they are basically similar to the method embodiments, their descriptions are simplified, and for relevant parts, please refer to part of the description of the method embodiments.
  • the device, device, and computer-readable storage medium provided in the embodiments of the present application correspond to the method one-to-one. Therefore, the device, device, and computer-readable storage medium also have beneficial technical effects similar to their corresponding methods.
  • the beneficial technical effect of the method has been described in detail, therefore, the beneficial technical effect of the device, equipment and computer-readable storage medium will not be repeated here.
  • the embodiments of the present invention may be provided as methods, systems or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash random access memory
  • Computer-readable media including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information.
  • Information may be computer readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read only memory
  • EEPROM Electrically Erasable Programmable Read-

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

An applet plugin debugging method, comprising: when a target applet calls an applet plugin to be debugged, an application sending a first plugin debugging protocol packet to a debugging tool main process, wherein the target applet runs in an applet container starting a debugging function in the application; when a real device debugging window is switched to a target debugging panel, the real device debugging window obtaining the first plugin debugging protocol packet from the debugging tool main process, analyzing applet plugin calling information, and displaying same on the target debugging panel; when the real device debugging window initiates a plugin debugging operation for the target debugging panel, the real device debugging window pushing a second plugin debugging protocol packet to the application by means of a pre-established bidirectional communication channel; and the application entering a plugin debugging mode in response to the second plugin debugging protocol packet. By means of the method, more comprehensive and real plugin debugging can be provided.

Description

一种小程序插件调试方法、系统及计算机可读存储介质A small program plug-in debugging method, system and computer-readable storage medium
本申请要求于2021年12月17日提交的、申请号为202111553679.3、标题为“一种小程序插件调试方法、装置及计算机可读存储介质”的中国专利申请的优先权,该中国专利申请的公开内容以引用的方式并入本文。This application claims the priority of the Chinese patent application with application number 202111553679.3 and titled "A Small Program Plug-in Debugging Method, Device, and Computer-Readable Storage Medium" filed on December 17, 2021. The Chinese patent application The disclosure is incorporated herein by reference.
技术领域technical field
本发明属于调试领域,具体涉及一种小程序插件调试方法、装置及计算机可读存储介质。The invention belongs to the field of debugging, and in particular relates to a small program plug-in debugging method, device and computer-readable storage medium.
背景技术Background technique
本部分旨在为权利要求书中陈述的本发明的实施方式提供背景或上下文。此处的描述不因为包括在本部分中就承认是现有技术。This section is intended to provide a background or context for implementations of the invention that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section.
随着互联网的不断发展,小程序作为一种不需要下载安装即可使用的应用,为用户带来了新的使用体验,近两年,小程序已发展成为连接行业、服务用户的利器,在推动数字生活服务方面扮演了尤为重要的角色。With the continuous development of the Internet, small programs, as an application that can be used without downloading and installing, have brought new user experience to users. In the past two years, small programs have developed into a sharp tool for connecting industries and serving users. It has played a particularly important role in promoting digital life services.
然而,现有的小程序插件调试方案仍然存在一些局限性,比如业务逻辑及插件调用等调试通常是运行在调试工具中进行模拟的,并不是运行在生产版的应用程序中进行调试,从而无法全面且真实地进行调试。However, the existing applet plug-in debugging solutions still have some limitations. For example, the debugging of business logic and plug-in calls is usually run in the debugging tool for simulation, not in the production version of the application for debugging, so it cannot Debug comprehensively and realistically.
发明内容Contents of the invention
针对上述现有技术中存在的问题,提出了一种小程序插件调试方法、系统及计算机可读存储介质,利用这种方法、装置及计算机可读存储介质,能够解决上述问题。Aiming at the above-mentioned problems in the prior art, a small program plug-in debugging method, system and computer-readable storage medium are proposed, and the above-mentioned problems can be solved by using the method, device and computer-readable storage medium.
本发明提供了以下方案。The present invention provides the following solutions.
第一方面,提出一种小程序插件调试方法,包括:当目标小程序调用待调试小程序插件时,应用程序发送第一插件调试协议包至调试工具主进程,其中,目标小程序运行在应用程序中开启调试功能的小程序容器中;当真机调试窗口切换到目标调试面板时,真机调试窗口从调试工具主进程获取第一插件调试协议包并解析出小程序插件调用信息,并展示在目标调试面板;当真机调试窗口发起针对目标调试面板的插件调试操作时,真机调试窗口通过预先 建立的双向通信通道向应用程序推送第二插件调试协议包;应用程序响应于第二插件调试协议包进入插件调试模式。In the first aspect, a small program plug-in debugging method is proposed, including: when the target small program calls the plug-in of the small program to be debugged, the application program sends the first plug-in debugging protocol package to the main process of the debugging tool, wherein the target small program runs in the application In the applet container with the debugging function enabled in the program; when the real machine debugging window is switched to the target debugging panel, the real machine debugging window obtains the first plug-in debugging protocol package from the main process of the debugging tool and parses out the calling information of the small program plug-in, and displays it in Target debugging panel; when the real machine debugging window initiates a plug-in debugging operation for the target debugging panel, the real machine debugging window pushes the second plug-in debugging protocol package to the application through the pre-established two-way communication channel; the application responds to the second plug-in debugging protocol The package enters plugin debug mode.
在一些实施方式中,还包括建立双向通信通道的步骤,包括:调试工具主进程从一个或多个应用程序获取通过权限校验的一个或多个小程序的调试信息,调试信息包括:小程序标识、小程序容器调试服务端地址;调试工具渲染进程从调试工具主进程获取可调试小程序列表,可调试小程序列表包括一个或多个小程序的调试信息;In some implementations, it also includes the step of establishing a two-way communication channel, including: the main process of the debugging tool obtains debugging information of one or more applets that pass the authorization check from one or more application programs, and the debugging information includes: applets ID, applet container debugging server address; the debugging tool rendering process obtains the debuggable applet list from the debugging tool main process, and the debuggable applet list includes debugging information of one or more applets;
真机调试窗口从调试工具渲染进程获取可调试小程序列表中选中的目标小程序对应的小程序容器调试服务端地址;真机调试窗口作为小程序容器调试客户端连接至目标小程序对应的小程序容器调试服务端地址,以建立真机调试窗口与目标小程序所在应用程序之间的双向通信通道。The real machine debugging window obtains the address of the applet container debugging server corresponding to the target applet selected in the debuggable applet list from the debugging tool rendering process; the real machine debugging window connects to the applet corresponding to the target applet as the applet container debugging client. The address of the program container debugging server to establish a two-way communication channel between the real device debugging window and the application program where the target applet is located.
在一些实施方式中,还包括:应用程序和调试工具主进程之间通过封装的USB/ADB服务通道通信连接。In some implementation manners, it also includes: the communication connection between the application program and the main process of the debugging tool through an encapsulated USB/ADB service channel.
在一些实施方式中,第一插件调试协议包基于自定义插件调试协议格式构建,自定义插件调试协议格式包括:方法、请求和响应;其中,方法由主协议、插件名、插件动作组成;请求由请求ID、请求参数及参数值组成;响应由回调ID、响应参数及参数值组成。In some embodiments, the first plug-in debugging protocol package is constructed based on a custom plug-in debugging protocol format, and the custom plug-in debugging protocol format includes: method, request, and response; wherein, the method is composed of the main protocol, plug-in name, and plug-in action; request It consists of request ID, request parameters and parameter values; the response consists of callback ID, response parameters and parameter values.
在一些实施方式中,还包括:应用程序获取一个或多个小程序的小程序配置信息;并根据小程序配置信息进行权限校验;其中,权限校验包含以下中的一种或多种:校验小程序是否允许运行、校验小程序插件是否可使用、校验小程序调试权限是否开启。In some embodiments, it also includes: the application obtains the applet configuration information of one or more applets; and performs permission verification according to the applet configuration information; wherein, the permission verification includes one or more of the following: Verify whether the applet is allowed to run, verify whether the applet plug-in is available, and verify whether the debugging permission of the applet is enabled.
在一些实施方式中,双向通信通道是websocket通道,小程序容器调试服务端为websocket服务端,小程序容器调试客户端为websocket客户端。In some embodiments, the two-way communication channel is a websocket channel, the applet container debugging server is a websocket server, and the applet container debugging client is a websocket client.
在一些实施方式中,调试工具渲染进程通过进程间通信从调试工具主进程获取可调试小程序列表。In some implementation manners, the debugging tool rendering process obtains the list of debuggable applets from the debugging tool main process through inter-process communication.
在一些实施方式中,调试工具为基于Electron实现。In some implementations, the debugging tool is implemented based on Electron.
在一些实施方式中,真机调试窗口基于Chrome DevTools实现。In some implementation manners, the real device debugging window is implemented based on Chrome DevTools.
在一些实施方式中,当切换真机调试窗口时,基于双向通信通道发送切换第二插件调试协议包;应用程序拦截切换第二插件调试协议包,执行调度将相对应的小程序容器切换至前台。In some implementations, when the real machine debugging window is switched, the switching second plug-in debugging protocol packet is sent based on the two-way communication channel; the application program intercepts switching the second plug-in debugging protocol packet, and the execution schedule switches the corresponding applet container to the foreground .
第二方面,提供一种小程序插件调试系统,包括:应用程序、调试工具主进程和真机调试窗口;其中,目标小程序运行在应用程序中开启调试功能的小程序容器中;应用程序,用于当目标小程序调用待调试小程序插件时,发送第一插件调试协议包至调试工具主进程;真机调试窗口,用于当切换到目标调试面板时从调试工具主进程获取第一插件调试协议包并解 析出小程序插件调用信息,并展示在目标调试面板;还用于当发起针对目标调试面板的插件调试操作时,通过预先建立的双向通信通道向应用程序推送第二插件调试协议包;应用程序,用于响应于第二插件调试协议包进入插件调试模式。In the second aspect, a small program plug-in debugging system is provided, including: an application program, a debugging tool main process, and a real machine debugging window; wherein, the target applet runs in a small program container with a debugging function enabled in the application program; the application program, Used to send the first plug-in debugging protocol packet to the main process of the debugging tool when the target applet calls the plug-in of the applet to be debugged; the real device debugging window is used to obtain the first plug-in from the main process of the debugging tool when switching to the target debugging panel Debug the protocol package and parse out the calling information of the applet plug-in, and display it on the target debugging panel; it is also used to push the second plug-in debugging protocol to the application through the pre-established two-way communication channel when the plug-in debugging operation for the target debugging panel is initiated package; an application program for entering a plug-in debug mode in response to the second plug-in debug protocol packet.
第三方面,提供一种小程序插件调试装置,包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行:第一方面的方法。In a third aspect, there is provided a small program plug-in debugging device, including: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by at least one processor. A processor executes, so that at least one processor can execute: the method of the first aspect.
第四方面,提供一种计算机可读存储介质,计算机可读存储介质存储有程序,当程序被多核处理器执行时,使得多核处理器执行第一方面的方法。In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a program, and when the program is executed by a multi-core processor, the multi-core processor executes the method of the first aspect.
本申请实施例采用的上述至少一个技术方案能够达到以下有益效果:小程序插件均运行在生产版应用程序中进行调试,提供了更加全面真实的插件调试。The above at least one technical solution adopted in the embodiment of the present application can achieve the following beneficial effects: all applet plug-ins are run in the production version of the application program for debugging, providing more comprehensive and real plug-in debugging.
应当理解,上述说明仅是本发明技术方案的概述,以便能够更清楚地了解本发明的技术手段,从而可依照说明书的内容予以实施。为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举例说明本发明的具体实施方式。It should be understood that the above description is only an overview of the technical solution of the present invention, so as to understand the technical means of the present invention more clearly, and thus implement it according to the contents of the description. In order to make the above and other objects, features and advantages of the present invention more comprehensible, specific embodiments of the present invention are illustrated below.
附图说明Description of drawings
通过阅读下文的示例性实施例的详细描述,本领域普通技术人员将明白本文的优点和益处以及其他优点和益处。附图仅用于示出示例性实施例的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的标号表示相同的部件。在附图中:The advantages and benefits herein, as well as other advantages and benefits, will be apparent to those of ordinary skill in the art upon reading the following detailed description of the exemplary embodiments. The drawings are only for the purpose of illustrating exemplary embodiments and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to denote the same parts. In the attached picture:
图1为根据本发明一实施例的小程序插件调试方法的流程示意图;FIG. 1 is a schematic flowchart of a method for debugging a plug-in of a small program according to an embodiment of the present invention;
图2为根据本发明一实施例的小程序插件调试系统的结构示意图;FIG. 2 is a schematic structural diagram of a small program plug-in debugging system according to an embodiment of the present invention;
图3为根据本发明一实施例的小程序插件调试方法的交互示意图;FIG. 3 is an interactive schematic diagram of a method for debugging a plug-in of a small program according to an embodiment of the present invention;
图4为根据本发明另一实施例的小程序插件调试方法的流程示意图;FIG. 4 is a schematic flowchart of a method for debugging a plug-in of a small program according to another embodiment of the present invention;
图5为根据本发明又一实施例的小程序插件调试装置的结构示意图。Fig. 5 is a schematic structural diagram of an apparatus for debugging plug-in applets according to yet another embodiment of the present invention.
在附图中,相同或对应的标号表示相同或对应的部分。In the drawings, the same or corresponding reference numerals denote the same or corresponding parts.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
在本申请实施例的描述中,应理解,诸如“包括”或“具有”等术语旨在指示本说明书中所公开的特征、数字、步骤、行为、部件、部分或其组合的存在,并且不旨在排除一个或多个其他特征、数字、步骤、行为、部件、部分或其组合存在的可能性。In the description of the embodiments of the present application, it should be understood that terms such as "comprising" or "having" are intended to indicate the existence of the features, numbers, steps, acts, components, parts or combinations thereof disclosed in the specification, and do not It is intended to exclude the possibility of the existence of one or more other features, figures, steps, acts, parts, parts or combinations thereof.
除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。Unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in this article is just an association relationship describing associated objects, indicating that there can be three relationships, For example, A and/or B may mean that A exists alone, A and B exist simultaneously, and B exists alone.
术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”等的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。The terms "first", "second", etc. are used for descriptive purposes only, and should not be understood as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first", "second", etc. may expressly or implicitly include one or more of that feature. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
本申请中的所有代码都是示例性的,本领域技术人员根据所使用的编程语言,具体的需求和个人习惯等因素会在不脱离本申请的思想的条件下想到各种变型。All codes in this application are exemplary, and those skilled in the art will think of various modifications without departing from the idea of this application according to factors such as the programming language used, specific requirements, and personal habits.
另外还需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。In addition, it should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and examples.
图1为根据本申请一实施例的一种小程序插件调试方法的流程示意图,用于实时对小程序插件进行调试,在该流程中,从设备角度而言,执行主体可以是一个或者多个电子设备;从程序角度而言,执行主体相应地可以是搭载于这些电子设备上的程序。Fig. 1 is a schematic flowchart of a small program plug-in debugging method according to an embodiment of the present application, which is used to debug the small program plug-in in real time. In this process, from the perspective of equipment, the execution subject may be one or more Electronic equipment; from a program perspective, the execution subject may be a program carried on these electronic equipment.
如图1所示,本实施例提供的方法可以包括以下步骤:As shown in Figure 1, the method provided in this embodiment may include the following steps:
S101、目标小程序调用待调试小程序插件时,应用程序发送第一插件调试协议包至调试工具主进程;S101. When the target applet calls the plug-in of the applet to be debugged, the application program sends the first plug-in debugging protocol package to the main process of the debugging tool;
其中,该目标小程序运行在应用程序中开启调试功能的小程序容器中。Wherein, the target applet runs in an applet container with a debugging function enabled in the application program.
具体地,可以通过应用程序和调试工具之间的服务通道实现第一插件调试协议包的传递。Specifically, the delivery of the first plug-in debugging protocol package can be realized through the service channel between the application program and the debugging tool.
在一些实施方式中,应用程序和调试工具主进程之间可以通过封装的USB/ADB服务通道实现通信连接。可选地,应用程序和调试工具主进程之间也可以通过网络服务通实现道通信连接。In some implementation manners, the communication connection between the application program and the main process of the debugging tool can be implemented through an encapsulated USB/ADB service channel. Optionally, the communication connection between the application program and the main process of the debugging tool may also be implemented through a network service channel.
具体地,USB(Universal Serial Bus通用串行总线)用于苹果或安卓等设备与电脑等桌面设备之间进行数据通信。ADB(Android Debug Bridge,安卓调试桥)是一个客户端-服务器端程序,其中客户端是用来操作的电脑,服务器端是安卓设备。Specifically, USB (Universal Serial Bus) is used for data communication between devices such as Apple or Android and desktop devices such as computers. ADB (Android Debug Bridge, Android Debug Bridge) is a client-server program, in which the client is the computer used for operation, and the server is the Android device.
第一插件调试协议包是指基于自定义插件调试协议格式构建的包含小程序调用信息的数据包。The first plug-in debugging protocol package refers to a data package that includes applet calling information constructed based on a custom plug-in debugging protocol format.
在一些实施方式中,自定义插件调试协议格式包括:方法、请求和响应;其中,方法由主协议、插件名、插件动作组成;请求由请求ID、请求参数及参数值组成;响应由回调ID、响应参数及参数值组成。In some implementations, the custom plug-in debugging protocol format includes: method, request, and response; wherein, the method is composed of the main protocol, plug-in name, and plug-in action; the request is composed of request ID, request parameters and parameter values; the response is composed of callback ID , response parameters and parameter values.
例如,插件调试协议格式如下所示,包含Method、Request、Response三部分。其中Method由:[主协议.插件名.插件动作]组成。Request由:reqId(请求Id,递增生成)和具体的请求参数及参数值。Response由callbackId(回调Id,值同请求Id)和具体的响应参数及参数值。For example, the plug-in debugging protocol format is as follows, including Method, Request, and Response. Among them, Method consists of: [main agreement. Plug-in name. Plug-in action]. Request consists of: reqId (request Id, incrementally generated) and specific request parameters and parameter values. Response consists of callbackId (callback Id, the value is the same as the request Id) and specific response parameters and parameter values.
S102、当真机调试窗口切换到目标调试面板时,真机调试窗口从调试工具主进程获取第一插件调试协议包并解析出小程序插件调用信息,并展示在目标调试面板;S102. When the real machine debugging window is switched to the target debugging panel, the real machine debugging window obtains the first plug-in debugging protocol package from the main process of the debugging tool, parses out the applet plug-in calling information, and displays it on the target debugging panel;
可以理解,调试工具主进程可以在获取该第一插件调试协议包之后进行存储,而只有当真机调试窗口切换到针对该插件调试的目标调试面板时,真机调试窗口才需要从存储服务中获取该第一插件调试协议包并解析获得小程序插件调用信息并展示在真机调试窗口中,从而开发者可以根据展示的小程序插件调用信息并在目标调试面板中触发生成插件调试操作,比如设置断点等。上述目标调试面板是针对插件调试而对应预设的面板。例如,如果第一插件调试协议包中的主协议是cordova则展示在cordova面板中,如果主协议是jsbridge则展示在jsbridge面板中。It can be understood that the main process of the debugging tool can store after obtaining the first plug-in debugging protocol package, and only when the real-device debugging window is switched to the target debugging panel for debugging the plug-in, the real-device debugging window needs to obtain it from the storage service. The first plug-in debugging protocol package is parsed to obtain the calling information of the applet plug-in and displayed in the real machine debugging window, so that the developer can trigger the generated plug-in debugging operation in the target debugging panel according to the displayed applet plug-in calling information, such as setting breakpoints etc. The target debugging panel above is a preset panel for plug-in debugging. For example, if the main protocol in the first plug-in debugging protocol package is cordova, it will be displayed in the cordova panel, and if the main protocol is jsbridge, it will be displayed in the jsbridge panel.
S103、当真机调试窗口发起针对目标调试面板的插件调试操作时,真机调试窗口通过预先建立的双向通信通道向应用程序推送第二插件调试协议包;S103. When the real machine debugging window initiates a plug-in debugging operation for the target debugging panel, the real machine debugging window pushes the second plug-in debugging protocol package to the application through the pre-established two-way communication channel;
可以理解,第二插件调试协议包是指基于自定义的插件调试协议格式并根据插件调试操作而生成的数据包。由于在真机调试窗口和应用程序中运行该目标小程序的小程序容器之间预先已经建立好双向通信通道作为调试通道,可以实现目标小程序的各类调试。It can be understood that the second plug-in debugging protocol package refers to a data packet based on a custom plug-in debugging protocol format and generated according to a plug-in debugging operation. Since a two-way communication channel has been established in advance as a debugging channel between the real machine debugging window and the applet container running the target applet in the application program, various debugging of the target applet can be realized.
在一些实施方式中,双向通信通道可以是websocket通道,小程序容器调试服务端为websocket服务端,小程序容器调试客户端为websocket客户端。In some implementation manners, the two-way communication channel may be a websocket channel, the applet container debugging server is a websocket server, and the applet container debugging client is a websocket client.
S104、应用程序响应于第二插件调试协议包进入插件调试模式。S104. The application program enters a plug-in debugging mode in response to the second plug-in debugging protocol package.
其中,应用程序可以被配置为接收到具有插件调试协议格式的数据包之后就会进入插件调试模式,如此应用程序可以响应于第二插件调试协议包进入插件调试模式。Wherein, the application program can be configured to enter the plug-in debugging mode after receiving the data packet having the format of the plug-in debugging protocol, so that the application program can enter the plug-in debugging mode in response to the second plug-in debugging protocol packet.
图2示出了执行上述S101-104的示例性调试环境;其中,应用程序中目标小程序对应的小程序容器与真机调试窗口之间通过websocket通道实现双向通信连接,应用程序和调试工具主进程之间通过USB/ADB服务通道实现双向通信连接,调试工具主进程和调试工具渲染进程之间通过进程间通信实现通信连接,调试工具主进程、调试工具渲染进程和真机调试窗口之间通过本地存储服务实现通信连接。Fig. 2 shows an exemplary debugging environment for executing the above S101-104; wherein, the applet container corresponding to the target applet in the application program and the debugging window of the real machine realize a two-way communication connection through a websocket channel, and the application program and the debugging tool host The two-way communication connection is realized between the processes through the USB/ADB service channel, the communication connection is realized between the main process of the debugging tool and the rendering process of the debugging tool through inter-process communication, and the main process of the debugging tool, the rendering process of the debugging tool and the debugging window of the real machine are passed The local storage service realizes the communication connection.
如图3所示,示出了基于本申请实施例的示例性交互图,以下结合图2对图3进行详细描述。As shown in FIG. 3 , an exemplary interaction diagram based on the embodiment of the present application is shown, and FIG. 3 will be described in detail below in conjunction with FIG. 2 .
S101a、目标小程序调用待调试小程序插件;S101b、目标小程序所在应用程序通过USB/ADB服务通道发送第一插件调试协议包至调试工具主进程;S102a、当真机调试窗口切换到目标调试面板时,真机调试窗口通过本地存储服务从调试工具主进程获取第一插件调试协议包;S102b、真机调试窗口解析出小程序插件调用信息;S102c、真机调试窗口在目标调试面板展示该小程序插件调用信息,以供开发者进行调试;S103a、真机调试窗口发起针对目标调试面板的插件调试操作;S103b、真机调试窗口通过预先建立的websocket通道向应用程序推送第二插件调试协议包;S104、应用程序响应于第二插件调试协议包进入针对该目标小程序的插件调试模式。S101a, the target applet calls the plug-in of the applet to be debugged; S101b, the application where the target applet is located sends the first plug-in debugging protocol package to the main process of the debugging tool through the USB/ADB service channel; S102a, when the real machine debugging window is switched to the target debugging panel , the real machine debugging window obtains the first plug-in debugging protocol package from the main process of the debugging tool through the local storage service; S102b, the real machine debugging window parses out the plug-in calling information of the applet; S102c, the real machine debugging window displays the applet on the target debugging panel Program plug-in calling information for developers to debug; S103a, the real machine debugging window initiates a plug-in debugging operation for the target debugging panel; S103b, the real machine debugging window pushes the second plug-in debugging protocol package to the application through the pre-established websocket channel ; S104. The application program enters the plug-in debugging mode for the target applet in response to the second plug-in debugging protocol package.
如图4所示,示出了如何建立上述双向通信通道的步骤,以下结合图4详细描述,As shown in Figure 4, it shows the steps of how to establish the above-mentioned two-way communication channel, which will be described in detail below in conjunction with Figure 4,
建立上述双向通信通道包括:Establishing the above two-way communication channel includes:
S201、调试工具主进程从一个或多个应用程序获取通过权限校验的一个或多个小程序的调试信息;S201. The main process of the debugging tool obtains the debugging information of one or more applets that pass the permission verification from one or more applications;
其中,通过权限校验的小程序运行在应用程序中开启调试功能的小程序容器中。调试信息包括:小程序标识、小程序容器调试服务端地址。例如,小程序标识可以是小程序页面地址、小程序标题等。Among them, the applet that passes the permission verification runs in the applet container with the debugging function enabled in the application. The debugging information includes: applet ID, applet container debugging server address. For example, the applet identifier may be the applet page address, the applet title, and the like.
S202、调试工具渲染进程从调试工具主进程获取可调试小程序列表。S202. The debugging tool rendering process acquires a debuggable applet list from the debugging tool main process.
其中,可调试小程序列表包括一个或多个小程序的调试信息。例如,列表中每项均包含小程序页面地址、标题、小程序容器调试服务端地址等调试信息Wherein, the debuggable applet list includes debugging information of one or more applets. For example, each item in the list contains debugging information such as the applet page address, title, and the address of the debugging server of the applet container
S203、真机调试窗口从调试工具渲染进程获取可调试小程序列表中选中的目标小程序对应的小程序容器调试服务端地址;S203. The real machine debugging window obtains the address of the debugging server of the applet container corresponding to the target applet selected in the list of debuggable applets from the debugging tool rendering process;
其中,调试工具渲染进程将上述可调试小程序列表展示,开发者可以通过触发动作选中希望进行调试的目标小程序,并通知真机调试窗口,真机调试窗口由此可以从调试工具渲染进程处获得该目标小程序对应的小程序容器调试服务端地址。Among them, the debugging tool rendering process displays the list of the above-mentioned debuggable applets, and the developer can select the target applet to be debugged through the trigger action, and notify the real device debugging window, so that the real device debugging window can start from the debugging tool rendering process Obtain the address of the applet container debugging server corresponding to the target applet.
S204、真机调试窗口作为小程序容器调试客户端连接至目标小程序对应的小程序容器调试服务端地址,以建立真机调试窗口与目标小程序所在应用程序之间的双向通信通道。S204. The real-device debugging window serves as the applet container debugging client to connect to the address of the applet container debugging server corresponding to the target applet, so as to establish a two-way communication channel between the real-device debugging window and the application where the target applet is located.
例如,当执行上述S201-S204之后,即可获得图2所示出的示例性调试环境。For example, after performing the above S201-S204, the exemplary debugging environment shown in FIG. 2 can be obtained.
可选地,除支持小程序插件调试外,基于上述步骤201-204创建的调试环境还可以支持小程序页面、网络请求、web存储等调试功能,支持同时调试多个小程序,提供了更加灵活高效的多实例插件调试。Optionally, in addition to supporting debugging of applet plug-ins, the debugging environment created based on the above steps 201-204 can also support debugging functions such as applet pages, network requests, and web storage, and supports simultaneous debugging of multiple applets, providing more flexible Efficient multi-instance plugin debugging.
在一些实施方式中,在上述S201之前,为了进行小程序安全管控,还可以执行如下步骤:In some implementation manners, before the above S201, in order to perform security management and control of the applet, the following steps may also be performed:
应用程序获取一个或多个小程序的小程序配置信息;并根据所程序配置信息进行权限校验;其中,权限校验包含以下中的一种或多种:校验小程序是否允许运行、校验小程序插件是否可使用、校验小程序调试权限是否开启。The application program obtains the applet configuration information of one or more applets; and performs permission verification according to the configuration information of the programs; wherein, the permission verification includes one or more of the following: verifying whether the applet is allowed to run, calibrating Check whether the applet plug-in can be used, and verify whether the debugging permission of the applet is enabled.
进一步地,如果小程序通过上述权限校验,即可在开启了调试功能的小程序容器中运行该小程序,以供后续进行调试。Further, if the applet passes the above permission verification, the applet can be run in the applet container with the debugging function enabled for subsequent debugging.
在一些实施方式中,调试工具为基于Electron实现。调试工具包括调试工具主进程和调试工具渲染进程。In some implementations, the debugging tool is implemented based on Electron. The debugging tool includes a debugging tool main process and a debugging tool rendering process.
在一些实施方式中,真机调试窗口基于Chrome DevTools实现。In some implementation manners, the real device debugging window is implemented based on Chrome DevTools.
在一些实施方式中,当切换真机调试窗口时,基于双向通信通道发送切换第二插件调试协议包;应用程序拦截切换第二插件调试协议包,执行调度将相对应的小程序容器切换至前台。In some implementations, when the real machine debugging window is switched, the switching second plug-in debugging protocol packet is sent based on the two-way communication channel; the application program intercepts switching the second plug-in debugging protocol packet, and the execution schedule switches the corresponding applet container to the foreground .
本申请上述实施例提出的一种小程序插件调试方法,提供了跨端的、实时的、安全的、支持全面的、无侵入性的、网络依赖少的、支持多实例的小程序插件调试。小程序插件均运行在生产版应用程序中,提供了更加全面真实的插件调试。并且无需小程序源码部署在特定平台中,且源码也不需要做任何改造,提供了更安全可控的方案,适用于安全等级要求高的金融行业等领域。A small program plug-in debugging method proposed in the above embodiments of the present application provides cross-terminal, real-time, safe, comprehensive support, non-intrusive, less network dependency, and supports multiple instances of small program plug-in debugging. The applet plug-ins all run in the production version of the application, providing a more comprehensive and real plug-in debugging. And there is no need to deploy the source code of the applet on a specific platform, and the source code does not need to be modified in any way, providing a more secure and controllable solution, which is suitable for fields such as the financial industry with high security requirements.
在本说明书的描述中,参考术语“一些可能的实施方式”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "some possible implementations", "some embodiments", "examples", "specific examples", or "some examples" mean that the descriptions described in conjunction with the embodiments or examples A particular feature, structure, material, or characteristic is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并 且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.
关于本申请实施例的方法流程图,将某些操作描述为以一定顺序执行的不同的步骤。这样的流程图属于说明性的而非限制性的。可以将在本文中所描述的某些步骤分组在一起并且在单个操作中执行、可以将某些步骤分割成多个子步骤、并且可以以不同于在本文中所示出的顺序来执行某些步骤。可以由任何电路结构和/或有形机制(例如,由在计算机设备上运行的软件、硬件(例如,处理器或芯片实现的逻辑功能)等、和/或其任何组合)以任何方式来实现在流程图中所示出的各个步骤。Regarding the method flow chart of the embodiment of the present application, certain operations are described as different steps performed in a certain order. Such flowcharts are illustrative and not restrictive. Certain steps described herein can be grouped together and performed in a single operation, can be divided into multiple sub-steps, and can be performed in an order different than that shown herein . It can be implemented in any way by any circuit structure and/or tangible mechanism (for example, by software running on a computer device, hardware (for example, logical functions implemented by a processor or a chip), etc., and/or any combination thereof). The individual steps shown in the flowchart.
基于相同的技术构思,本发明实施例还提供一种小程序插件调试系统,用于执行上述任一实施例所提供的小程序插件调试方法。图2为本发明实施例提供的一种小程序插件调试系统示意图。Based on the same technical concept, an embodiment of the present invention further provides a small program plug-in debugging system, which is used to execute the small program plug-in debugging method provided in any one of the above embodiments. FIG. 2 is a schematic diagram of a small program plug-in debugging system provided by an embodiment of the present invention.
其包括:应用程序、调试工具主进程、调试工具渲染进程和真机调试窗口;其中,目标小程序运行在所述应用程序中开启调试功能的小程序容器中;所述应用程序,用于当所述目标小程序调用待调试小程序插件时,发送第一插件调试协议包至所述调试工具主进程;所述真机调试窗口,用于当切换到目标调试面板时从所述调试工具主进程获取所述第一插件调试协议包并解析出小程序插件调用信息,并展示在所述目标调试面板;还用于当发起针对所述目标调试面板的插件调试操作时,通过预先建立的双向通信通道向所述应用程序推送第二插件调试协议包;所述应用程序,用于响应于所述第二插件调试协议包进入插件调试模式。It includes: the application program, the main process of the debugging tool, the rendering process of the debugging tool, and the real machine debugging window; wherein, the target applet runs in the applet container with the debugging function enabled in the application program; the application program is used for When the target applet calls the plug-in of the applet to be debugged, it sends the first plug-in debugging protocol package to the main process of the debugging tool; The process obtains the first plug-in debugging protocol package and parses out the calling information of the applet plug-in, and displays it on the target debugging panel; it is also used for when the plug-in debugging operation for the target debugging panel is initiated, through the pre-established two-way The communication channel pushes a second plug-in debugging protocol package to the application program; the application program is configured to enter a plug-in debugging mode in response to the second plug-in debugging protocol package.
需要说明的是,本申请实施例中的系统可以实现前述方法的实施例的各个过程,并达到相同的效果和功能,这里不再赘述。It should be noted that the system in the embodiment of the present application can realize each process of the foregoing method embodiment, and achieve the same effect and function, which will not be repeated here.
图5为根据本申请一实施例的小程序插件调试装置,用于执行图1所示出的小程序插件调试方法,该装置包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述实施例所述的方法。Fig. 5 is a small program plug-in debugging device according to an embodiment of the present application, which is used to execute the small program plug-in debugging method shown in Fig. 1 , the device includes: at least one processor; and, communicated with at least one processor A memory; wherein, the memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor, so that the at least one processor can execute the methods described in the above-mentioned embodiments.
根据本申请的一些实施例,提供了小程序插件调试方法的非易失性计算机存储介质,其上存储有计算机可执行指令,该计算机可执行指令设置为在由处理器运行时执行:上述实施例所述的方法。According to some embodiments of the present application, there is provided a non-volatile computer storage medium of a small program plug-in debugging method, on which computer executable instructions are stored, and the computer executable instructions are configured to be executed when run by a processor: the above implementation The method described in the example.
本申请中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、设备和 计算机可读存储介质实施例而言,由于其基本相似于方法实施例,所以其描述进行了简化,相关之处可参见方法实施例的部分说明即可。Each embodiment in the present application is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus, equipment, and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, their descriptions are simplified, and for relevant parts, please refer to part of the description of the method embodiments.
本申请实施例提供的装置、设备和计算机可读存储介质与方法是一一对应的,因此,装置、设备和计算机可读存储介质也具有与其对应的方法类似的有益技术效果,由于上面已经对方法的有益技术效果进行了详细说明,因此,这里不再赘述装置、设备和计算机可读存储介质的有益技术效果。The device, device, and computer-readable storage medium provided in the embodiments of the present application correspond to the method one-to-one. Therefore, the device, device, and computer-readable storage medium also have beneficial technical effects similar to their corresponding methods. The beneficial technical effect of the method has been described in detail, therefore, the beneficial technical effect of the device, equipment and computer-readable storage medium will not be repeated here.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算 机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。此外,尽管在附图中以特定顺序描述了本发明方法的操作,但是,这并非要求或者暗示必须按照该特定顺序来执行这些操作,或是必须执行全部所示的操作才能实现期望的结果。附加地或备选地,可以省略某些步骤,将多个步骤合并为一个步骤执行,和/或将一个步骤分解为多个步骤执行。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. In addition, while operations of the methods of the present invention are depicted in the figures in a particular order, there is no requirement or implication that these operations must be performed in that particular order, or that all illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution.
虽然已经参考若干具体实施方式描述了本发明的精神和原理,但是应该理解,本发明并不限于所公开的具体实施方式,对各方面的划分也不意味着这些方面中的特征不能组合以进行受益,这种划分仅是为了表述的方便。本发明旨在涵盖所附权利要求的精神和范围内所包括的各种修改和等同布置。Although the spirit and principles of the invention have been described with reference to a number of specific embodiments, it should be understood that the invention is not limited to the specific embodiments disclosed, nor does division of aspects imply that features in these aspects cannot be combined to achieve optimal performance. Benefit, this division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (13)

  1. 一种小程序插件调试方法,包括:A small program plug-in debugging method, comprising:
    当目标小程序调用待调试小程序插件时,应用程序发送第一插件调试协议包至调试工具主进程,其中,所述目标小程序运行在所述应用程序中开启调试功能的小程序容器中;When the target applet calls the plug-in of the applet to be debugged, the application sends the first plug-in debugging protocol package to the main process of the debugging tool, wherein the target applet runs in the applet container with the debugging function enabled in the application;
    当真机调试窗口切换到目标调试面板时,所述真机调试窗口从所述调试工具主进程获取所述第一插件调试协议包并解析出小程序插件调用信息,并展示在所述目标调试面板;When the real machine debugging window is switched to the target debugging panel, the real machine debugging window obtains the first plug-in debugging protocol package from the main process of the debugging tool and parses out the applet plug-in calling information, and displays it on the target debugging panel ;
    当所述真机调试窗口发起针对所述目标调试面板的插件调试操作时,所述真机调试窗口通过预先建立的双向通信通道向所述应用程序推送第二插件调试协议包;When the real machine debugging window initiates a plug-in debugging operation for the target debugging panel, the real machine debugging window pushes a second plug-in debugging protocol package to the application through a pre-established two-way communication channel;
    所述应用程序响应于所述第二插件调试协议包进入插件调试模式。The application program enters a plug-in debugging mode in response to the second plug-in debugging protocol packet.
  2. 根据权利要求1所述的方法,其中,还包括建立所述双向通信通道的步骤,包括:The method according to claim 1, further comprising the step of establishing the two-way communication channel, comprising:
    所述调试工具主进程从一个或多个应用程序获取通过权限校验的一个或多个小程序的调试信息,所述调试信息包括:小程序标识、小程序容器调试服务端地址;The main process of the debugging tool obtains the debugging information of one or more applets that have passed the permission verification from one or more application programs, and the debugging information includes: applet identification, applet container debugging server address;
    所述调试工具渲染进程从所述调试工具主进程获取可调试小程序列表,所述可调试小程序列表包括一个或多个小程序的所述调试信息;The debugging tool rendering process obtains a debuggable applet list from the debugging tool main process, and the debuggable applet list includes the debugging information of one or more applets;
    所述真机调试窗口从所述调试工具渲染进程获取所述可调试小程序列表中选中的所述目标小程序对应的所述小程序容器调试服务端地址;The real machine debugging window obtains the address of the applet container debugging server corresponding to the target applet selected in the list of debuggable applets from the debugging tool rendering process;
    所述真机调试窗口作为小程序容器调试客户端连接至所述目标小程序对应的所述小程序容器调试服务端地址,以建立所述真机调试窗口与所述目标小程序所在应用程序之间的双向通信通道。The real machine debugging window is connected to the address of the applet container debugging server corresponding to the target applet as the applet container debugging client, so as to establish a connection between the real machine debugging window and the application where the target applet is located. Two-way communication channel between.
  3. 根据权利要求1或2所述的方法,其中,还包括:The method according to claim 1 or 2, further comprising:
    所述应用程序和所述调试工具主进程之间通过封装的USB/ADB服务通道通信连接。The application program is communicated with the main process of the debugging tool through an encapsulated USB/ADB service channel.
  4. 根据权利要求1-3中任一项所述的方法,其中,所述第一插件调试协议包基于自定义插件调试协议格式构建,所述自定义插件调试协议格式包括:方法、请求和响应;其中,The method according to any one of claims 1-3, wherein the first plug-in debugging protocol package is constructed based on a custom plug-in debugging protocol format, and the custom plug-in debugging protocol format includes: method, request and response; in,
    所述方法由主协议、插件名、插件动作组成;所述请求由请求ID、请求参数及参数值组成;所述响应由回调ID、响应参数及参数值组成。The method is composed of a main protocol, a plug-in name, and a plug-in action; the request is composed of a request ID, a request parameter and a parameter value; the response is composed of a callback ID, a response parameter and a parameter value.
  5. 根据权利要求2-4中任一项所述的方法,其中,还包括:The method according to any one of claims 2-4, further comprising:
    所述应用程序获取一个或多个小程序的小程序配置信息;并根据所述小程序配置信息进行权限校验;The application obtains the applet configuration information of one or more applets; and performs permission verification according to the applet configuration information;
    其中,所述权限校验包含以下中的一种或多种:校验小程序是否允许运行、校验小程序插件是否可使用、校验小程序调试权限是否开启。Wherein, the authority verification includes one or more of the following: verifying whether the applet is allowed to run, verifying whether the applet plug-in is available, and verifying whether the debugging authority of the applet is enabled.
  6. 根据权利要求1-5中任一项所述的方法,其中,所述双向通信通道是websocket通道,所述小程序容器调试服务端为websocket服务端,所述小程序容器调试客户端为websocket客户端。The method according to any one of claims 1-5, wherein the two-way communication channel is a websocket channel, the applet container debugging server is a websocket server, and the applet container debugging client is a websocket client end.
  7. 根据权利要求1-5中任一项所述的方法,其中,所述调试工具渲染进程通过进程间通信从所述调试工具主进程获取可调试小程序列表。The method according to any one of claims 1-5, wherein the debugging tool rendering process obtains the list of debuggable applets from the debugging tool main process through inter-process communication.
  8. 根据权利要求1-7中任一项所述的方法,其中,所述调试工具为基于Electron实现。The method according to any one of claims 1-7, wherein the debugging tool is implemented based on Electron.
  9. 根据权利要求1-8中任一项所述的方法,其中,所述真机调试窗口基于Chrome DevTools实现。The method according to any one of claims 1-8, wherein the real machine debugging window is implemented based on Chrome DevTools.
  10. 根据权利要求1-9中任一项所述的方法,其中,当切换真机调试窗口时,基于所述双向通信通道发送切换第二插件调试协议包;应用程序拦截切换第二插件调试协议包,执行调度将相对应的小程序容器切换至前台。The method according to any one of claims 1-9, wherein, when the real machine debugging window is switched, the second plug-in debugging protocol packet is sent and switched based on the two-way communication channel; the application program intercepts and switches the second plug-in debugging protocol packet , execute scheduling to switch the corresponding applet container to the foreground.
  11. 一种小程序插件调试系统,包括:应用程序、调试工具主进程和真机调试窗口;其中,目标小程序运行在所述应用程序中开启调试功能的小程序容器中;A small program plug-in debugging system, including: an application program, a main process of a debugging tool, and a real machine debugging window; wherein, the target small program runs in a small program container with a debugging function enabled in the application program;
    所述应用程序,用于当所述目标小程序调用待调试小程序插件时,发送第一插件调试协议包至所述调试工具主进程;The application program is configured to send a first plug-in debugging protocol packet to the main process of the debugging tool when the target applet calls the plug-in of the applet to be debugged;
    所述真机调试窗口,用于当切换到目标调试面板时从所述调试工具主进程获取所述第一插件调试协议包并解析出小程序插件调用信息,并展示在所述目标调试面板;还用于当发起针对所述目标调试面板的插件调试操作时,通过预先建立的双向通信通道向所述应用程序推送第二插件调试协议包;The real machine debugging window is used to obtain the first plug-in debugging protocol package from the main process of the debugging tool when switching to the target debugging panel, parse out the applet plug-in call information, and display it on the target debugging panel; It is also used to push the second plug-in debugging protocol package to the application program through the pre-established two-way communication channel when the plug-in debugging operation for the target debugging panel is initiated;
    所述应用程序,用于响应于所述第二插件调试协议包进入插件调试模式。The application program is configured to enter a plug-in debugging mode in response to the second plug-in debugging protocol packet.
  12. 一种小程序插件调试装置,包括:A small program plug-in debugging device, comprising:
    至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行:如权利要求1-10中任一项所述的方法。At least one processor; and, a memory connected in communication with the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can perform: as The method of any one of claims 1-10.
  13. 一种计算机可读存储介质,所述计算机可读存储介质存储有程序,当所述程序被多核处理器执行时,使得所述多核处理器执行如权利要求1-10中任一项所述的方法。A computer-readable storage medium, the computer-readable storage medium stores a program, and when the program is executed by a multi-core processor, the multi-core processor executes the method described in any one of claims 1-10 method.
PCT/CN2022/117422 2021-12-17 2022-09-07 Applet plugin debugging method and system, and computer readable storage medium WO2023109202A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111553679.3 2021-12-17
CN202111553679.3A CN114328197A (en) 2021-12-17 2021-12-17 Applet plug-in debugging method, system and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2023109202A1 true WO2023109202A1 (en) 2023-06-22

Family

ID=81051954

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/117422 WO2023109202A1 (en) 2021-12-17 2022-09-07 Applet plugin debugging method and system, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN114328197A (en)
WO (1) WO2023109202A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116520815A (en) * 2023-07-03 2023-08-01 合众新能源汽车股份有限公司 Remote diagnosis method, device, computer equipment and storage medium
CN117056994A (en) * 2023-08-14 2023-11-14 新天绿色能源股份有限公司 Data processing system for big data modeling

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114328197A (en) * 2021-12-17 2022-04-12 中国银联股份有限公司 Applet plug-in debugging method, system and computer readable storage medium
CN117076159B (en) * 2023-10-10 2024-01-05 统信软件技术有限公司 Plug-in calling method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032512A (en) * 2019-03-28 2019-07-19 腾讯科技(深圳)有限公司 A kind of adjustment method of small routine, relevant device and terminal
CN112783748A (en) * 2019-11-06 2021-05-11 腾讯科技(深圳)有限公司 Program debugging method, device, equipment and computer readable storage medium
US20210271589A1 (en) * 2020-02-28 2021-09-02 Sap Se Application Debugging
CN114328197A (en) * 2021-12-17 2022-04-12 中国银联股份有限公司 Applet plug-in debugging method, system and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032512A (en) * 2019-03-28 2019-07-19 腾讯科技(深圳)有限公司 A kind of adjustment method of small routine, relevant device and terminal
CN112783748A (en) * 2019-11-06 2021-05-11 腾讯科技(深圳)有限公司 Program debugging method, device, equipment and computer readable storage medium
US20210271589A1 (en) * 2020-02-28 2021-09-02 Sap Se Application Debugging
CN114328197A (en) * 2021-12-17 2022-04-12 中国银联股份有限公司 Applet plug-in debugging method, system and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116520815A (en) * 2023-07-03 2023-08-01 合众新能源汽车股份有限公司 Remote diagnosis method, device, computer equipment and storage medium
CN116520815B (en) * 2023-07-03 2023-10-17 合众新能源汽车股份有限公司 Remote diagnosis method, device, computer equipment and storage medium
CN117056994A (en) * 2023-08-14 2023-11-14 新天绿色能源股份有限公司 Data processing system for big data modeling
CN117056994B (en) * 2023-08-14 2024-05-17 新天绿色能源股份有限公司 Data processing system for big data modeling

Also Published As

Publication number Publication date
CN114328197A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
WO2023109202A1 (en) Applet plugin debugging method and system, and computer readable storage medium
WO2018228211A1 (en) Application conversion method, apparatus and device
CN108694117B (en) Method and device for managing test environment based on container technology
WO2018103521A1 (en) Monitoring method for server, device, and storage medium
US10339332B1 (en) Containerized build steps
US10209968B2 (en) Application compiling
US20140372985A1 (en) API Rules Verification Platform
US10346295B2 (en) Traffic replay to detect interface changes
CN114253535A (en) H5 page multi-language rendering method and device
US9122793B2 (en) Distributed debugging of an application in a distributed computing environment
US8938712B2 (en) Cross-platform virtual machine and method
US20210271493A1 (en) Remote Component Loader
US10404568B2 (en) Agent manager for distributed transaction monitoring system
US20170124306A1 (en) Method and apparatus for preventing application from being deciphered
WO2016095570A1 (en) Debugging method and apparatus for embedded system, and storage medium
CN104375938A (en) Dynamic behavior monitoring method and system for Android application program
US11593103B1 (en) Anti-pattern detection in extraction and deployment of a microservice
CN110597564A (en) Installation package construction and service component loading method, device and terminal equipment
WO2022222537A1 (en) Ai application deployment method, and related platform, cluster, medium and program product
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
Bhardwaj et al. Serving mobile apps: A slice at a time
US9300760B2 (en) Machine-specific instruction set translation
CN114579250A (en) Method, device and storage medium for constructing virtual cluster
CN110266762B (en) Data uploading method, system, device and storage medium
CN113535590A (en) Program testing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22905957

Country of ref document: EP

Kind code of ref document: A1