CN112925715A - Application debugging method and device of mobile terminal - Google Patents

Application debugging method and device of mobile terminal Download PDF

Info

Publication number
CN112925715A
CN112925715A CN202110264376.3A CN202110264376A CN112925715A CN 112925715 A CN112925715 A CN 112925715A CN 202110264376 A CN202110264376 A CN 202110264376A CN 112925715 A CN112925715 A CN 112925715A
Authority
CN
China
Prior art keywords
file
address
static resource
downloading
resource file
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.)
Pending
Application number
CN202110264376.3A
Other languages
Chinese (zh)
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.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology 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 Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110264376.3A priority Critical patent/CN112925715A/en
Publication of CN112925715A publication Critical patent/CN112925715A/en
Pending legal-status Critical Current

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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The invention provides an application debugging method and device of a mobile terminal, which can be used in the financial field or other technical fields. The method comprises the following steps: scanning a two-dimensional code provided by a development terminal, and analyzing the two-dimensional code to obtain a file downloading address; the two-dimensional code is generated in advance by the development terminal based on an IP address and a file path; downloading a static resource file according to the file downloading address; rendering the static resource files into a container. The device is used for executing the method. The application debugging method and the device of the mobile terminal provided by the embodiment of the invention improve the transmission efficiency of the static resource file in the development and test process.

Description

Application debugging method and device of mobile terminal
Technical Field
The invention relates to the technical field of application development, in particular to an application debugging method and device of a mobile terminal.
Background
Currently, emerging technologies such as Weex and ReactNative are increasingly used in a development mode of an Application program (APP) of a mobile terminal to realize one-time development and multi-terminal multiplexing.
In the prior art, in order to realize the rapid debugging of a Weex page developed by a computer end in a research and development process in a mobile end APP, an iOS simulator and an Android simulator of the computer end are mainly used. Front-end developers need to install a front-end research and development environment on a computer and configure iOS and Android development environments. To send the Weex page from the computer to the mobile for testing, a series of operations are also required by the front-end developer. Firstly, after a front-end developer develops a Weex page at a computer end, manually packaging the Weex page into a JavaScript file by using a scaffold of a desktop Weex program; secondly, a front-end developer needs to establish a set of development and debugging environment of a mobile terminal on a computer terminal, if the mobile terminal is an iOS application, an XCode development tool needs to be installed and the iOS development environment needs to be configured, which has certain technical difficulty for the front-end developer; then, after configuring a development tool and a development environment of the mobile terminal, a front-end developer needs to manually deploy a packed Weex page JavaScript file into the development environment of the mobile terminal for a mobile terminal simulator to use; then, a front-end developer needs to start a simulator to run a debugging program of the APP through a development tool (such as XCode) of the mobile terminal, and the Weex SDK embedded in the APP debugging program can analyze the JavaScript file of the Weex page and render the JavaScript file into an APP container, so as to preview the Weex page and debug. If the front-end developer modifies the code of the Weex page and wants to debug again in the mobile development simulator, the above process needs to be redone. And the code of the Weex page is modified frequently in the research and development and debugging processes, and the debugging process is repeated continuously, so that the debugging process of the Weex page is complicated and the efficiency is low.
Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide an application debugging method and apparatus for a mobile terminal, which can at least partially solve the problems in the prior art.
In one aspect, the present invention provides an application debugging method for a mobile terminal, including:
scanning a two-dimensional code provided by a development terminal, and analyzing the two-dimensional code to obtain a file downloading address; the two-dimensional code is generated in advance by the development terminal based on an IP address and a file path;
downloading a static resource file according to the file downloading address;
rendering the static resource files into a container.
In another aspect, the present invention provides an application debugging apparatus for a mobile terminal, including:
the scanning module is used for scanning the two-dimensional code provided by the development terminal and analyzing the two-dimensional code to obtain a file downloading address; the two-dimensional code is generated in advance by the development terminal based on an IP address and a file path;
the first downloading module is used for downloading the static resource file according to the file downloading address;
and the rendering module is used for rendering the static resource file into a container.
In another aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the application debugging method of the mobile terminal according to any one of the above embodiments when executing the computer program.
In still another aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the application debugging method of the mobile terminal according to any one of the above embodiments.
The application debugging method and device of the mobile terminal provided by the embodiment of the invention can scan the two-dimensional code provided by the development terminal, analyze the two-dimensional code to obtain the file download address, download the static resource file according to the file download address, render the static resource file into the container, do not need to configure the development tool and the development and debugging environment of the mobile terminal at the development terminal, and improve the transmission efficiency of the static resource file in the development and testing process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a flowchart illustrating an application debugging method of a mobile terminal according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating an application debugging method of a mobile terminal according to another embodiment of the present invention.
Fig. 3 is a flowchart illustrating an application debugging method of a mobile terminal according to another embodiment of the present invention.
Fig. 4 is a timing flowchart of an application debugging method of a mobile terminal according to an embodiment of the present invention.
Fig. 5 is a timing flowchart of an application debugging method of a mobile terminal according to another embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an application debugging apparatus of a mobile terminal according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an application debugging apparatus of a mobile terminal according to still another embodiment of the present invention.
Fig. 8 is a schematic structural diagram of an application debugging apparatus of a mobile terminal according to another embodiment of the present invention.
Fig. 9 is a schematic structural diagram of an application debugging apparatus of a mobile terminal according to yet another embodiment of the present invention.
Fig. 10 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Fig. 1 is a schematic flowchart of an application debugging method of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 1, the application debugging method of the mobile terminal according to the embodiment of the present invention includes:
s101, scanning a two-dimensional code provided by a development terminal, and analyzing the two-dimensional code to obtain a file downloading address; the two-dimensional code is generated in advance by the development terminal based on an IP address and a file path;
specifically, the mobile terminal scans the two-dimensional code provided by the development terminal, and then analyzes the two-dimensional code to obtain a file download address. The two-dimensional code is generated in advance by the development terminal based on the IP address and the file path, a developer can pack developed pages into a static resource file through the development terminal, then the development terminal can generate the two-dimensional code according to the local IP address and the storage path of the static resource file, and the generated two-dimensional code comprises the file download address of the static resource file. The development terminal includes, but is not limited to, a desktop computer, a notebook computer, and the like. The mobile terminal includes but is not limited to a smart phone, a tablet computer, and the like.
S102, downloading the static resource file according to the file downloading address;
specifically, after obtaining the file download address, the mobile terminal may access the development terminal according to the file download address, and download the static resource file from the development terminal.
S103, rendering the static resource file into a container.
Specifically, after downloading the static resource file to the local, the mobile terminal renders the static resource file to a container of an APP that needs debugging, so that a developer can check and debug the static resource file.
The application debugging method of the mobile terminal provided by the embodiment of the invention can scan the two-dimensional code provided by the development terminal, analyze the two-dimensional code to obtain the file downloading address, download the static resource file according to the file downloading address, render the static resource file into the container, and improve the transmission efficiency of the static resource file in the development test process without configuring the development tool and the development and debugging environment of the mobile terminal at the development terminal.
Fig. 2 is a schematic flowchart of an application debugging method of a mobile terminal according to another embodiment of the present invention, and as shown in fig. 2, on the basis of the foregoing embodiments, further, the application debugging method of the mobile terminal according to the embodiment of the present invention further includes:
s201, receiving the updating information sent by the development terminal;
in particular, due to the development and testing process of APP, debugging is often performed repeatedly. After the developer updates the static resource file, the developer may send update information to the mobile terminal to prompt the mobile terminal that the static resource file is updated. The mobile terminal receives the update information. Wherein the development terminal and the mobile terminal have previously established a communication connection.
S202, downloading the updated static resource file again based on the file downloading address and rendering the static resource file into a container.
Specifically, after receiving the update information, the mobile terminal downloads the updated static resource file from the file download address based on the file download address, and then renders the static resource file into a corresponding APP container for a developer to view and debug the program.
According to the application debugging method of the mobile terminal, provided by the embodiment of the invention, after the static resource file is updated, the updating information can be actively pushed to the mobile terminal, so that the mobile terminal automatically downloads the updated static resource file and loads the updated static resource file into the container, the participation of developers is reduced, and the acquisition efficiency of the static resource file in the debugging process is improved.
Fig. 3 is a schematic flowchart of an application debugging method of a mobile terminal according to another embodiment of the present invention, and as shown in fig. 3, on the basis of the foregoing embodiments, further, the application debugging method of the mobile terminal according to the embodiment of the present invention further includes:
s301, obtaining an IP address according to the file downloading address;
specifically, since the file download address includes the IP address of the development terminal, the mobile terminal may obtain the IP address of the development terminal by parsing from the file download address.
S302, long connection is established with the development terminal based on the IP address.
Specifically, after obtaining the IP address, the mobile terminal may establish a long connection with the development terminal according to the IP address. Through the established long connection, the mobile terminal and the development terminal can keep communication all the time. The development terminal can send the updated information to the mobile terminal in time, and the information interaction efficiency of the development terminal and the mobile terminal is improved.
On the basis of the foregoing embodiments, further, the method for debugging an application of a mobile terminal according to an embodiment of the present invention further includes:
and receiving an updating instruction, and re-downloading the updated static resource file based on the file downloading address and rendering the static resource file into a container.
Specifically, after the static resource file is updated by the development terminal, the developer may also download the static resource file from the development terminal in a manner of manual triggering at the mobile terminal. The method comprises the steps that a developer can click a virtual key on the mobile terminal to trigger an updating instruction, the mobile terminal receives the updating instruction, then downloads an updated static resource file again based on the file downloading address, and then renders the static resource file to a corresponding APP container so that the developer can check and debug programs.
The following describes an implementation flow of the application debugging method of the mobile terminal provided by the embodiment of the present invention by taking a debugging process of a Weex page as an example. Weex: is a framework which can use the modern Web technology to develop high-performance native applications (iOS, Android).
Fig. 4 is a timing flowchart of an application debugging method of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 4, the flow of the application debugging method of the mobile terminal according to the embodiment of the present invention is as follows:
and step one, packaging the file. After a developer develops a Weex page on a computer, the Weex page can be packaged into a JavaScript static resource file through a desktop Weex application program scaffold and stored, and the stored JavaScript static resource file corresponds to a file path. The desktop Weex application program is pre-installed on the computer.
And secondly, starting the network service. The method comprises the steps that a developer starts a local node.js service by applying a scaffold through a desktop-end Weex, the purpose of the service is to provide an IP address which can be shared and accessed in a local area network, and other equipment in the local area network can be in communication connection with a computer based on the IP address.
And thirdly, generating the two-dimensional code. After the node.js server is started, the JavaScript static resource file can be accessed by the equipment in the local area network, but the APP of the test mobile phone can be accessed only by manually inputting the IP address and the file path corresponding to the JavaScript static resource file. In order to avoid the manual input process, a developer can generate a two-dimensional code on a computer through a scaffold of the Weex application program according to a file path corresponding to the JavaScript static resource file and the IP address, print the two-dimensional code in a console of a browser, and display the generated two-dimensional code.
And fourthly, scanning the two-dimensional code. And the developer scans the two-dimensional code displayed by the computer through the testing mobile phone to obtain corresponding two-dimensional code information.
And fifthly, analyzing the two-dimensional code. And the test mobile phone analyzes the two-dimension code information to obtain a file downloading address of the JavaScript static resource file.
And sixthly, downloading the file. And the test mobile phone downloads the JavaScript static resource file from the computer to the test mobile phone through the file downloading address of the JavaScript static resource file.
And seventhly, analyzing the file. After downloading the JavaScript static resource file, the test handset analyzes the JavaScript static resource file by using the WeexSDK.
And eighthly, rendering the file. And the test mobile phone renders the analyzed content into an APP container for a developer to check and debug.
According to the interaction process, few interactions needing developers to participate are needed, much work is replaced by the automation work of the Weex application program scaffold, and the whole process is very efficient. In addition, in the process, developers do not need to configure a development tool and a development and debugging environment of the mobile terminal in a local computer, and only need to provide an APP for debugging to be installed in the mobile phone by the developers at the mobile terminal.
When a developer needs to frequently modify the code of the Weex page in the debugging process, the JavaScript static resource file also needs to be updated synchronously, and then the JavaScript static resource file which needs to be updated again is rendered into the APP container for displaying and debugging in the test mobile phone.
Fig. 5 is a timing flowchart of an application debugging method of a mobile terminal according to another embodiment of the present invention, and as shown in fig. 5, the flow of the application debugging method of the mobile terminal according to the embodiment of the present invention is as follows:
first, an IP address is obtained. The test mobile phone analyzes the two-dimension code information, and when the file download address of the JavaScript static resource file is obtained, the IP address of the computer can be obtained.
And secondly, establishing long connection. The testing mobile phone can establish Socket long connection with the computer according to the IP address of the computer, so that the APP on the testing mobile phone and the Weex application program on the computer can keep communication all the time.
And step three, packaging the update file. After a developer modifies the code of the Weex page on a computer, a JavaScript static resource file of the Weex page, namely an updated JavaScript static resource file, can be repackaged by using a scaffold at the desktop end Weex.
And step four, sending the updating information. After packaging is completed, the desktop Weex application scaffold on the computer sends update information to the APP of the test mobile phone through the established Socket long connection.
And fifthly, downloading the file. After receiving the update information, the APP of the test mobile phone downloads the updated JavaScript static resource file according to the file downloading address of the JavaScript static resource file.
And sixthly, analyzing the file. After downloading the updated JavaScript static resource file, the test handset analyzes the updated JavaScript static resource file by using the WeexSDK.
And seventhly, rendering the file. And the test mobile phone renders the analyzed content into an APP container for a developer to check and debug.
In the development process, when a developer frequently modifies the Weex file to debug, the developer only needs to modify the code of the Weex file, the desktop Weex application scaffold on the computer can automatically send update information, so that the test mobile phone downloads the updated JavaScript static resource file, the process does not need the developer to actively initiate interaction, and the research, development and debugging efficiency is greatly improved.
It can be known from the above embodiments that, when a developer develops a page on a computer, a corresponding static resource file is generated on the computer, and then a Weex lan server is operated on the computer by using node.js technology, so that the two-dimensional code can be scanned by using a test mobile phone to obtain a static file resource which is generated in the same lan and accessed by using the IP address of the computer. After the two-dimensional code is analyzed by the testing mobile phone to obtain the file downloading address of the static resource file, the static resource file can be downloaded into the testing mobile phone, and the static resource file is automatically analyzed by the WeexSDK and rendered into a Weex container of the APP. And frequent modification of Weex page codes can be involved in the development and debugging processes, effects can be displayed in APP timely, and the test mobile phone can download updated static resource files timely through long socket connection.
By the aid of the scheme, the mobile phone can be tested to scan the two-dimensional code, Weex pages can be loaded rapidly, and the trouble of manually inputting addresses is eliminated. Meanwhile, in the development process, after codes of the Weex page modified by developers are compiled, the desktop node.js service is connected with the Socket established by the APP before, the APP can be actively informed to refresh the Weex page, the development and debugging effects of quasi-synchronization of the desktop and the mobile terminal are achieved, and the development and debugging efficiency is greatly improved.
Fig. 6 is a schematic structural diagram of an application debugging apparatus of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 6, the application debugging apparatus of the mobile terminal according to the embodiment of the present invention includes a scanning module 601, a first downloading module 602, and a rendering module 603, where:
the scanning module 601 is configured to scan a two-dimensional code provided by a development terminal, and analyze the two-dimensional code to obtain a file download address; the two-dimensional code is generated in advance by the development terminal based on an IP address and a file path; the first downloading module 602 is configured to download the static resource file according to the file downloading address; the rendering module 603 is used to render the static resource files into containers.
Specifically, the scanning module 601 scans a two-dimensional code provided by the development terminal, and then parses the two-dimensional code to obtain a file download address. The two-dimensional code is generated in advance by the development terminal based on the IP address and the file path, a developer can pack developed pages into a static resource file through the development terminal, then the development terminal can generate the two-dimensional code according to the local IP address and the storage path of the static resource file, and the generated two-dimensional code comprises the file download address of the static resource file.
After obtaining the file download address, the first download module 602 may access the development terminal according to the file download address, and download the static resource file from the development terminal.
After the static resource file is downloaded locally, the rendering module 603 renders the static resource file into a container of an APP that needs debugging, so that a developer can view and debug the static resource file.
The application debugging device of the mobile terminal provided by the embodiment of the invention can scan the two-dimensional code provided by the development terminal, analyze the two-dimensional code to obtain the file downloading address, download the static resource file according to the file downloading address, render the static resource file into the container, and improve the transmission efficiency of the static resource file in the development test process without configuring the development tool and the development and debugging environment of the mobile terminal at the development terminal.
Fig. 7 is a schematic structural diagram of an application debugging apparatus of a mobile terminal according to still another embodiment of the present invention, and as shown in fig. 7, on the basis of the foregoing embodiments, further, the application debugging apparatus of the mobile terminal according to the embodiment of the present invention further includes a first receiving module 604 and a second downloading module 605, where:
the first receiving module 604 is configured to receive update information sent by the development terminal; the second download module 605 is used to re-download the updated static resource file based on the file download address and render into the container.
In particular, due to the development and testing process of APP, debugging is often performed repeatedly. After the developer updates the static resource file, the developer may send update information to the first receiving module 604 to prompt the first receiving module 604 that the static resource file is updated. The first receiving module 604 receives the updated information. Wherein the development terminal and the mobile terminal have previously established a communication connection.
After receiving the update information, the second download module 605 downloads the updated static resource file from the file download address based on the file download address, and then renders the static resource file into a corresponding APP container for a developer to view and debug the program.
Fig. 8 is a schematic structural diagram of an application debugging apparatus of a mobile terminal according to another embodiment of the present invention, as shown in fig. 8, on the basis of the foregoing embodiments, further, the application debugging apparatus of a mobile terminal according to the embodiment of the present invention further includes an obtaining module 606 and a establishing module 607, where:
the obtaining module 606 is configured to obtain an IP address according to the file download address; the establishing module 607 is configured to establish a long connection with the development terminal based on the IP address.
Specifically, since the file download address includes the IP address of the development terminal, the obtaining module 606 may obtain the IP address of the development terminal by parsing from the file download address.
After obtaining the IP address, the establishing module 607 may establish a long connection with the development terminal according to the IP address. The establishing module 607 and the development terminal can constantly maintain communication through the established long connection. The development terminal can send the updated information to the application debugging device of the mobile terminal in time, and the information interaction efficiency of the development terminal and the application debugging device of the mobile terminal is improved.
Fig. 9 is a schematic structural diagram of an application debugging apparatus of a mobile terminal according to another embodiment of the present invention, and as shown in fig. 9, on the basis of the foregoing embodiments, further, the application debugging apparatus of the mobile terminal according to the embodiment of the present invention further includes a second receiving module 608, where:
the second receiving module 608 is configured to receive the update instruction and re-download the updated static resource file based on the file download address and render the static resource file into the container.
Specifically, after the static resource file is updated by the development terminal, the developer may also download the static resource file from the development terminal in a manual triggering manner. The developer may click on the virtual key to trigger the update instruction, and the second receiving module 608 receives the update instruction, then downloads the updated static resource file again based on the file download address, and then renders the static resource file into a corresponding container of the APP, so that the developer can view and debug the program.
The embodiment of the apparatus provided in the embodiment of the present invention may be specifically configured to execute the processing flows of the above method embodiments, and the functions of the apparatus are not described herein again, and refer to the detailed description of the above method embodiments.
It should be noted that the application debugging method and apparatus for the mobile terminal provided in the embodiments of the present invention may be used in the financial field, and may also be used in any technical field other than the financial field.
Fig. 10 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 10, the electronic device may include: a processor (processor)1001, a communication Interface (communication Interface)1002, a memory (memory)1003 and a communication bus 1004, wherein the processor 1001, the communication Interface 1002 and the memory 1003 complete communication with each other through the communication bus 1004. Processor 1001 may call logic instructions in memory 1003 to perform the following method: scanning a two-dimensional code provided by a development terminal, and analyzing the two-dimensional code to obtain a file downloading address; the two-dimensional code is generated in advance by the development terminal based on an IP address and a file path; downloading a static resource file according to the file downloading address; rendering the static resource files into a container.
In addition, the logic instructions in the memory 1003 may be implemented in the form of software functional units and may be stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: scanning a two-dimensional code provided by a development terminal, and analyzing the two-dimensional code to obtain a file downloading address; the two-dimensional code is generated in advance by the development terminal based on an IP address and a file path; downloading a static resource file according to the file downloading address; rendering the static resource files into a container.
The present embodiment provides a computer-readable storage medium, which stores a computer program, where the computer program causes the computer to execute the method provided by the above method embodiments, for example, the method includes: scanning a two-dimensional code provided by a development terminal, and analyzing the two-dimensional code to obtain a file downloading address; the two-dimensional code is generated in advance by the development terminal based on an IP address and a file path; downloading a static resource file according to the file downloading address; rendering the static resource files into a container.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In the description herein, reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," "an example," "a particular example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. An application debugging method of a mobile terminal is characterized by comprising the following steps:
scanning a two-dimensional code provided by a development terminal, and analyzing the two-dimensional code to obtain a file downloading address; the two-dimensional code is generated in advance by the development terminal based on an IP address and a file path;
downloading a static resource file according to the file downloading address;
rendering the static resource files into a container.
2. The method of claim 1, further comprising:
receiving the updating information sent by the development terminal;
and re-downloading the updated static resource file based on the file downloading address and rendering the static resource file into the container.
3. The method of claim 2, further comprising:
obtaining an IP address according to the file downloading address;
and establishing long connection with the development terminal based on the IP address.
4. The method of any of claims 1 to 3, further comprising:
and receiving an updating instruction, and re-downloading the updated static resource file based on the file downloading address and rendering the static resource file into a container.
5. An application debugging apparatus of a mobile terminal, comprising:
the scanning module is used for scanning the two-dimensional code provided by the development terminal and analyzing the two-dimensional code to obtain a file downloading address; the two-dimensional code is generated in advance by the development terminal based on an IP address and a file path;
the first downloading module is used for downloading the static resource file according to the file downloading address;
and the rendering module is used for rendering the static resource file into a container.
6. The apparatus of claim 5, further comprising:
the first receiving module is used for receiving the updating information sent by the development terminal;
and the second downloading module is used for downloading the updated static resource file again based on the file downloading address and rendering the static resource file into the container.
7. The apparatus of claim 6, further comprising:
the obtaining module is used for obtaining an IP address according to the file downloading address;
and the establishing module is used for establishing long connection with the development terminal based on the IP address.
8. The apparatus of any one of claims 5 to 7, further comprising:
and the second receiving module is used for receiving the updating instruction, re-downloading the updated static resource file based on the file downloading address and rendering the static resource file into a container.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202110264376.3A 2021-03-11 2021-03-11 Application debugging method and device of mobile terminal Pending CN112925715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110264376.3A CN112925715A (en) 2021-03-11 2021-03-11 Application debugging method and device of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110264376.3A CN112925715A (en) 2021-03-11 2021-03-11 Application debugging method and device of mobile terminal

Publications (1)

Publication Number Publication Date
CN112925715A true CN112925715A (en) 2021-06-08

Family

ID=76172572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110264376.3A Pending CN112925715A (en) 2021-03-11 2021-03-11 Application debugging method and device of mobile terminal

Country Status (1)

Country Link
CN (1) CN112925715A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114174A (en) * 2022-08-02 2022-09-27 中航信移动科技有限公司 Debugging method for weex page, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115114174A (en) * 2022-08-02 2022-09-27 中航信移动科技有限公司 Debugging method for weex page, storage medium and electronic equipment
CN115114174B (en) * 2022-08-02 2022-12-13 中航信移动科技有限公司 Debugging method for weex page, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN110198247B (en) Interface test method and system
CN111158818A (en) Page rendering method and device
WO2005045667A2 (en) A method of rapid software application development for a wireless mobile device
CN109901834A (en) Document file page generation method, device, computer equipment and storage medium
CN113010827B (en) Page rendering method and device, electronic equipment and storage medium
CN108628626B (en) Development environment building method, code updating method and device
CN111026634A (en) Interface automation test system, method, device and storage medium
CN113127361B (en) Application development method and device, electronic equipment and storage medium
CN112114808A (en) Page rendering method and device and electronic equipment
CN112799663A (en) Page display method and device, computer readable storage medium and electronic equipment
CN111475161A (en) Method, device and equipment for accessing component
CN112925715A (en) Application debugging method and device of mobile terminal
CN111737614B (en) Page display method, page display device, electronic equipment and storage medium
CN111078530A (en) Application program debugging method and system, electronic equipment and computer readable storage medium
CN107092472B (en) Dynamic publishing method and device
CN112214701A (en) Page display method and system, storage medium and electronic device
CN111880786A (en) Multi-application sharing method, system, device, electronic equipment and storage medium
CN112926002A (en) Service request processing method and device
CN111045747A (en) H5 mobile application rapid loading method, system, terminal and storage medium
CN109885318B (en) Method and device for updating desktop icon of web application
CN110825373A (en) Dynamic method and device for mobile terminal
CN113157274B (en) Software development method and device based on micro front end, electronic equipment and storage medium
CN113434154B (en) Android application program packaging method and device, storage medium and electronic device
CN115291933A (en) Method, device and equipment for constructing small program data packet and storage medium
CN115080109A (en) Multi-cloud-end environment joint debugging method, device, system and equipment based on hybrid development

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