Debugging environment proxy method and system

CN116126694BActive Publication Date: 2026-09-15SHANGHAI BILIBILI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211692801.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2026-09-15
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

[0004]本申请的主要目的在于提出一种调试环境代理方法、系统、装置、计算机设备及计算机可读存储介质,旨在解决如何统一管理调试环境,提升开发调试效率的问题

Benefits of technology

[0039] The debugging environment proxy method, system, device, computer equipment, and computer-readable storage medium proposed in this application embodiment can enable connection between the proxy client and the proxy server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116126694B_ABST
    Figure CN116126694B_ABST
Patent Text Reader

Abstract

The application discloses a debugging environment proxy method, which comprises the following steps: a proxy client acquires a demand list and sends the demand list to a proxy server; the proxy server automatically creates a corresponding debugging environment proxy configuration according to the demand list; the proxy client shows the demand list and an environment list to a user, and sends a proxy request to the proxy server in response to the demand and the debugging environment selected by the user; the proxy server requests a business service corresponding to the debugging environment from a business server according to the proxy request; and the proxy server receives response content returned by the business server and returns the response content to the proxy client for the user to view. The application also discloses a debugging environment proxy system, a debugging environment proxy device, a computer device and a computer readable storage medium. Therefore, a centralized proxy service can be provided, various debugging environments can be uniformly managed, rapid configuration and switching can be performed, time cost in a development and debugging process can be reduced, and development and debugging efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of development and debugging technology, and in particular to a debugging environment proxy method, system, device, computer equipment, and computer-readable storage medium. Background Technology

[0002] With the development of various mobile development technologies, especially the continuous iteration of software, the functions and requirements of various applications are emerging one after another. From development to testing, acceptance, deployment, and production, applications need to go through multiple debugging stages, use multiple debugging environments, and switch between different debugging environments.

[0003] Currently, there is no unified way to manage various debugging environments during the development and debugging of various applications. While there are many common R&D debugging tools used in the industry, individual tools often lack comprehensive functionality and cannot meet the demands of R&D capabilities. Furthermore, the fragmentation of applications leads to a waste of time and effort, and the creation of data silos between different tools makes unified data collection and measurement difficult, impacting development and debugging efficiency. Summary of the Invention

[0004] The main purpose of this application is to propose a debugging environment proxy method, system, device, computer equipment, and computer-readable storage medium, aiming to solve the problem of how to uniformly manage the debugging environment and improve development and debugging efficiency.

[0005] To achieve the above objectives, embodiments of this application provide a debugging environment proxy method, the method comprising:

[0006] The proxy client obtains the list of requests and sends it to the proxy server;

[0007] The proxy server automatically creates the corresponding debugging environment proxy configuration based on the list of requirements.

[0008] The proxy client displays the requirement list and environment list to the user, and sends a proxy request to the proxy server in response to the user's selected requirements and debugging environment.

[0009] The proxy server requests the business service corresponding to the debugging environment from the business server according to the proxy request;

[0010] The proxy server receives the response content returned by the business server and returns it to the proxy client for the user to view.

[0011] Optionally, the automatic creation of corresponding debugging environment agent configurations based on the requirement list includes:

[0012] Generate a management account for each requirement based on the requirement list, and associate it with the corresponding proxy instance;

[0013] The proxy instance automatically configures the proxy for each debugging environment for each requirement.

[0014] Optionally, each of the proxy instances is associated with one of the requirements, and the proxy service corresponding to the requirement is processed.

[0015] Optionally, displaying the list of requirements and the list of environments to the user includes:

[0016] The request list and environment list are displayed to the user in the proxy operation interface of the proxy client or the proxy operation interface of the mobile terminal connected to the proxy client, so that the user can directly select the request that needs to be processed and the corresponding debugging environment from the list.

[0017] Optionally, requesting the business service corresponding to the debugging environment from the business server based on the proxy request includes:

[0018] The management account corresponding to the request is obtained according to the proxy request, and associated with the corresponding proxy instance;

[0019] The proxy instance requests the business service corresponding to the debugging environment from the business server according to the debugging environment and the corresponding proxy configuration.

[0020] Optionally, the method further includes, before the proxy client obtains the demand list:

[0021] The required certificate file can be installed with one click in the agent client.

[0022] The proxy client obtains the address information of the proxy server and connects to the proxy server based on the address information.

[0023] Furthermore, to achieve the above objectives, embodiments of this application also provide a debugging environment proxy system, the system comprising:

[0024] The proxy client is used to obtain the list of requirements and send it to the proxy server;

[0025] The proxy server is used to automatically create corresponding debugging environment proxy configurations based on the list of requirements.

[0026] The proxy client is also used to display the requirement list and environment list to the user, and to send a proxy request to the proxy server in response to the user's selected requirements and debugging environment.

[0027] The proxy server is also configured to request the business service corresponding to the debugging environment from the business server according to the proxy request; receive the response content returned by the business server and return it to the proxy client for the user to view.

[0028] To achieve the above objectives, this application also provides a debugging environment proxy method applied to a proxy server, the method comprising:

[0029] Automatically create the corresponding debugging environment proxy configuration based on the requirement list obtained from the proxy client;

[0030] Based on the proxy request initiated by the user-selected requirements and debugging environment, request the business service corresponding to the debugging environment from the business server;

[0031] The system receives the response content returned by the service server and returns it to the proxy client for the user to view.

[0032] To achieve the above objectives, this application also provides a debugging environment proxy device applied to a proxy server, the device comprising:

[0033] The configuration module is used to automatically create the corresponding debugging environment proxy configuration based on the list of requirements obtained by the proxy client;

[0034] The request module is used to request the business service corresponding to the debugging environment from the business server based on the user-selected needs and the proxy request initiated by the debugging environment.

[0035] The return module is used to receive the response content returned by the business server and return it to the proxy client for the user to view.

[0036] To achieve the above objectives, this application also provides a computer device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the debugging environment proxy method as described above.

[0037] To achieve the above objectives, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor...

[0038] Implement the debugging environment proxy method as described above.

[0039] The debugging environment proxy method, system, device, computer equipment, and computer-readable storage medium proposed in this application embodiment can enable connection between the proxy client and the proxy server.

[0040] HeTong provides a centralized environment proxy service for development and debugging, which uniformly manages various debugging environments under different requirements. It can quickly configure and switch debugging environments, reduce time costs in the development and debugging process, and improve development and debugging efficiency. Attached Figure Description

[0041] Figure 1 Figure 5 shows the application environment architecture of a debugging environment agent system proposed in the first embodiment of this application;

[0042] Figure 2 This is a flowchart of a debugging environment proxy method proposed in the second embodiment of this application;

[0043] Figure 3 for Figure 2 Detailed flowchart of step S202;

[0044] Figure 4 This is a schematic diagram of a proxy operation interface for a mobile terminal in this application;

[0045] Figure 5 This is a schematic diagram of a proxy operation interface for the proxy client in this application;

[0046] 0 Figure 6 for Figure 2 A detailed flowchart of step S206;

[0047] Figure 7 This is a schematic diagram illustrating the initiation of a proxy request and the return of a response in the second embodiment of this application;

[0048] Figure 8 This is a flowchart of a debugging environment proxy method proposed in the third embodiment of this application;

[0049] Figure 9 This is a flowchart of a debugging environment proxy method proposed in the fourth embodiment of this application;

[0050] Figure 10 This is a schematic diagram of a debugging environment proxy device according to the fifth embodiment of this application; 5 Figure 11 This is a schematic diagram of the hardware architecture of a computer device according to the sixth embodiment of this application. Detailed Implementation

[0051] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0052] It should be noted that the descriptions involving "first," "second," etc., in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.

[0053] Currently, commonly used development and debugging tools in the industry include Charles, SwitchHosts, ModHeader, Chrome Inspect, Safari Remote Debug, VConsole, Eruda, and Mock.js.

[0054] Charles is an HTTP (Hypertext Transfer Protocol) communication monitoring and proxy tool. SwitchHosts is a tool for managing and quickly switching Hosts files. Hosts is a system file without an extension that can be opened with tools like Notepad; its function is to establish an association "database" between commonly used website domains and their corresponding IP (Internet Protocol) addresses. ModHeader is a browser plugin that can be used to customize HTTP request headers or rewrite response headers. Whistle is a cross-platform Web (World Wide Web) packet capture and debugging tool based on Node.js. Node.js is a JavaScript runtime environment based on the Chrome V8 engine. JavaScript (JS) is a lightweight, interpreted or just-in-time (JIT) programming language with function-first principles. Chrome Inspect is a tool for capturing and debugging WebViews on Android devices. Safari Remote Debugger is a tool for capturing and debugging WebViews on iOS devices. VConsole and Eruda are JavaScript software development kits for front-end developers debugging panels for mobile web pages. Mock.js is a JavaScript software development kit for generating random data.

[0055] These development and debugging tools all have certain drawbacks. For example, Charles requires a paid subscription, has inflexible configuration, a high learning curve, and is not user-friendly for non-development roles. SwitchHosts configuration switching may fail due to DNS (DomainNameSystem) caching issues, requiring a browser restart or clearing of the DNS cache. ModHeader is only a PC (Personal Computer) browser plugin and is not compatible with mobile devices. Applications debugged by Chrome Inspect require the Debug package. Applications debugged by Safari Remote Debug require the Debug package, and iOS devices below version 10 can only connect on older macOS systems. Using VConsole, Eruda, and Mock.js can intrude on business logic code.

[0056] In summary, individual tools lack comprehensive functionality and cannot meet the demands of R&D capabilities. Furthermore, fragmented applications lead to a waste of time and effort, and data silos are created between different tools, making unified data collection and measurement difficult.

[0057] Therefore, this application proposes a debugging environment proxy scheme, which can integrate the functions of the above-mentioned tools to uniformly manage the various debugging environments required during the development and debugging process. It can automatically create corresponding environments according to user needs and also facilitate environment switching. The technical solution of this application will be described below with reference to various embodiments.

[0058] Example 1

[0059] Please see Figure 1 , Figure 1 This is an application environment architecture diagram of a debugging environment proxy system proposed in the first embodiment of this application. This application can be applied to application environments including, but not limited to, mobile terminal 2, proxy client 4, proxy server 6, and business server 8. The debugging environment proxy system mainly includes the proxy client 4 and the proxy server 6.

[0060] The mobile terminal 2 can be a mobile device such as a mobile phone or tablet. The proxy client 4 can be a terminal device such as a PC with a debugging environment proxy application installed. In this embodiment, the user can perform proxy-related operations during development and debugging on the mobile terminal 2, and then the mobile terminal 2 will send the corresponding requests to the proxy client 4 for processing. Alternatively, the user can directly perform proxy-related operations on the proxy client 4.

[0061] The proxy client 4 is used to obtain the requirement list and send it to the proxy server. The proxy server 6 is used to automatically create corresponding debugging environment proxy configurations based on the requirement list. The proxy client 4 is also used to display the requirement list and environment list to the user, and to send a proxy request to the proxy server 6 in response to the user's selected requirement and debugging environment. The proxy server 6 is also used to request the business service corresponding to the debugging environment from the business server 8 according to the proxy request, receive the response content returned by the business server 8, and return it to the proxy client 4 for the user to view.

[0062] The aforementioned servers can be computing devices such as rack servers, blade servers, tower servers, or cabinet servers. They can be independent servers or server clusters composed of multiple servers.

[0063] The proxy server 6 communicates with one or more of the proxy clients 4, the proxy server 6 communicates with the business server 8, and the proxy client 4 communicates with the mobile terminal 2, all via wired or wireless networks, for data transmission and interaction. The network can be an intranet, the Internet, Global System for Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.

[0064] Example 2

[0065] like Figure 2 The diagram shown is a flowchart of a debugging environment proxy method according to the second embodiment of this application. It is understood that the flowchart in this method embodiment is not intended to limit the order of execution steps. Depending on the needs, some steps in the flowchart can be added to or removed. The following description uses the debugging environment proxy system as the execution subject to illustrate this method.

[0066] The method includes the following steps:

[0067] S200: The agent client obtains the list of requirements and sends it to the agent server.

[0068] Before activating the proxy service, users can create various requirements for different application scenarios related to software development and debugging. In this embodiment, these requirements can be created on other platforms. After obtaining the list of created requirements, the proxy client sends it to the proxy server. This list of requirements can be a list of all created requirements or a list of requirements corresponding to the current user.

[0069] S202, the proxy server automatically creates the corresponding debugging environment proxy configuration based on the requirement list.

[0070] Once the proxy server receives the list of requirements, it can automatically create a corresponding debug environment proxy configuration for each requirement. Generally, each requirement may require a corresponding debug environment such as a UAT environment, a coloring environment, a pre-release environment, and a production environment. The UAT environment is the acceptance testing environment, commonly used for automated testing. The coloring environment is a new UAT environment segmented through traffic protocols, commonly used for requirement development and integration testing. The pre-release environment is the final testing environment before official release. The production environment is the environment officially provided for external service.

[0071] For more details, please refer to the following: Figure 3 This is a detailed flowchart illustrating step S202 above. It is understood that this flowchart is not intended to limit the order of execution steps. Steps in this flowchart can be added to or removed as needed. In this embodiment, step S202 specifically includes:

[0072] S2020: Generate a management account for each requirement based on the requirement list and associate it with the corresponding proxy instance.

[0073] In this embodiment, the proxy instance is the core component of the proxy server, and each proxy instance is associated with a request / user. When the proxy server receives the request list, it generates a management account corresponding to each request based on the request list, and associates a corresponding proxy instance with each request to handle the subsequent proxy services corresponding to that request.

[0074] S2022, The proxy instance automatically configures the proxy for each debugging environment for each requirement.

[0075] The proxy instance is primarily used to generate and manage proxy configurations, and to proxy requests to specified business services according to the proxy configuration rules. After the proxy server associates a corresponding proxy instance with each requirement in the requirement list, the proxy instance automatically creates the proxy configuration for the debugging environment corresponding to that requirement. The proxy configuration involves specifying which business service to proxy various requests to, what content needs to be added to each request, and what processing is required for the content returned by the business service. When the user selects a requirement and debugging environment in the proxy client, the proxy client can connect to the corresponding server-side proxy instance.

[0076] It is worth noting that the proxy client can display the proxy configuration currently in effect on the proxy server and can be modified in the proxy client.

[0077] Back Figure 2 S204, the proxy client displays the requirement list and environment list to the user, and in response to the user's selected requirements and debugging environment, sends a proxy request to the proxy server.

[0078] In this embodiment, the user can perform proxy-related operations on the interface provided by the mobile device. The mobile device is connected to the proxy client and sends corresponding requests to the proxy client for processing. Alternatively, the user can directly perform related operations on the interface provided by the proxy client, and the proxy client will process the corresponding request upon receiving the operation. The interface can be a web page.

[0079] like Figure 4 The image shown is a schematic diagram of a proxy operation interface on the mobile terminal. Figure 5 The above is a schematic diagram of a proxy operation interface for the proxy client. Figure 4 and Figure 5 The proxy operation interface includes a button to start the system proxy, a local IP address, buttons to select requirements and environments, and the currently selected requirements and environments. For example, when a user clicks the button to select requirements and environments, they enter a drop-down list of required and debugging environments, and select the requirements and debugging environments to be processed. After confirming the selection, the selected requirements and debugging environments will be displayed in the corresponding part of the interface. Then, the user clicks the button to start the system proxy to initiate a proxy request. It is worth noting that... Figure 4 and Figure 5 The example shown is merely a schematic representation of the proxy operation interface and does not limit the layout, content, or form of the proxy operation interface. It is understood that the proxy operation interface can be added to, reduced, or modified in any feasible manner, and all such modifications should be included within the scope of patent protection of the embodiments of this application.

[0080] The proxy client can display the requirement list and environment list to the user in its own proxy operation interface or the proxy operation interface on the mobile device, so that the user can directly select the requirement to be processed and the corresponding debugging environment from the drop-down list. The environment list generally includes debugging environments such as UAT environment, coloring environment, pre-release environment, and production environment. After receiving the requirement and debugging environment selected by the user, the proxy client sends the corresponding proxy request for the requirement and debugging environment to the proxy server.

[0081] Additionally, if a user needs to switch debugging environments, they simply need to select another debugging environment from the drop-down list in the proxy operation interface. In response to the user's switch of debugging environments, the proxy client can send a new proxy request to the proxy server.

[0082] S206, the proxy server requests the business service corresponding to the debugging environment from the business server according to the proxy request.

[0083] After receiving the proxy request from the proxy client, the proxy server requests the business service corresponding to the debugging environment from the business server based on the requirements and debugging environment corresponding to the proxy request, as well as the previous proxy configuration.

[0084] For more details, please refer to the following: Figure 6 This is a detailed flowchart illustrating step S206 above. It is understood that this flowchart is not intended to limit the order of execution steps. Steps in this flowchart can be added to or removed as needed. In this embodiment, step S206 specifically includes:

[0085] S2060, Obtain the management account corresponding to the request based on the proxy request, and associate it with the corresponding proxy instance.

[0086] The proxy request is generated based on the user's selected requirements. Based on the requirements information in the proxy request, the proxy server can obtain the management account corresponding to the requirements from the previously generated management accounts and associate the proxy request with the proxy instance corresponding to the requirements.

[0087] At this point, the proxy client can establish a connection with the proxy instance in the proxy server that corresponds to the requirements and debugging environment, and the proxy instance will handle the subsequent proxy services.

[0088] S2062, the proxy instance requests the business service corresponding to the debugging environment from the business server according to the debugging environment and the corresponding proxy configuration.

[0089] Since the proxy instance has already been configured for each debugging environment corresponding to the aforementioned requirement, upon receiving the proxy request, it can request the business service corresponding to the debugging environment from the business server based on the debugging environment in the proxy request and the proxy configuration corresponding to that debugging environment. For example, if the currently selected environment is a UAT environment or a coloring environment, the necessary information is added according to the proxy configuration corresponding to the UAT environment or the coloring environment, and the corresponding business service is requested from the business server corresponding to the UAT environment or the coloring environment. If the currently selected environment is a pre-production environment, the corresponding business service is requested from the business server corresponding to the pre-production environment based on the proxy configuration corresponding to the pre-production environment. If the currently selected environment is a production environment, the corresponding business service is requested from the business server corresponding to the production environment based on the proxy configuration corresponding to the production environment.

[0090] Back Figure 2 S208, the proxy server receives the response content returned by the business server and returns it to the proxy client for the user to view.

[0091] After receiving the request, the business server performs the corresponding business processing and then returns the response content to the proxy server. Upon receiving the response content, the proxy server processes it according to the proxy configuration and then returns it to the proxy client. The proxy client also processes the response content according to the proxy configuration and displays it to the user on its own interface or sends it to the user's interface on the mobile device.

[0092] like Figure 7 The diagram shown illustrates the process of initiating a proxy request and returning a response in this embodiment. Figure 7 In this system, users can select different debugging environments based on their current development and debugging progress. After receiving the selected debugging environment, the proxy client initiates a corresponding proxy request to the proxy server. Based on the proxy request and the corresponding proxy configuration, the proxy server can request business services from the business servers corresponding to different debugging environments, receive the response content returned by the business servers, and then process and return it to the user step by step. Figure 7 The specific details of each step have been explained above and will not be repeated here.

[0093] The debugging environment proxy method proposed in this embodiment provides a centralized environment proxy service for development and debugging through the connection and communication between the proxy client and the proxy server. It uniformly manages various debugging environments under different needs, enabling rapid configuration of debugging environments, reducing time costs during development and debugging, and improving efficiency. Furthermore, by associating each requirement with a corresponding proxy instance, this embodiment allows for configuration isolation from the user and requirement perspectives, while also enabling environment sharing and supporting simultaneous use by multiple users. This embodiment simplifies environment switching operations; users can quickly switch debugging environments within the proxy client or any mobile device connected to the proxy client's web page without reconfiguration. This embodiment covers the functionality of various debugging tools while overcoming many of their shortcomings, such as not intruding on business code.

[0094] Example 3

[0095] like Figure 8 The diagram shown is a flowchart of a debugging environment proxy method according to a third embodiment of this application. In this third embodiment, the debugging environment proxy method, based on the second embodiment described above, further includes steps S300-S302. It is understood that the flowchart in this method embodiment is not intended to limit the order of execution steps. Depending on the needs, some steps in the flowchart can be added or removed.

[0096] The method includes the following steps:

[0097] S300 allows for one-click installation of the required certificate files in the agent client.

[0098] In this embodiment, the certificate files required for each debugging environment and the certificate files required for the proxy service during the development and debugging process can be installed with one click in the proxy client (PC local system), without the user having to install them manually one by one.

[0099] S302, the proxy client obtains the address information of the proxy server and connects to the proxy server according to the address information.

[0100] In this embodiment, the proxy client can obtain the address information of the proxy server, including IP and port information, through a specified interface, and then connect to the proxy server from the proxy client according to the IP and port information.

[0101] S304, the proxy client obtains the demand list and sends it to the proxy server.

[0102] Before activating the proxy service, users can create various requirements for different application scenarios related to software development and debugging. In this embodiment, these requirements can be created on other platforms. After obtaining the list of created requirements, the proxy client sends it to the proxy server. This list of requirements can be a list of all created requirements or a list of requirements corresponding to the current user.

[0103] S306, the proxy server automatically creates the corresponding debugging environment proxy configuration based on the requirement list.

[0104] Once the proxy server receives the list of requirements, it can automatically create a corresponding debug environment proxy configuration for each requirement. Typically, each requirement may require a corresponding debug environment such as a UAT environment, a coloring environment, a pre-production environment, or a production environment.

[0105] First, generate a management account for each requirement based on the requirement list, and associate it with the corresponding proxy instance.

[0106] In this embodiment, the proxy instance is the core component of the proxy server, and each proxy instance is associated with a request / user. When the proxy server receives the request list, it generates a management account corresponding to each request based on the request list, and associates a corresponding proxy instance with each request to handle the subsequent proxy services corresponding to that request.

[0107] Then, the proxy instance automatically configures the proxy for each debugging environment for each requirement.

[0108] The proxy instance is primarily used to generate and manage proxy configurations, and to proxy requests to specified business services according to the proxy configuration rules. After the proxy server associates a corresponding proxy instance with each requirement in the requirement list, the proxy instance automatically creates the proxy configuration for the debugging environment corresponding to that requirement. The proxy configuration involves specifying which business service to proxy various requests to, what content needs to be added to each request, and what processing is required for the content returned by the business service. When the user selects a requirement and debugging environment in the proxy client, the proxy client can connect to the corresponding server-side proxy instance.

[0109] It is worth noting that the proxy client can display the proxy configuration currently in effect on the proxy server and can be modified in the proxy client.

[0110] S308, the proxy client displays the requirement list and environment list to the user, and in response to the user's selected requirements and debugging environment, sends a proxy request to the proxy server.

[0111] The proxy client can display the requirement list and environment list to the user in its own proxy operation interface or the proxy operation interface of the mobile terminal, so that the user can directly select the requirement to be processed and the corresponding debugging environment from the drop-down list. The environment list generally includes debugging environments such as UAT environment, coloring environment, pre-production environment, and production environment. After receiving the requirement and debugging environment selected by the user, the proxy client sends the corresponding proxy request for the requirement and debugging environment to the proxy server.

[0112] Additionally, if a user needs to switch debugging environments, they simply need to select another debugging environment from the drop-down list in the agent operation interface. In response to the user's switch of debugging environments, the agent client can send a new agent request to the agent server.

[0113] S310, the proxy server requests the business service corresponding to the debugging environment from the business server according to the proxy request.

[0114] After receiving the proxy request from the proxy client, the proxy server requests the business service corresponding to the debugging environment from the business server based on the requirements and debugging environment corresponding to the proxy request, as well as the previous proxy configuration.

[0115] First, obtain the management account corresponding to the request based on the proxy request, and associate it with the corresponding proxy instance.

[0116] The proxy request is generated based on the user's selected requirements. Based on the requirements information in the proxy request, the proxy server can retrieve the management account corresponding to the requirement from previously generated management accounts and associate the proxy request with the corresponding proxy instance. At this point, the proxy client can establish a connection with the proxy instance in the proxy server corresponding to the requirement and debugging environment. The proxy instance will then handle subsequent proxy services.

[0117] Then, the proxy instance requests the business service corresponding to the debugging environment from the business server according to the debugging environment and the corresponding proxy configuration.

[0118] 0. Since the proxy instance previously configured proxy settings for each debugging environment corresponding to the requirement, upon receiving the proxy request, it can request the business service corresponding to the debugging environment from the business server based on the debugging environment in the proxy request and the proxy configuration corresponding to that debugging environment. For example, if the currently selected environment is UAT or a coloring environment, then based on...

[0119] Add necessary information to the proxy configuration corresponding to the UAT environment or staining environment, and request the corresponding business service from the business server corresponding to the UAT environment or staining environment. If the current selected environment is a pre-production environment, request the corresponding business service from the business server corresponding to the pre-production environment according to the proxy configuration of the pre-production environment. If the current selected environment is a production environment, request the corresponding business service from the business server corresponding to the production environment according to the proxy configuration of the production environment.

[0120] S312, the proxy server receives the response content returned by the business server and returns it to the proxy client for the user to view.

[0121] After receiving the request, the business server performs the corresponding business processing and then returns the response content to the proxy server. Upon receiving the response content, the proxy server processes it according to the proxy configuration and then returns it to the proxy client. The proxy client also processes the response content according to the proxy configuration and displays it to the user on its own interface or sends it to the user's interface on the mobile device.

[0122] The debugging environment proxy method proposed in this embodiment provides a centralized environment proxy service for development and debugging through the connection and communication between the proxy client and the proxy server. It uniformly manages various debugging environments under different needs, enabling rapid configuration of debugging environments, reducing time costs during development and debugging, and improving efficiency. Furthermore, this embodiment can install all required certificate files with one click, eliminating the need for manual installation. This embodiment supports cross-platform web debugging proxy applications, allowing one-click proxy configuration and environment switching on Windows or macOS, and debugging of web pages on iOS, Android, or PC.

[0123] Example 4

[0124] like Figure 9 The diagram shown is a flowchart of a debugging environment proxy method proposed in the fourth embodiment of this application. It is understood that the flowchart in this method embodiment is not intended to limit the order of execution steps. As needed, some steps in the flowchart can be added to or removed. The method will now be described using the proxy server as the execution subject.

[0125] The method includes the following steps:

[0126] S400 automatically creates the corresponding debugging environment proxy configuration based on the requirement list obtained from the proxy client.

[0127] Before activating the proxy service, users can create various requirements for different application scenarios related to software development and debugging. In this embodiment, these requirements can be created on other platforms. After obtaining the list of created requirements, the proxy client sends it to the proxy server. This list of requirements can be a list of all created requirements or a list of requirements corresponding to the current user.

[0128] Once the proxy server receives the list of requirements, it can automatically create a corresponding debugging environment proxy configuration for each requirement. Typically, each requirement may require a corresponding debugging environment such as a UAT environment, a coloring environment, a pre-production environment, or a production environment.

[0129] First, generate a management account for each requirement based on the requirement list, and associate it with the corresponding proxy instance.

[0130] In this embodiment, the proxy instance is the core component of the proxy server, and each proxy instance is associated with a request / user. When the proxy server receives the request list,

[0131] Based on the list of requirements, a management account is generated for each requirement, and a corresponding proxy instance is associated with each requirement to handle the proxy services corresponding to that requirement.

[0132] Then, the proxy instance automatically configures the proxy for each debugging environment for each requirement.

[0133] The proxy instance described in section 5 is primarily used to generate and manage proxy configurations, and to proxy requests to specified business services according to the proxy configuration rules. After the proxy server associates a corresponding proxy instance with each requirement in the requirement list, the proxy instance automatically creates the proxy configuration for the debugging environment corresponding to that requirement. The proxy configuration involves determining which business service to proxy various requests to.

[0134] What content needs to be added to each request, and what processing is required for the content returned by the business service? Once the user selects the requirements and debugging environment in the proxy client, the proxy client can...

[0135] Connect to the corresponding server-side proxy instance.

[0136] It is worth noting that the proxy client can display the proxy configuration currently in effect on the proxy server and can be modified in the proxy client.

[0137] S402, based on the proxy request initiated by the user-selected requirements and debugging environment, request the business service corresponding to the debugging environment from the business service terminal.

[0138] The proxy client can display the requirement list and environment list to the user in its own proxy operation interface or the proxy operation interface of the mobile terminal, so that the user can directly select the requirement to be processed and the corresponding debugging environment from the drop-down list. The environment list generally includes debugging environments such as UAT environment, coloring environment, pre-production environment, and production environment. After receiving the requirement and debugging environment selected by the user, the proxy client sends the corresponding proxy request for the requirement and debugging environment to the proxy server.

[0139] Additionally, if a user needs to switch debugging environments, they simply need to select another debugging environment from the drop-down list in the proxy operation interface. In response to the user's switch of debugging environments, the proxy client can send a new proxy request to the proxy server.

[0140] After receiving the proxy request from the proxy client, the proxy server requests the business service corresponding to the debugging environment from the business server based on the requirements and debugging environment corresponding to the proxy request, as well as the previous proxy configuration.

[0141] First, obtain the management account corresponding to the request based on the proxy request, and associate it with the corresponding proxy instance.

[0142] The proxy request is generated based on the user's selected requirements. Based on the requirements information in the proxy request, the proxy server can retrieve the management account corresponding to the requirements from previously generated management accounts and associate the proxy request with the corresponding proxy instance. At this point, the proxy client can establish a connection with the proxy instance in the proxy server corresponding to the requirements and debugging environment. The proxy instance will then handle subsequent proxy services.

[0143] Then, the proxy instance requests the business service corresponding to the debugging environment from the business server according to the debugging environment and the corresponding proxy configuration.

[0144] Since the proxy instance has already been configured for each debugging environment corresponding to the aforementioned requirement, upon receiving the proxy request, it can request the business service corresponding to the debugging environment from the business server based on the debugging environment in the proxy request and the proxy configuration corresponding to that debugging environment. For example, if the currently selected environment is a UAT environment or a coloring environment, the necessary information is added according to the proxy configuration corresponding to the UAT environment or the coloring environment, and the corresponding business service is requested from the business server corresponding to the UAT environment or the coloring environment. If the currently selected environment is a pre-production environment, the corresponding business service is requested from the business server corresponding to the pre-production environment based on the proxy configuration corresponding to the pre-production environment. If the currently selected environment is a production environment, the corresponding business service is requested from the business server corresponding to the production environment based on the proxy configuration corresponding to the production environment.

[0145] S404, Receive the response content returned by the service server and return it to the proxy client for the user to view.

[0146] After receiving the request, the business server performs the corresponding business processing and then returns the response content to the proxy server. Upon receiving the response content, the proxy server processes it according to the proxy configuration and then returns it to the proxy client. The proxy client also processes the response content according to the proxy configuration and displays it to the user on its own interface or sends it to the user's interface on the mobile device.

[0147] The debugging environment proxy method proposed in this embodiment provides a centralized environment proxy service for development and debugging, uniformly managing various debugging environments under different needs. It enables rapid configuration of debugging environments, reducing time costs and improving efficiency during development and debugging. Furthermore, by associating each requirement with a corresponding proxy instance, this embodiment allows for configuration isolation from the user and requirement perspectives, while also enabling environment sharing and supporting simultaneous use by multiple users. This embodiment simplifies environment switching; users can quickly switch debugging environments within the proxy client or any mobile device connected to the proxy client's web page without reconfiguration. This embodiment covers the functionality of various debugging tools while overcoming many of their shortcomings, such as not intruding on business code.

[0148] Example 5

[0149] like Figure 10The diagram shown is a schematic representation of a debugging environment proxy device 60 according to the fifth embodiment of this application. The debugging environment proxy device 60 can be divided into one or more program modules. One or more program modules are stored in a storage medium and executed by one or more processors to complete the embodiments of this application. The program modules referred to in the embodiments of this application are a series of computer program instruction segments capable of performing specific functions. The following description will specifically introduce the functions of each program module in this embodiment.

[0150] In this embodiment, the debugging environment proxy device 60 includes:

[0151] Configuration module 600 is used to automatically create corresponding debugging environment proxy configurations based on the requirement list obtained by the proxy client.

[0152] The request module 602 is used to request the business service corresponding to the debugging environment from the business server based on the proxy request initiated by the user-selected needs and the debugging environment.

[0153] The return module 604 is used to receive the response content returned by the business server and return it to the proxy client for the user to view.

[0154] The specific functions of each of the above modules are described in the preceding embodiments and will not be repeated here.

[0155] The debugging environment proxy device proposed in this embodiment can provide a centralized environment proxy service related to development and debugging, uniformly manage various debugging environments under various needs, quickly configure debugging environments, reduce time costs in the development and debugging process, and improve development and debugging efficiency.

[0156] Example 6

[0157] like Figure 11 The diagram shown is a hardware architecture schematic of a computer device 20 according to the sixth embodiment of this application. In this embodiment, the computer device 20 may include, but is not limited to, a memory 21, a processor 22, and a network interface 23 that are interconnected via a system bus. It should be noted that... Figure 11 Only a computer device 20 with components 21-23 is shown; however, it should be understood that implementation of all shown components is not required, and more or fewer components may be implemented alternatively. In this embodiment, the computer device 20 may be the proxy server.

[0158] The memory 21 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 21 may be an internal storage unit of the computer device 20, such as the hard disk or memory of the computer device 20. In other embodiments, the memory 21 may also be an external storage device of the computer device 20, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. Of course, the memory 21 may include both internal storage units and external storage devices of the computer device 20. In this embodiment, the memory 21 is typically used to store the operating system and various application software installed on the computer device 20, such as the program code of the debugging environment proxy device in the embodiment. In addition, the memory 21 can also be used to temporarily store various types of data that have been output or will be output.

[0159] In some embodiments, the processor 22 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 22 is typically used to control the overall operation of the computer device 20. In this embodiment, the processor 22 is used to run program code stored in the memory 21 or to process data.

[0160] The network interface 23 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 20 and other electronic devices. For example, the network interface 23 is used to connect the computer device 20 to an external server or terminal via a network, establishing a data transmission channel and communication connection between the computer device 20 and the external server or terminal. The network may be an intranet, the Internet, GSM, WCDMA, 4G, 5G, Bluetooth, Wi-Fi, or other wireless or wired networks.

[0161] In this embodiment, the debugging environment agent device stored in memory 21 can also be divided into one or more program modules and executed by one or more processors (processor 22 in this embodiment) to complete this application.

[0162] Example 7

[0163] This application also provides another embodiment, namely, providing a computer-readable storage medium storing a computer program that can be executed by at least one processor to cause the at least one processor to perform the steps of the debugging environment proxy method as described above.

[0164] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0165] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0166] Obviously, those skilled in the art should understand that the modules or steps of the embodiments of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the embodiments of this application are not limited to any particular combination of hardware and software.

[0167] The above are merely preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structural or procedural transformations made using the description and drawings of the present application, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present application.

Claims

1. A debugging environment proxy method, characterized in that, The method includes: The proxy client obtains the list of requests and sends it to the proxy server; The proxy server automatically creates the corresponding debugging environment proxy configuration based on the list of requirements. The proxy client displays the requirement list and environment list to the user, and sends a proxy request to the proxy server in response to the user's selected requirements and debugging environment. The proxy server requests the business service corresponding to the debugging environment from the business server according to the proxy request; The proxy server receives the response content returned by the business server and returns it to the proxy client for the user to view; The automatic creation of corresponding debugging environment proxy configurations based on the requirement list includes: Generate a management account for each requirement based on the requirement list, and associate it with the corresponding proxy instance; The proxy instance automatically configures the proxy for each debugging environment for each requirement; Specifically, in response to the user's selected needs and debugging environment, sending a proxy request to the proxy server includes: In response to the user selecting another debugging environment from the drop-down list in the agent operation interface, an agent request is sent to the agent server.

2. The debugging environment proxy method according to claim 1, characterized in that, Each of the proxy instances is associated with one of the requirements and processes the proxy service corresponding to that requirement.

3. The debugging environment proxy method according to claim 1, characterized in that, The process of displaying the requirement list and environment list to the user includes: The request list and environment list are displayed to the user in the proxy operation interface of the proxy client or the proxy operation interface of the mobile terminal connected to the proxy client, so that the user can directly select the request that needs to be processed and the corresponding debugging environment from the list.

4. The debugging environment proxy method according to claim 1, characterized in that, The step of requesting the business service corresponding to the debugging environment from the business server according to the proxy request includes: The management account corresponding to the request is obtained according to the proxy request, and associated with the corresponding proxy instance; The proxy instance requests the business service corresponding to the debugging environment from the business server according to the debugging environment and the corresponding proxy configuration.

5. The debugging environment proxy method according to claim 1, characterized in that, The method further includes the following steps before the proxy client obtains the demand list: The required certificate file can be installed with one click in the agent client. The proxy client obtains the address information of the proxy server and connects to the proxy server based on the address information.

6. A debugging environment proxy system, characterized in that, The system includes: The proxy client is used to obtain the list of requirements and send it to the proxy server; The proxy server is used to automatically create corresponding debugging environment proxy configurations based on the list of requirements. The proxy client is also used to display the requirement list and environment list to the user, and to send a proxy request to the proxy server in response to the user's selected requirements and debugging environment. The proxy server is also configured to request the business service corresponding to the debugging environment from the business server according to the proxy request; receive the response content returned by the business server and return it to the proxy client for the user to view; The proxy server is further configured to: Generate a management account for each requirement based on the requirement list, and associate it with the corresponding proxy instance; The proxy instance automatically configures the proxy for each debugging environment for each requirement; The proxy client is further used for: In response to the user selecting another debugging environment from the drop-down list in the agent operation interface, an agent request is sent to the agent server.

7. A debugging environment proxy method, applied to a proxy server, characterized in that, The method includes: Automatically create corresponding debugging environment proxy configurations based on the request list obtained by the proxy client; request business services corresponding to the debugging environment from the business server based on the proxy request initiated based on the user-selected requirements and debugging environment; Receive the response content returned by the business server and return it to the proxy client for the user to view; The step of automatically creating the corresponding debugging environment proxy configuration based on the requirement list obtained by the proxy client includes: Generate a management account for each requirement based on the requirement list, and associate it with the corresponding proxy instance; The proxy instance automatically configures the proxy for each debugging environment for each requirement; The proxy request initiated based on the user's selected needs and debugging environment is obtained through the following operations: The proxy client responds to the user selecting another debugging environment from the drop-down list in the proxy operation interface by sending a proxy request to the proxy server.

8. A debugging environment proxy device, applied to a proxy server, characterized in that, The device includes: The configuration module is used to automatically create the corresponding debugging environment proxy configuration based on the list of requirements obtained by the proxy client; The request module is used to request the business service corresponding to the debugging environment from the business server based on the user-selected needs and the proxy request initiated by the debugging environment. The return module is used to receive the response content returned by the business server and return it to the proxy client for the user to view; The configuration module is further configured to generate a management account for each requirement based on the requirement list and associate it with a corresponding proxy instance; and to automatically configure the proxy for each debugging environment for each requirement through the proxy instance. The proxy request initiated based on the user's selected needs and debugging environment is obtained through the following operations: The proxy client responds to the user selecting another debugging environment from the drop-down list in the proxy operation interface by sending a proxy request to the proxy server.

9. A computer device, characterized in that, The computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the debugging environment proxy method as described in claim 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the debugging environment proxy method as described in any one of claims 1 to 5 or 7.

11. A computer program product comprising computer instructions, characterized in that, When executed by the processor, the computer instructions implement the debugging environment proxy method of any one of claims 1 to 5 or claim 7.

Citation Information

Patent Citations

  • Application program debugging method and device, electronic equipment and computer readable medium

    CN113468067A