CN113468067A - Application program debugging method and device, electronic equipment and computer readable medium - Google Patents

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

Info

Publication number
CN113468067A
CN113468067A CN202110827275.2A CN202110827275A CN113468067A CN 113468067 A CN113468067 A CN 113468067A CN 202110827275 A CN202110827275 A CN 202110827275A CN 113468067 A CN113468067 A CN 113468067A
Authority
CN
China
Prior art keywords
operating environment
application program
parameters
debugging
code
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202110827275.2A
Other languages
Chinese (zh)
Other versions
CN113468067B (en
Inventor
肖兆琦
张同虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
CCB Finetech Co Ltd
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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202110827275.2A priority Critical patent/CN113468067B/en
Publication of CN113468067A publication Critical patent/CN113468067A/en
Application granted granted Critical
Publication of CN113468067B publication Critical patent/CN113468067B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

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)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a debugging method and device of an application program, electronic equipment and a computer readable medium, and relates to the technical field of automatic program design. One embodiment of the method comprises: installing a software package manager, building a development framework based on the software package manager, and installing a code construction tool; configuring operating environment parameters in a development framework, and transmitting the operating environment parameters to a code construction tool; constructing a code project according to the operating environment parameters by using an agent construction tool, configuring operating environment agent services, and packaging the constructed code project to obtain an application program; and sending the access request of the application program to a server indicated by the operating environment parameters according to the operating environment proxy service, and receiving a response result to debug the application program. The embodiment improves the debugging efficiency and the debugging effect, and expands the applicable scene of debugging.

Description

Application program debugging method and device, electronic equipment and computer readable medium
Technical Field
The present invention relates to the field of automatic program design technologies, and in particular, to a method and an apparatus for debugging an application program, an electronic device, and a computer-readable medium.
Background
Before being released formally, an application needs to be debugged to repair errors and defects that may occur. Meanwhile, in order to improve the application program and provide guarantee for subsequent stable operation of the application program, debugging is often required to be performed in multiple environments facing multiple service terminals.
The prior art has at least the following problems:
when the existing application system debugging method faces a plurality of service terminals and a plurality of sets of running environments, code engineering or programming software needs to be restarted frequently, so that the debugging is long in time consumption and poor in debugging effect; on the other hand, developers need to hard-code the address of the server to be accessed in the configuration file of the code, and need to display the variable of the write-in operation environment to adapt to different environments, so that the debugging accuracy is low, and the applicable scene of the existing debugging method is narrow.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for debugging an application program, an electronic device, and a computer readable medium, which can configure operating environment parameters and configure operating environment proxy services in advance, so that the application program can quickly and directly access a server to complete a debugging process, thereby improving debugging efficiency and debugging effect, and further expanding a suitable debugging scenario.
To achieve the above object, according to a first aspect of the embodiments of the present invention, there is provided an application program debugging method, including:
installing a software package manager, building a development framework based on the software package manager, and installing a code construction tool;
configuring operating environment parameters in a development framework, and transmitting the operating environment parameters to a code construction tool;
constructing a code project according to the operating environment parameters by using an agent construction tool, configuring operating environment agent services, and packaging the constructed code project to obtain an application program;
and sending the access request of the application program to a server indicated by the operating environment parameters according to the operating environment proxy service, and receiving a response result to debug the application program.
Further, the operating environment parameters include interface parameters and access path parameters, where the interface parameters indicate interface parameters corresponding to the to-be-accessed server, and the access path parameters indicate path parameters for accessing the to-be-accessed server.
Further, the number of the interface parameters is multiple; constructing a code project according to the operating environment parameters by using an agent construction tool, and packaging the constructed code project to obtain an application program, wherein the method comprises the following steps:
and respectively constructing code items according to the plurality of interface parameters by using an agent construction tool, and packaging the code items to obtain a plurality of application programs under the operating environment.
Further, the number of the access path parameters is multiple; the step of configuring the runtime environment proxy service includes:
and configuring a mapping interface according to the plurality of interface parameters, and configuring a script command according to the plurality of access path parameters to realize the configuration of the running environment agent service.
Further, sending an access request of the application program to a server side indicated by the operating environment parameters according to the operating environment proxy service, including:
determining a server corresponding to an access request of an application program according to a script command of the running environment agent service;
and sending the access request to the server through a mapping interface of the running environment agent service.
Further, if the response result is response failure, the method further includes:
and adjusting the operating environment parameters according to the server information corresponding to the response result, and updating the operating environment parameters configured in the development frame.
According to a second aspect of the embodiments of the present invention, there is provided an apparatus for debugging an application program, including:
the installation module is used for installing a software package manager, building a development framework based on the software package manager, and installing a code building tool;
the parameter configuration module is used for configuring the operating environment parameters in the development framework and transmitting the operating environment parameters to the code construction tool;
the code project construction and proxy configuration module is used for constructing a code project according to the operating environment parameters by using a proxy construction tool, configuring operating environment proxy services, and packaging the constructed code project to obtain an application program;
and the debugging module is used for sending the access request of the application program to the server side indicated by the operating environment parameters according to the operating environment proxy service and receiving the response result so as to realize the debugging of the application program.
Further, if the response result is a response failure, the debugging module is further configured to:
and adjusting the operating environment parameters according to the server information corresponding to the response result, and updating the operating environment parameters configured in the development frame.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for debugging any one of the application programs as described above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, the program, when executed by a processor, implementing a debugging method for an application program as any one of the above.
One embodiment of the above invention has the following advantages or benefits: because the software package installation manager is adopted, a development framework is built based on the software package installation manager, and a code construction tool is installed; configuring operating environment parameters in a development framework, and transmitting the operating environment parameters to a code construction tool; constructing a code project according to the operating environment parameters by using an agent construction tool, configuring operating environment agent services, and packaging the constructed code project to obtain an application program; the method comprises the steps of sending an access request of an application program to a server indicated by running environment parameters according to the running environment proxy service, and receiving a response result to realize the technical means of debugging the application program, so that the technical problems of long debugging time consumption, poor debugging effect, low debugging accuracy and narrow applicable scene in the existing application system debugging method are solved, and the technical effects of improving the debugging efficiency and the debugging effect and expanding the applicable scene of debugging are further achieved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a debugging method of an application program according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a main flow of a debugging method of an application program according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of main modules of a debugging device of an application program provided according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a debugging method of an application program according to a first embodiment of the present invention; as shown in fig. 1, the method for debugging an application according to an embodiment of the present invention mainly includes:
and S101, installing a software package manager, building a development framework based on the software package manager, and installing a code building tool.
Specifically, according to the embodiment of the present invention, the software Package Manager is an NPM (Node Package Manager), which is a Package Manager of Node. Js (a development framework widely used in the field of front-end development), which simplifies syntax and logic commonly used in the Web technology into a template language, greatly reduces the complexity of application development. The code construction tool is Webpack and is used for analyzing and packaging static codes, dividing semantization codes into blocks according to size, function or type, and facilitating browser loading according to needs.
Specifically, according to a specific implementation manner of the embodiment of the present invention, the node may be downloaded and installed from node js official network, wherein a software package manager (NPM) is integrated in the node, so that the installation of the node is realized (specifically, according to the needs of practical situations, for example, when some NPM resources are shielded, which often causes the NPM installation dependent package to fail, a mirror image softsoftware package manager may also be installed). Then globally installing a code construction tool Webpack and building a development framework, specifically, building vue development environment, installing vue scaffold tools vue-cli (the version of the development framework can be upgraded according to actual needs), wherein the vue-cli development framework is beneficial to reducing the use difficulty of the Webpack and simultaneously supporting hot update, and subsequently configuring a running environment agent service (Webpack-dev-server) equivalently starts a request server so as to debug an application program.
And S102, configuring the operating environment parameters in the development framework, and transmitting the operating environment parameters to a code construction tool.
Specifically, according to the embodiment of the present invention, the operating environment parameters include interface parameters and access path parameters, where the interface parameters indicate interface parameters corresponding to the to-be-accessed server, and the access path parameters indicate path parameters for accessing the to-be-accessed server.
Because the service end to be accessed is oriented to different client versions and different platform users, multi-version and multi-type interfaces are often provided, the debugging process can be executed by accessing the service end to be accessed through corresponding interface parameters for application programs under different operating environments through configuring the interface parameters, and therefore the debugging effect is improved. And the access path parameters are configured, so that the application program can access a plurality of service terminals.
And step S103, constructing a code project according to the operating environment parameters by using an agent construction tool, configuring operating environment agent services, and packaging the constructed code project to obtain the application program.
Specifically, according to the embodiment of the present invention, the number of the interface parameters is plural; constructing a code project according to the operating environment parameters by using an agent construction tool, and packaging the constructed code project to obtain an application program, wherein the method comprises the following steps:
and respectively constructing code items according to the plurality of interface parameters by using an agent construction tool, and packaging the code items to obtain a plurality of application programs under the operating environment.
According to the embodiment of the invention, different interface parameters are configured for the application program under different operating environments in a targeted manner according to the interface parameters of the service end to be accessed facing different client versions and different platform users, so that the application program can access the corresponding service end, and the debugging of the application program is completed.
Further, according to the embodiment of the present invention, the number of the access path parameters is plural; the step of configuring the runtime environment proxy service includes:
and configuring a mapping interface according to the plurality of interface parameters, and configuring a script command according to the plurality of access path parameters to realize the configuration of the running environment agent service.
And step S104, sending the access request of the application program to a server indicated by the operating environment parameters according to the operating environment proxy service, and receiving a response result to debug the application program.
Specifically, according to an embodiment of the present invention, the sending an access request of an application to a server indicated by a parameter of an operating environment according to an operating environment proxy service includes:
determining a server corresponding to an access request of an application program according to a script command of the running environment agent service;
and sending the access request to the server through a mapping interface of the running environment agent service.
Preferably, according to the embodiment of the present invention, if the response result is a response failure, the method further includes:
and adjusting the operating environment parameters according to the server information corresponding to the response result, and updating the operating environment parameters configured in the development frame.
Through the setting, the operating environment parameters are dynamically updated according to the response result, and the debugging efficiency can be further improved.
According to the technical scheme of the embodiment of the invention, because the software package manager is installed, a development framework is built based on the software package manager, and a code construction tool is installed; configuring operating environment parameters in a development framework, and transmitting the operating environment parameters to a code construction tool; constructing a code project according to the operating environment parameters by using an agent construction tool, configuring operating environment agent services, and packaging the constructed code project to obtain an application program; the method comprises the steps of sending an access request of an application program to a server indicated by running environment parameters according to the running environment proxy service, and receiving a response result to realize the technical means of debugging the application program, so that the technical problems of long debugging time consumption, poor debugging effect, low debugging accuracy and narrow applicable scene in the existing application system debugging method are solved, and the technical effects of improving the debugging efficiency and the debugging effect and expanding the applicable scene of debugging are further achieved.
Fig. 2 is a schematic diagram of a main flow of a debugging method of an application program according to a second embodiment of the present invention; as shown in fig. 2, the method for debugging an application according to an embodiment of the present invention mainly includes:
step S201, installing a software package manager, building a development framework based on the software package manager, and installing a code building tool.
Specifically, according to a specific implementation manner of the embodiment of the present invention, the node may be downloaded and installed from node js official network, wherein a software package manager (NPM) is integrated in the node, so that the installation of the node is realized (specifically, according to the needs of practical situations, for example, when some NPM resources are shielded, which often causes the NPM installation dependent package to fail, a mirror image softsoftware package manager may also be installed). Then globally installing a code construction tool Webpack and building a development framework, specifically, building vue development environment, installing vue scaffold tools vue-cli (the version of the development framework can be upgraded according to actual needs), wherein the vue-cli development framework is beneficial to reducing the use difficulty of the Webpack and simultaneously supporting hot update, and subsequently configuring a running environment agent service (Webpack-dev-server) equivalently starts a request server so as to debug an application program.
Step S202, interface parameters and access path parameters are configured in the development framework, and the configured interface parameters and the access path parameters are transmitted to a code construction tool.
Specifically, according to the embodiment of the present invention, the operating environment parameter includes a plurality of interface parameters, and when a configuration process is performed, a code of an agent field (proxy field) may be added to the vue.config.js file to indicate the interface parameter to be proxied.
The proxy field is a mapping for configuring proxy services in the Webpack, and may be written as a string or an object, which is written as an object in this embodiment. Because the service end to be accessed is oriented to different client versions and different platform users, multi-version and multi-type interfaces are often provided, the debugging process can be executed by accessing the service end to be accessed through corresponding interface parameters for application programs under different operating environments through configuring the interface parameters, and therefore the debugging effect is improved. And the access path parameters are configured, so that the application program can access a plurality of service terminals.
Further, according to the embodiment of the present invention, the operating environment parameter includes a plurality of access path parameters, and during a specific configuration process, a code of a cliprts field may be added to a package json file to indicate the plurality of access path parameters, so that a corresponding operation is performed according to the indicated operating environment.
The script command for starting the PROXY service (devServer) of the operating environment is defined in the scraptts field, cross-env defined in the scraptts field realizes the compatibility of linux and windows terminal commands, set NODE _ PROXY _ XXX defined in the scraptts field transmits a custom parameter to the Webpack program, the custom parameter is applied to the PROXY field of the PROXY service of the operating environment when a code item is constructed, and when the application program runs, PROXY work can be automatically carried out according to the NODE _ PROXY _ XXX value specified during construction.
And step S203, respectively constructing code items according to the plurality of interface parameters by using an agent construction tool, and packaging the code items to obtain a plurality of application programs under the operating environment.
According to the embodiment of the invention, different interface parameters are configured for the application program under different operating environments in a targeted manner according to the interface parameters of the service end to be accessed facing different client versions and different platform users, so that the application program can access the corresponding service end, and the debugging of the application program is completed.
Step S204, configuring the mapping interface according to the plurality of interface parameters, and configuring the script command according to the plurality of access path parameters to realize the configuration of the operating environment agent service.
Step S205, determining a server corresponding to the access request of the application program according to the script command of the operating environment agent service; and sending the access request to the server through a mapping interface of the running environment agent service.
Further, according to the embodiment of the present invention, if the response result is a response failure, the method further includes:
and adjusting the operating environment parameters according to the server information corresponding to the response result, and updating the operating environment parameters configured in the development frame.
Through the setting, the operating environment parameters are dynamically updated according to the response result, and the debugging efficiency can be further improved.
According to the technical scheme of the embodiment of the invention, because the software package manager is installed, a development framework is built based on the software package manager, and a code construction tool is installed; configuring operating environment parameters in a development framework, and transmitting the operating environment parameters to a code construction tool; constructing a code project according to the operating environment parameters by using an agent construction tool, configuring operating environment agent services, and packaging the constructed code project to obtain an application program; the method comprises the steps of sending an access request of an application program to a server indicated by running environment parameters according to the running environment proxy service, and receiving a response result to realize the technical means of debugging the application program, so that the technical problems of long debugging time consumption, poor debugging effect, low debugging accuracy and narrow applicable scene in the existing application system debugging method are solved, and the technical effects of improving the debugging efficiency and the debugging effect and expanding the applicable scene of debugging are further achieved.
FIG. 3 is a schematic diagram of main modules of a debugging device of an application program provided according to an embodiment of the present invention; as shown in fig. 3, the debugging apparatus 300 for an application according to an embodiment of the present invention mainly includes:
the installation module 301 is configured to install a software package manager, build a development framework based on the software package manager, and install a code building tool.
Specifically, according to a specific implementation manner of the embodiment of the present invention, the node may be downloaded and installed from node js official network, wherein a software package manager (NPM) is integrated in the node, so that the installation of the node is realized (specifically, according to the needs of practical situations, for example, when some NPM resources are shielded, which often causes the NPM installation dependent package to fail, a mirror image softsoftware package manager may also be installed). Then globally installing a code construction tool Webpack and building a development framework, specifically, building vue development environment, installing vue scaffold tools vue-cli (the version of the development framework can be upgraded according to actual needs), wherein the vue-cli development framework is beneficial to reducing the use difficulty of the Webpack and simultaneously supporting hot update, and subsequently configuring a running environment agent service (Webpack-dev-server) equivalently starts a request server so as to debug an application program.
And the parameter configuration module 302 is used for configuring the operating environment parameters in the development framework and transmitting the operating environment parameters to the code construction tool.
Specifically, according to the embodiment of the present invention, the operating environment parameters include interface parameters and access path parameters, where the interface parameters indicate interface parameters corresponding to the to-be-accessed server, and the access path parameters indicate path parameters for accessing the to-be-accessed server.
Because the service end to be accessed is oriented to different client versions and different platform users, multi-version and multi-type interfaces are often provided, the debugging process can be executed by accessing the service end to be accessed through corresponding interface parameters for application programs under different operating environments through configuring the interface parameters, and therefore the debugging effect is improved. And the access path parameters are configured, so that the application program can access a plurality of service terminals.
And the code project constructing and agent configuring module 303 is configured to construct a code project according to the operating environment parameters by using an agent constructing tool, configure an operating environment agent service, and package the constructed code project to obtain an application program.
Specifically, according to the embodiment of the present invention, the number of the interface parameters is plural; furthermore, the number of the interface parameters and the access path parameters is multiple; the code project construction and agent configuration module is used for:
respectively constructing code items according to the plurality of interface parameters by using an agent construction tool, and packaging the code items to obtain a plurality of application programs under the operating environment;
configuring mapping interface according to multiple interface parameters, and configuring script command according to multiple access path parameters to implement configuration of running environment proxy service
According to the embodiment of the invention, different interface parameters are configured for the application program under different operating environments in a targeted manner according to the interface parameters of the service end to be accessed facing different client versions and different platform users, so that the application program can access the corresponding service end, and the debugging of the application program is completed.
And the debugging module 304 is configured to send an access request of the application program to the server side indicated by the operating environment parameter according to the operating environment proxy service, and receive a response result, so as to implement debugging of the application program.
Specifically, according to an embodiment of the present invention, the debugging module 304 is configured to:
determining a server corresponding to an access request of an application program according to a script command of the running environment agent service;
and sending the access request to the server through a mapping interface of the running environment agent service.
Further, according to the embodiment of the present invention, if the response result is a response failure, the debugging module is configured to:
and adjusting the operating environment parameters according to the server information corresponding to the response result, and updating the operating environment parameters configured in the development frame.
Through the setting, the operating environment parameters are dynamically updated according to the response result, and the debugging efficiency can be further improved.
According to the technical scheme of the embodiment of the invention, because the software package manager is installed, a development framework is built based on the software package manager, and a code construction tool is installed; configuring operating environment parameters in a development framework, and transmitting the operating environment parameters to a code construction tool; constructing a code project according to the operating environment parameters by using an agent construction tool, configuring operating environment agent services, and packaging the constructed code project to obtain an application program; the method comprises the steps of sending an access request of an application program to a server indicated by running environment parameters according to the running environment proxy service, and receiving a response result to realize the technical means of debugging the application program, so that the technical problems of long debugging time consumption, poor debugging effect, low debugging accuracy and narrow applicable scene in the existing application system debugging method are solved, and the technical effects of improving the debugging efficiency and the debugging effect and expanding the applicable scene of debugging are further achieved.
Fig. 4 shows an exemplary system architecture 400 of a debugging method of an application or a debugging apparatus of an application to which an embodiment of the present invention can be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405 (this architecture is merely an example, and the components included in a particular architecture may be adapted according to application specific circumstances). The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 over a network 404 to receive or send messages or the like. The terminal devices 401, 402, 403 may have installed thereon various communication client applications, such as an application debugging application, a data processing application, a search application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only).
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server that provides various services, such as a server (for example only) for (debugging applications/performing data processing) users using the terminal devices 401, 402, 403. The server may analyze and/or otherwise process the received data, such as the operating environment parameters, and may feed back the processing result (e.g., the response result, which is merely an example) to the terminal device.
It should be noted that the application program debugging method provided by the embodiment of the present invention is generally executed by the server 405, and accordingly, the application program debugging apparatus is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, a block diagram of a computer system 500 suitable for use with a terminal device or server implementing an embodiment of the invention is shown. The terminal device or the server shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises an installation module, a parameter configuration module, a code item construction and proxy configuration module and a debugging module. Where the names of these modules do not in some cases constitute a limitation on the module itself, for example, an installation module may also be described as a "module for installing a software package manager, building a development framework based on the software package manager, and installing a code building tool".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: installing a software package manager, building a development framework based on the software package manager, and installing a code construction tool; configuring operating environment parameters in a development framework, and transmitting the operating environment parameters to a code construction tool; constructing a code project according to the operating environment parameters by using an agent construction tool, configuring operating environment agent services, and packaging the constructed code project to obtain an application program; and sending the access request of the application program to a server indicated by the operating environment parameters according to the operating environment proxy service, and receiving a response result to debug the application program.
According to the technical scheme of the embodiment of the invention, because the software package manager is installed, a development framework is built based on the software package manager, and a code construction tool is installed; configuring operating environment parameters in a development framework, and transmitting the operating environment parameters to a code construction tool; constructing a code project according to the operating environment parameters by using an agent construction tool, configuring operating environment agent services, and packaging the constructed code project to obtain an application program; the method comprises the steps of sending an access request of an application program to a server indicated by running environment parameters according to the running environment proxy service, and receiving a response result to realize the technical means of debugging the application program, so that the technical problems of long debugging time consumption, poor debugging effect, low debugging accuracy and narrow applicable scene in the existing application system debugging method are solved, and the technical effects of improving the debugging efficiency and the debugging effect and expanding the applicable scene of debugging are further achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for debugging an application program, comprising:
installing a software package manager, building a development framework based on the software package manager, and installing a code construction tool;
configuring operating environment parameters in the development framework and transmitting the operating environment parameters to the code construction tool;
constructing a code project according to the operating environment parameters by using the agent construction tool, configuring operating environment agent service, and packaging the constructed code project to obtain an application program;
and sending the access request of the application program to a server indicated by the operating environment parameters according to the operating environment proxy service, and receiving a response result to debug the application program.
2. The debugging method of the application program according to claim 1, wherein the operating environment parameters include interface parameters and access path parameters, wherein the interface parameters indicate interface parameters corresponding to the service end to be accessed, and the access path parameters indicate path parameters for accessing the service end to be accessed.
3. The debugging method of an application program according to claim 2, wherein the number of said interface parameters is plural; constructing a code project according to the operating environment parameters by using the agent construction tool, and packaging the constructed code project to obtain an application program, wherein the method comprises the following steps:
and respectively constructing code items according to the plurality of interface parameters by using the agent construction tool, and packaging the code items to obtain a plurality of application programs under the operating environment.
4. The debugging method of an application program according to claim 3, wherein the number of said access path parameters is plural; the step of configuring the runtime environment proxy service includes:
and configuring a mapping interface according to the plurality of interface parameters, and configuring a script command according to the plurality of access path parameters so as to realize the configuration of the operating environment agent service.
5. The method for debugging the application program according to claim 4, wherein the sending the access request of the application program to the server side indicated by the operating environment parameters according to the operating environment proxy service comprises:
determining a server corresponding to the access request of the application program according to the script command of the operating environment agent service;
and sending the access request to the server through a mapping interface of the operating environment agent.
6. The method for debugging an application program according to claim 1, wherein if the response result is a response failure, further comprising:
and adjusting the operating environment parameters according to the server information corresponding to the response result, and updating the operating environment parameters configured in the development frame.
7. An apparatus for debugging an application program, comprising:
the installation module is used for installing a software package manager, building a development framework based on the software package manager, and installing a code building tool;
the parameter configuration module is used for configuring the operating environment parameters in the development framework and transmitting the operating environment parameters to the code construction tool;
the code project construction and proxy configuration module is used for constructing a code project according to the operating environment parameters by using the proxy construction tool, configuring operating environment proxy service, and packaging the constructed code project to obtain an application program;
and the debugging module is used for sending the access request of the application program to the server indicated by the operating environment parameters according to the operating environment proxy service and receiving a response result so as to realize the debugging of the application program.
8. The debugging apparatus of claim 7, wherein if the response result is a response failure, the debugging module is further configured to:
and adjusting the operating environment parameters according to the server information corresponding to the response result, and updating the operating environment parameters configured in the development frame.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202110827275.2A 2021-07-21 2021-07-21 Application program debugging method and device, electronic equipment and computer readable medium Active CN113468067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110827275.2A CN113468067B (en) 2021-07-21 2021-07-21 Application program debugging method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110827275.2A CN113468067B (en) 2021-07-21 2021-07-21 Application program debugging method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN113468067A true CN113468067A (en) 2021-10-01
CN113468067B CN113468067B (en) 2022-12-13

Family

ID=77881733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110827275.2A Active CN113468067B (en) 2021-07-21 2021-07-21 Application program debugging method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN113468067B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113918239A (en) * 2021-10-14 2022-01-11 上海幻电信息科技有限公司 Code implementation method and system
CN116795453A (en) * 2023-08-28 2023-09-22 成都中科合迅科技有限公司 Multi-CPU architecture call control method and system for application program

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180081661A1 (en) * 2016-09-16 2018-03-22 Microsoft Technology Licensing, Llc Optimization for Multi-Project Package Manager
CN108376073A (en) * 2016-11-15 2018-08-07 平安科技(深圳)有限公司 A kind of test software packet generation method and terminal
CN110377514A (en) * 2019-07-12 2019-10-25 中汇信息技术(上海)有限公司 Management method, device, electronic equipment and the storage medium of software component
CN110781083A (en) * 2019-10-18 2020-02-11 苏宁消费金融有限公司 H5 client code setting multi-environment testing method and system
CN111176859A (en) * 2019-11-26 2020-05-19 腾讯云计算(北京)有限责任公司 Service calling method and device and electronic equipment
CN111338939A (en) * 2020-02-21 2020-06-26 网易传媒科技(北京)有限公司 Application program debugging method, medium, device and computing equipment
CN111414154A (en) * 2020-03-31 2020-07-14 中国建设银行股份有限公司 Method and device for front-end development, electronic equipment and storage medium
CN112235262A (en) * 2020-09-26 2021-01-15 建信金融科技有限责任公司 Message analysis method and device, electronic equipment and computer readable storage medium
CN112380129A (en) * 2020-11-18 2021-02-19 平安普惠企业管理有限公司 Debugging method, device, equipment and medium suitable for docking agent system
CN112559350A (en) * 2020-12-16 2021-03-26 杭州数梦工场科技有限公司 Debugging method, device and equipment for front-end development page and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180081661A1 (en) * 2016-09-16 2018-03-22 Microsoft Technology Licensing, Llc Optimization for Multi-Project Package Manager
CN108376073A (en) * 2016-11-15 2018-08-07 平安科技(深圳)有限公司 A kind of test software packet generation method and terminal
CN110377514A (en) * 2019-07-12 2019-10-25 中汇信息技术(上海)有限公司 Management method, device, electronic equipment and the storage medium of software component
CN110781083A (en) * 2019-10-18 2020-02-11 苏宁消费金融有限公司 H5 client code setting multi-environment testing method and system
CN111176859A (en) * 2019-11-26 2020-05-19 腾讯云计算(北京)有限责任公司 Service calling method and device and electronic equipment
CN111338939A (en) * 2020-02-21 2020-06-26 网易传媒科技(北京)有限公司 Application program debugging method, medium, device and computing equipment
CN111414154A (en) * 2020-03-31 2020-07-14 中国建设银行股份有限公司 Method and device for front-end development, electronic equipment and storage medium
CN112235262A (en) * 2020-09-26 2021-01-15 建信金融科技有限责任公司 Message analysis method and device, electronic equipment and computer readable storage medium
CN112380129A (en) * 2020-11-18 2021-02-19 平安普惠企业管理有限公司 Debugging method, device, equipment and medium suitable for docking agent system
CN112559350A (en) * 2020-12-16 2021-03-26 杭州数梦工场科技有限公司 Debugging method, device and equipment for front-end development page and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
温玮等: "支持MDD的代码生成、映射与逆向技术研究", 《计算机工程与应用》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113918239A (en) * 2021-10-14 2022-01-11 上海幻电信息科技有限公司 Code implementation method and system
CN113918239B (en) * 2021-10-14 2024-05-17 上海幻电信息科技有限公司 Code implementation method and system
CN116795453A (en) * 2023-08-28 2023-09-22 成都中科合迅科技有限公司 Multi-CPU architecture call control method and system for application program
CN116795453B (en) * 2023-08-28 2023-11-03 成都中科合迅科技有限公司 Multi-CPU architecture call control method and system for application program

Also Published As

Publication number Publication date
CN113468067B (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN110324169B (en) Interface management method and device
CN113468067B (en) Application program debugging method and device, electronic equipment and computer readable medium
CN113760251B (en) Form development method and device based on Vue
CN111221572B (en) Method, device, medium and equipment for automatically adapting to running environment
CN111026439B (en) Application program compatibility method, device, equipment and computer storage medium
CN107644075B (en) Method and device for collecting page information
CN113760324A (en) Method and device for constructing micro front-end application
CN113821352A (en) Remote service calling method and device
KR20220151585A (en) Business data processing method, apparatus, electronic apparatus, storage media and computer program
CN110888639A (en) Business code compiling and packaging method and device
CN112631590A (en) Component library generation method and device, electronic equipment and computer readable medium
CN110221840B (en) Function implementation method and device of application program, equipment and storage medium
CN113709243B (en) Equipment remote control method and device, electronic equipment and storage medium
CN112988588B (en) Client software debugging method and device, storage medium and electronic equipment
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN112596854A (en) Method and device for continuously integrating running of assembly line
CN112084254A (en) Data synchronization method and system
CN110806967A (en) Unit testing method and device
US11372627B2 (en) System and method for providing integrated development environment (IDE) for programmable software system
CN115167874A (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN112506781A (en) Test monitoring method, test monitoring device, electronic device, storage medium, and program product
CN113448602A (en) Version updating method and device
CN108170557B (en) Method and apparatus for outputting information
CN112433938A (en) Method and device for testing application of mobile terminal
CN113704079A (en) Interface testing method and device based on Protobuf

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221008

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 12 / F, 15 / F, No. 99, Yincheng Road, Shanghai pilot Free Trade Zone, 200120

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant