CN109508287A - Page adjustment method and terminal device - Google Patents

Page adjustment method and terminal device Download PDF

Info

Publication number
CN109508287A
CN109508287A CN201811203890.0A CN201811203890A CN109508287A CN 109508287 A CN109508287 A CN 109508287A CN 201811203890 A CN201811203890 A CN 201811203890A CN 109508287 A CN109508287 A CN 109508287A
Authority
CN
China
Prior art keywords
page
interface
code
abnormal
debugged apparatus
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
CN201811203890.0A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201811203890.0A priority Critical patent/CN109508287A/en
Publication of CN109508287A publication Critical patent/CN109508287A/en
Pending legal-status Critical Current

Links

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
    • G06F11/3644Software debugging by instrumenting at runtime
    • 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

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

Abstract

The present invention relates to field of computer technology, a kind of page adjustment method and terminal device are provided.This method comprises: the local service for page debugging is established, using the local service as the corresponding virtual long service of debugged apparatus;The address of the virtual long service is obtained, and the communication connection between the debugged apparatus and virtual long service is established by the address;Receive the code of commissioning staff's input, and it is updated according to page code of the code received to debugged apparatus corresponding page, and the debugged apparatus is sent for updated page code by the virtual long service, so that the debugged apparatus carries out page debugging according to the updated page code, and the page after updating debugging is shown on the page display interface of the first application.The present invention can be not connected to the remote debugging that server directly carries out the page, to simplify debugging process, improve debugging efficiency.

Description

Page adjustment method and terminal device
Technical field
The present invention relates to field of computer technology more particularly to a kind of page adjustment method and terminal devices.
Background technique
For Hybrid APP (mixed mode mobile application) development mode, front end developer can run in APP The HTML5 page carries out program debugging.It usually requires connection server and carries out joint debugging, complicated operation, and due to network rings The factors such as border can not often connect server, lead to not carry out remote debugging.
Summary of the invention
In view of this, the embodiment of the invention provides page adjustment method and terminal device, to solve current page debugging Need to connect the problem that server carries out debugging process complexity caused by joint debugging in the process.
The first aspect of the embodiment of the present invention provides page adjustment method, comprising:
The local service for page debugging is established, using the local service as the corresponding virtual long of debugged apparatus Service;
Obtain the address of the virtual long service, and by the address establish the debugged apparatus with Communication connection between the virtual long service;
The code of commissioning staff's input is received, and according to the code received to the page generation of debugged apparatus corresponding page Code is updated, and sends the debugged apparatus for updated page code by the virtual long service, so that The debugged apparatus carries out page debugging according to the updated page code, and in the page display interface of the first application Upper display updates the page after debugging;First application is that commissioning staff selects to carry out page display effect in page debugging process The application that fruit checks.
The second aspect of the embodiment of the present invention provides computer readable storage medium, the computer readable storage medium It is stored with computer program, the page adjustment method in first aspect is realized when the computer program is executed by processor.
The third aspect of the embodiment of the present invention provides terminal device, including memory, processor and is stored in described In memory and the computer program that can run on the processor, the processor are realized when executing the computer program Following steps:
The local service for page debugging is established, using the local service as the corresponding virtual long of debugged apparatus Service;
Obtain the address of the virtual long service, and by the address establish the debugged apparatus with Communication connection between the virtual long service;
The code of commissioning staff's input is received, and according to the code received to the page generation of debugged apparatus corresponding page Code is updated, and sends the debugged apparatus for updated page code by the virtual long service, so that The debugged apparatus carries out page debugging according to the updated page code, and in the page display interface of the first application Upper display updates the page after debugging;First application is that commissioning staff selects to carry out page display effect in page debugging process The application that fruit checks.
Existing beneficial effect is the embodiment of the present invention compared with prior art: by establishing a local service as quilt The corresponding remote service of commissioning device, after the code for receiving commissioning staff's input, according to the code received to page generation Code is updated, and sends debugged apparatus for updated page code by the remote service, can be not connected to service Device directly carries out the remote debugging of the page, to simplify debugging process, improves debugging efficiency.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of page adjustment method provided in an embodiment of the present invention;
Fig. 2 is the implementation flow chart that communication connection is established in page adjustment method provided in an embodiment of the present invention;
Fig. 3 is the implementation flow chart of mapped page display interface in page adjustment method provided in an embodiment of the present invention;
Fig. 4 is the implementation flow chart that abnormal show interface is identified in page adjustment method provided in an embodiment of the present invention;
Fig. 5 is the implementation process that the corresponding code of abnormal area is searched in page adjustment method provided in an embodiment of the present invention Figure;
Fig. 6 is the schematic diagram of page debugging apparatus provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 is the implementation flow chart of page adjustment method provided in an embodiment of the present invention, and details are as follows:
In S101, the local service for page debugging is established, it is corresponding using the local service as debugged apparatus Virtual long service.
In the present embodiment, executing subject is commissioning device, and commissioning device can be desktop PC, notebook and the palm Upper computer etc. has the terminal device of display function and data processing function, is not limited thereto.Commissioning staff can debug Page code is debugged in equipment.In page debugging process, commissioning staff needs to check the page at some or certain answers Display effect in, debugged apparatus are the terminal device for running the application in need for checking page display effect, such as Mobile phone, tablet computer etc., are not limited thereto.For purposes of illustration only, hereafter using the operating system of debugged apparatus as Android system, The debugged page is to be illustrated for the HTML5 page, but not as restriction.
For example, ADB (Android can be passed through if the operating system of debugged apparatus is Android system DebugBridge, Android debug bridge) local service is established on commissioning device, using the local service as H5 page tune The corresponding remote service of debugged apparatus during examination.Wherein, the local service is for realizing H5 page debugging process medium-long range The function that server is played is equivalent to virtual long server.
In S102, the address of the virtual long service is obtained, and the quilt is established by the address Communication connection between commissioning device and virtual long service.
In the present embodiment, the communication that can be established by address between debugged apparatus and virtual long service connects It connects.Wherein, it can be communicated by wired communication mode or communication between commissioning device and debugged apparatus, example It can such as be communicated, be not limited thereto by cable, bluetooth communication mode.
As an embodiment of the present invention, as shown in Fig. 2, S102 may include:
In S201, Xiang Suoshu virtual long service sends address acquisition instruction, obtains the logical of the virtual long service Interrogate address.
In the present embodiment, commissioning device can send shell instruction to virtual long service, obtain virtual long service The address Socket.Wherein, the address Socket is used for the socket communication established between debugged apparatus and local service.
In S202, the address is sent to the debugged apparatus, the address is described for establishing Communication connection between debugged apparatus and virtual long service.
In the present embodiment, can obtain virtual long service address after directly by address be sent to by Commissioning device, or address is sent to debugged set after the address acquisition request for receiving debugged apparatus transmission It is standby, it is not limited thereto.For example, can be after the address acquisition request for receiving debugged apparatus transmission, by the address Socket It is sent to debugged apparatus, so that debugged apparatus can establish the communication between virtual long service.
In S103, the code of commissioning staff's input is received, and page is corresponded to debugged apparatus according to the code received The page code in face is updated, and sends described be debugged for updated page code by the virtual long service Equipment, so that the debugged apparatus carries out page debugging according to the updated page code, and in the page of the first application The page after updating debugging is shown on the display interface of face;First application is that commissioning staff selects to carry out in page debugging process The application that page display effect is checked.
In the present embodiment, commissioning staff modifies or adjusts to the code of the page on commissioning device.Commissioning device After the code for receiving commissioning staff's input, according to the code received to the page code of debugged apparatus corresponding page into Row updates, and then sends debugged apparatus for updated page code by virtual long service, and debugged apparatus can be with The page after the page display interface display of the first application updates debugging, so that commissioning staff checks the page after code adjustment Display effect.
In page debugging process, commissioning staff can select according to the actual situation one or more application to answer as first With the first application of operation on debugged apparatus, to check the display effect of the page in such applications, page display interface As first application shows the interface of the debugged page.
In traditional debugging method, commissioning staff easily can realize page generation by commissioning device and debugged apparatus Editor's debugging of code and page effect are checked, but usually server is arranged in positions such as computer rooms, and commissioning staff cannot be easily right Server is controlled, usually because of network problem, server faults itself problem or the clothes between commissioning device and server Computer room failure problems etc. where business device cause commissioning staff that cannot carry out remote debugging to the page.In the present embodiment, pass through Virtual long service is created on commissioning device, makes commissioning device individually and commissioning device kimonos in traditional debugging method may be implemented Business device is played the role of, so that so that commissioning staff is not needed connection server can be achieved with the remote debugging of the page.Due to adjusting The achievable mode multiplicity that the communication distance between equipment and debugged apparatus is short, communicates is tried, and the two is respectively positioned on commissioning staff Easily controlled range is easy to be handled, therefore only passes through both commissioning device and debugged apparatus breaking down Carry out the page remote debugging, relative in traditional debugging method pass through server, commissioning device and debugged apparatus three into The convenience of page remote debugging can be turned up in row remote debugging significantly, improve debugging efficiency.
The embodiment of the present invention is being received by establishing a local service as the corresponding remote service of debugged apparatus After the code of commissioning staff's input, page code is updated according to the code received, and will more by the remote service Page code after new is sent to debugged apparatus, the remote debugging that server directly carries out the page can be not connected to, thus simple Change debugging process, improves debugging efficiency.
As an embodiment of the present invention, first application is at least one.The above method can also include:
It is carried out in page debugging process in commissioning staff, the page of the first application each on the debugged apparatus is shown Interface is respectively mapped to corresponding interface image region on display screen.
It in the present embodiment, can be by the page of the first application on debugged apparatus in order to further increase debugging efficiency Display interface is mapped to the interface image region on commissioning device display screen.Wherein interface image region is commissioning device display screen The region of the upper page display interface for being used to show mapping.By the way that the page display interface of the first application on debugged apparatus is reflected It is mapped to the interface image region on display screen, commissioning staff can be made to be directly viewable the page on commissioning device in debugged apparatus Display effect in improves debugging efficiency.
Wherein, the first application can be one or more, and each first applies on commissioning device corresponding to an interface Mapping area.The page display interface of first application each on debugged apparatus can be respectively mapped to commissioning device display screen Upper corresponding interface image region.
May have in page debugging process, on debugged apparatus and multiple need to check that the first of page display effect answers With the page display interface that multiple first apply being mapped on the display screen of commissioning device, on a display screen parallel The multiple interface image regions of display.Check display effect of the page in the first application of difference simultaneously convenient for commissioning staff in this way Fruit, the page display interface of one first application can only be checked by avoiding commissioning staff every time, need multi-pass operation switching interface The problem of capable of checking multiple interfaces, and then improve debugging efficiency.
As an embodiment of the present invention, as shown in figure 3, step is " by the first application each on the debugged apparatus Page display interface be respectively mapped to corresponding interface image region on display screen " may include:
In S301, Xiang Suoshu debugged apparatus sends switching command, and the switching command is used to indicate described debugged Equipment switches over current display interface according to default switching frequency between the page display interface of each first application.
In S302, the current display interface of the primary debugged apparatus is obtained every prefixed time interval, and map To corresponding interface image region.
In the present embodiment, presetting switching frequency and prefixed time interval can be configured according to the actual situation, herein It is not construed as limiting.
For example, have the first application A, the first application B and first using C on debugged apparatus, the page of totally 3 first applications Display effect needs are checked.Three interface image regions, respectively A1, B1, C1 are divided on the display screen of commissioning device, successively Corresponding three first are applied A, B, C.Commissioning device sends switching command to debugged apparatus, indicates the current aobvious of debugged apparatus Show that interface is once switched between the page display interface of three first applications according to default switching frequency.When default Between interval the current display interface of debugged apparatus is mapped to corresponding interface image region.
If default switching frequency is 1 minute 60 times, prefixed time interval is 1 second, then every 1 second by the current of mobile device Display interface is once switched, and at the 1st second, the current display interface of debugged apparatus was that the page of the first application A shows boundary The page display interface of first application A is mapped to the interface image region A1 of commissioning device by face at this time;It was adjusted at the 2nd second The current display interface of examination equipment is switched to the page display interface of the first application B, and the page of the first application B is shown boundary at this time Face is mapped to the interface image region B1 of commissioning device;At the 3rd second, the current display interface of debugged apparatus was switched to first Using the page display interface of C, the page display interface of the first application C is mapped to the interface image region of commissioning device at this time C1;Later every 1 second changing interface of progress and mapping, three interface image regions on debugging device display screen are carried out more Newly, it can guarantee that the interfacial effect that three interface image regions are shown remains and the page of debugged apparatus display circle in this way Face is consistent, views display effect of the page in three first applications in three interface image regions simultaneously convenient for commissioning staff Fruit.
As an embodiment of the present invention, the above method can also include:
Image recognition is carried out to the page display interface in the interface image region, identifies the exception there are abnormal show Display interface, and the interface image region at the abnormal show interface is highlighted.
In the present embodiment, abnormal show can be loads failure, text or the figures such as page load failure, text or picture Piece display mistake, text or the abnormal and other abnormal show situations of Pictures location etc., are not limited thereto.Highlighting can By be interface image region is highlighted, loading area frame, flashing display and others highlight in a manner of etc., It is not limited thereto.
The present embodiment is by that can reduce commissioning staff to there is the abnormal page display interface progress automatic identification of display Search procedure and time to abnormal show interface improve debugging efficiency;Pass through the interface image region to abnormal show interface It is highlighted, commissioning staff can be prompted to check in the presence of abnormal interface, reduced abnormal show interface and be not debugged people The case where member's discovery.
As an embodiment of the present invention, as shown in figure 4, step " shows boundary to the page in the interface image region Face carries out image recognition, identifies the abnormal show interface there are abnormal show " may include:
It, will be in the page display interface in the interface image region and the abnormal show database pre-established in S401 Each abnormal image sample compare;The abnormal image sample is the image pattern abnormal in the presence of display.
In the present embodiment, abnormal show database can be pre-established, is preserved in abnormal show database in the presence of aobvious Show abnormal abnormal image sample.Wherein, each abnormal image sample can be extracted from full page display interface In the presence of the image in the abnormal region of display, such as image, the image of text importing abnormal area etc. of text load failure go-to field.
In S402, if including abnormal area in the page display interface in the interface image region, by the interface The page display interface of mapping area is determined as the abnormal show interface;The abnormal area be and the abnormal show data Similarity in library between any abnormal image sample is more than the image-region of preset threshold.
In the present embodiment, by each exception in the page display interface in interface image region and abnormal show database Image pattern carries out Characteristic Contrast respectively, if comprising one or more abnormal areas in the page display interface, by the page Display interface is determined as abnormal show interface.For any abnormal area of the page display interface, in abnormal show database An abnormal image sample is certainly existed, the similarity between the abnormal area is more than preset threshold.
The present embodiment is by establishing abnormal show database, by the page display interface and abnormal show in interface image region Each abnormal image sample in database compares, and identifies abnormal show interface, can be improved the knowledge of abnormal show interface Other accuracy.
As an embodiment of the present invention, the above method can also include:
The corresponding code of abnormal area in the abnormal show interface is searched in page code, by abnormal show circle The corresponding code of abnormal area and the abnormal show interface are associated preservation in face.
The present embodiment is by being associated preservation for abnormal show interface code corresponding with wherein abnormal area, as going through On the one hand history empirical data searches the problem of code debugging encounters in the process code and corresponding abnormal show convenient for commissioning staff Interface image is searched corresponding historical empirical data as reference, is mentioned when encountering problems in debugging process convenient for commissioning staff Height solves the efficiency of debugging problem;On the other hand the figure of abnormal area can be extracted from the abnormal show interface image of preservation As be used as abnormal image sample, be added in abnormal show database, to the data of abnormal show database carry out supplement and more Newly, to improve the accuracy of abnormal show interface identification.
As an embodiment of the present invention, as shown in figure 5, step " searches abnormal show circle in page code The corresponding code of abnormal area in face " may include:
In S501, pre-establish each code section in page code in page display interface each page area it is corresponding Relationship.
In the present embodiment, page code can be divided into multiple code sections, determine each code section in the page Corresponding page area, establishes corresponding relationship in display interface;Alternatively, the page display interface page is divided into multiple page pools Domain determines each page area corresponding code section in page code, establishes corresponding relationship.
In S502, page area belonging to abnormal area in the abnormal show interface is determined.
In the present embodiment, if an abnormal area is included in a page area, the abnormal area will be included Page area is as page area belonging to the abnormal area;If an abnormal area is included in the group of multiple page areas composition It closes in region, then using each page area of the combination zone comprising the abnormal area as page pool belonging to the abnormal area Domain.
In S503, according to the corresponding relationship search the abnormal area belonging to the corresponding code portions of page area Point, the code section found is determined as the corresponding code of abnormal area in the abnormal show interface.
The present embodiment by establish each code section in page code in page display interface each page area it is corresponding The corresponding code section of page area belonging to abnormal area in abnormal show interface is determined as in abnormal show interface by relationship The corresponding code of abnormal area can be improved the accuracy that abnormal area corresponds to code identification.
The embodiment of the present invention is being received by establishing a local service as the corresponding remote service of debugged apparatus After the code of commissioning staff's input, page code is updated according to the code received, and will more by the remote service Page code after new is sent to debugged apparatus, the remote debugging that server directly carries out the page can be not connected to, thus simple Change debugging process, improves debugging efficiency.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to page adjustment method described in foregoing embodiments, Fig. 6 shows page tune provided in an embodiment of the present invention The schematic diagram that trial assembly is set.For ease of description, only the parts related to this embodiment are shown.
Referring to Fig. 6, which includes establishing module 61, obtaining module 62 and update module 63.
Module 61 is established, for establishing the local service for being used for page debugging, is set using the local service as debugged Standby corresponding virtual long service.
Module 62 is obtained, is established for obtaining the address of the virtual long service, and by the address Communication connection between the debugged apparatus and virtual long service.
Update module 63, for receiving the code of commissioning staff's input, and according to the code received to debugged apparatus The page code of corresponding page is updated, and by the virtual long service is sent updated page code to described Debugged apparatus so that the debugged apparatus carries out page debugging according to the updated page code, and is answered first The page after updating debugging is shown on page display interface;First application is commissioning staff's choosing in page debugging process It selects and carries out the application that page display effect is checked.
Optionally, the acquisition module 62 is used for:
Address acquisition instruction is sent to the virtual long service, obtains the address of the virtual long service;
The address is sent to the debugged apparatus, the address is for establishing the debugged apparatus With the communication connection between virtual long service.
Optionally, first application is at least one;The device further includes processing module, and the processing module is used for:
It is carried out in page debugging process in commissioning staff, the page of the first application each on the debugged apparatus is shown Interface is respectively mapped to corresponding interface image region on display screen.
Optionally, the processing module is used for: Xiang Suoshu debugged apparatus sends switching command, and the switching command is used for Indicate the page display interface that the debugged apparatus applies current display interface each first according to default switching frequency Between switch over;
The current display interface of the primary debugged apparatus is obtained every prefixed time interval, and is mapped to corresponding boundary Face mapping area.
Optionally, the processing module is used for:
Image recognition is carried out to the page display interface in the interface image region, identifies the exception there are abnormal show Display interface, and the interface image region at the abnormal show interface is highlighted.
Optionally, the processing module is used for:
By the page display interface in the interface image region with it is each different in the abnormal show database that pre-establishes Normal image pattern compares;The abnormal image sample is the image pattern abnormal in the presence of display;
If including abnormal area in the page display interface in the interface image region, by the interface image region Page display interface is determined as the abnormal show interface;The abnormal area be with it is any different in the abnormal show database Similarity between normal image pattern is more than the image-region of preset threshold.
Optionally, the processing module is also used to:
The corresponding code of abnormal area in the abnormal show interface is searched in page code, by abnormal show circle The corresponding code of abnormal area and the abnormal show interface are associated preservation in face.
Optionally, the processing module is used for:
Pre-establish the corresponding relationship of each code section and each page area in page display interface in page code;
Determine page area belonging to abnormal area in the abnormal show interface;
According to the corresponding relationship search the abnormal area belonging to the corresponding code section of page area, will find Code section be determined as the corresponding code of abnormal area in the abnormal show interface.
The embodiment of the present invention is being received by establishing a local service as the corresponding remote service of debugged apparatus After the code of commissioning staff's input, page code is updated according to the code received, and will more by the remote service Page code after new is sent to debugged apparatus, the remote debugging that server directly carries out the page can be not connected to, thus simple Change debugging process, improves debugging efficiency.
Fig. 7 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 7, the terminal of the embodiment is set Standby 7 include: processor 70, memory 71 and are stored in the meter that can be run in the memory 71 and on the processor 70 Calculation machine program 72, such as program.The processor 70 realizes above-mentioned each embodiment of the method when executing the computer program 72 In step, such as step 101 shown in FIG. 1 is to 103.Alternatively, reality when the processor 70 executes the computer program 72 The function of each module/unit in existing above-mentioned each Installation practice, such as the function of module 61 to 63 shown in Fig. 6.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 72 in the terminal device 7 is described.
The terminal device 7 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 70, memory 71.It will be understood by those skilled in the art that Fig. 7 The only example of terminal device 7 does not constitute the restriction to terminal device 7, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus, display etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7 It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7 Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the meter The content that calculation machine readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, Such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and electricity Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of page adjustment method characterized by comprising
The local service for page debugging is established, is taken the local service as the corresponding virtual long of debugged apparatus Business;
Obtain the address of the virtual long service, and by the address establish the debugged apparatus with it is described Communication connection between virtual long service;
Receive the code of commissioning staff's input, and according to the code received to the page code of debugged apparatus corresponding page into Row updates, and sends the debugged apparatus for updated page code by the virtual long service, so that described Debugged apparatus carries out page debugging according to the updated page code, and shows on the page display interface of the first application Show the page after updating debugging;First application is that commissioning staff selects progress page display effect to look into page debugging process The application seen.
2. page adjustment method as described in claim 1, which is characterized in that the communication for obtaining the virtual long service Address, and the communication connection packet between the debugged apparatus and virtual long service is established by the address It includes:
Address acquisition instruction is sent to the virtual long service, obtains the address of the virtual long service;
The address is sent to the debugged apparatus, the address is for establishing the debugged apparatus and institute State the communication connection between virtual long service.
3. page adjustment method as described in claim 1, which is characterized in that it is described first application be at least one, the side Method further include:
It is carried out in page debugging process in commissioning staff, by the page display interface of the first application each on the debugged apparatus It is respectively mapped to corresponding interface image region on display screen.
4. page adjustment method as claimed in claim 3, which is characterized in that described by the debugged apparatus each first The page display interface of application is respectively mapped to corresponding interface image region on display screen
Switching command is sent to the debugged apparatus, the switching command is used to indicate the debugged apparatus and cuts according to default It changes frequency and switches over current display interface between the page display interface of each first application;
The current display interface of the primary debugged apparatus is obtained every prefixed time interval, and is mapped to corresponding interface and reflects Penetrate region.
5. page adjustment method as described in claim 3 or 4, which is characterized in that further include:
Image recognition is carried out to the page display interface in the interface image region, identifies the abnormal show there are abnormal show Interface, and the interface image region at the abnormal show interface is highlighted.
6. page adjustment method as claimed in claim 5, which is characterized in that the page to the interface image region is aobvious Show that interface carries out image recognition, identifies that the abnormal show interface there are abnormal show includes:
By each Abnormal Map in the page display interface in the interface image region and the abnormal show database pre-established Decent compares;The abnormal image sample is the image pattern abnormal in the presence of display;
If including abnormal area in the page display interface in the interface image region, by the page in the interface image region Display interface is determined as the abnormal show interface;The abnormal area be and any Abnormal Map in the abnormal show database Similarity between decent is more than the image-region of preset threshold.
7. page adjustment method as claimed in claim 6, which is characterized in that further include:
The corresponding code of abnormal area in the abnormal show interface is searched in page code, it will be in the abnormal show interface The corresponding code of abnormal area and the abnormal show interface are associated preservation.
8. page adjustment method as claimed in claim 7, which is characterized in that described to search the exception in page code aobvious Show that the corresponding code of abnormal area includes: in interface
Pre-establish the corresponding relationship of each code section and each page area in page display interface in page code;
Determine page area belonging to abnormal area in the abnormal show interface;
According to the corresponding relationship search the abnormal area belonging to the corresponding code section of page area, the generation that will be found Code part is determined as the corresponding code of abnormal area in the abnormal show interface.
9. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 8 of realization the method.
10. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes following steps when executing the computer program:
The local service for page debugging is established, is taken the local service as the corresponding virtual long of debugged apparatus Business;
Obtain the address of the virtual long service, and by the address establish the debugged apparatus with it is described Communication connection between virtual long service;
Receive the code of commissioning staff's input, and according to the code received to the page code of debugged apparatus corresponding page into Row updates, and sends the debugged apparatus for updated page code by the virtual long service, so that described Debugged apparatus carries out page debugging according to the updated page code, and shows on the page display interface of the first application Show the page after updating debugging;First application is that commissioning staff selects progress page display effect to look into page debugging process The application seen.
CN201811203890.0A 2018-10-16 2018-10-16 Page adjustment method and terminal device Pending CN109508287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811203890.0A CN109508287A (en) 2018-10-16 2018-10-16 Page adjustment method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811203890.0A CN109508287A (en) 2018-10-16 2018-10-16 Page adjustment method and terminal device

Publications (1)

Publication Number Publication Date
CN109508287A true CN109508287A (en) 2019-03-22

Family

ID=65746684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811203890.0A Pending CN109508287A (en) 2018-10-16 2018-10-16 Page adjustment method and terminal device

Country Status (1)

Country Link
CN (1) CN109508287A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111563032A (en) * 2020-03-26 2020-08-21 中国平安财产保险股份有限公司 APP debugging method and device, computer equipment and storage medium
CN113064809A (en) * 2020-01-02 2021-07-02 北京沃东天骏信息技术有限公司 Cross-device page debugging method and device
CN113094278A (en) * 2021-04-23 2021-07-09 Tcl通讯(宁波)有限公司 Debugging method, device and equipment of mobile terminal and computer readable storage medium
CN113449227A (en) * 2020-03-24 2021-09-28 北京新氧科技有限公司 Page information processing method and terminal equipment
CN113505070A (en) * 2021-07-13 2021-10-15 中原银行股份有限公司 Code debugging method, mobile terminal and computer equipment
CN114578783A (en) * 2021-12-28 2022-06-03 上海繁易信息科技股份有限公司 Remote debugging method and system for industrial field equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117337A (en) * 2015-08-26 2015-12-02 小米科技有限责任公司 Application debugging method, client and debugging platform
CN105357323A (en) * 2015-12-11 2016-02-24 北京京东尚科信息技术有限公司 HTML5 page debugging method and device in APP
CN106878361A (en) * 2015-12-14 2017-06-20 阿里巴巴集团控股有限公司 A kind of adjustment method of the terminal applies page, device and client
CN106921716A (en) * 2015-12-28 2017-07-04 阿里巴巴集团控股有限公司 The method and device of the network service process of debugging embedded equipment
CN108509333A (en) * 2017-02-28 2018-09-07 腾讯科技(深圳)有限公司 Adjustment method and device
CN108614767A (en) * 2016-12-13 2018-10-02 腾讯科技(深圳)有限公司 A kind of remote debugging method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105117337A (en) * 2015-08-26 2015-12-02 小米科技有限责任公司 Application debugging method, client and debugging platform
CN105357323A (en) * 2015-12-11 2016-02-24 北京京东尚科信息技术有限公司 HTML5 page debugging method and device in APP
CN106878361A (en) * 2015-12-14 2017-06-20 阿里巴巴集团控股有限公司 A kind of adjustment method of the terminal applies page, device and client
CN106921716A (en) * 2015-12-28 2017-07-04 阿里巴巴集团控股有限公司 The method and device of the network service process of debugging embedded equipment
CN108614767A (en) * 2016-12-13 2018-10-02 腾讯科技(深圳)有限公司 A kind of remote debugging method and device
CN108509333A (en) * 2017-02-28 2018-09-07 腾讯科技(深圳)有限公司 Adjustment method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
何时不少年: "Android&Html5混合开发WebView调试必备神器DevTools", pages 1 - 3, Retrieved from the Internet <URL:https://blog.csdn.net/qq_26585943/article/details/79863042> *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064809A (en) * 2020-01-02 2021-07-02 北京沃东天骏信息技术有限公司 Cross-device page debugging method and device
CN113449227A (en) * 2020-03-24 2021-09-28 北京新氧科技有限公司 Page information processing method and terminal equipment
CN113449227B (en) * 2020-03-24 2023-09-19 北京新氧科技有限公司 Page information processing method and terminal equipment
CN111563032A (en) * 2020-03-26 2020-08-21 中国平安财产保险股份有限公司 APP debugging method and device, computer equipment and storage medium
CN113094278A (en) * 2021-04-23 2021-07-09 Tcl通讯(宁波)有限公司 Debugging method, device and equipment of mobile terminal and computer readable storage medium
CN113094278B (en) * 2021-04-23 2024-01-02 光环云数据有限公司 Method, device, equipment and computer readable storage medium for debugging mobile terminal
CN113505070A (en) * 2021-07-13 2021-10-15 中原银行股份有限公司 Code debugging method, mobile terminal and computer equipment
CN114578783A (en) * 2021-12-28 2022-06-03 上海繁易信息科技股份有限公司 Remote debugging method and system for industrial field equipment
CN114578783B (en) * 2021-12-28 2024-04-09 上海繁易信息科技股份有限公司 Remote debugging method and system for industrial field device

Similar Documents

Publication Publication Date Title
CN109508287A (en) Page adjustment method and terminal device
CN111461296B (en) Data processing method, electronic device, and readable storage medium
CN110888615B (en) Multi-input equipment interaction method, device and medium for double-screen different display of Android system
CN105259806B (en) Controller upgrade method and system and master controller and from controller
CN109933651B (en) Information interaction method and device and server
CN108196458A (en) Intelligent home equipment control method, device and terminal device
CN111245714A (en) Access method and device of home gateway module, storage medium and electronic device
CN104836840A (en) Control method of mobile terminal, server, device and system
CN106897095A (en) The multiple method of application program hot repair, device and readable storage medium storing program for executing
CN110245029A (en) A kind of data processing method, device, storage medium and server
US11900131B2 (en) Dynamic remediation actions in response to configuration checks in an information processing system
CN109697090A (en) A kind of method, terminal device and the storage medium of controlling terminal equipment
CN109388589A (en) A kind of method, equipment and storage medium adjusting cache partitions ratio
US8301582B2 (en) Dynamic constraint satisfaction problem solver with sub-problem placeholder
CN108965403A (en) O&amp;M monitors establishment of connection method and terminal device
CN111123728A (en) Unmanned vehicle simulation method, device, equipment and computer readable medium
CN109067735A (en) Dynamic Configuration, wireless communication device and the smart machine of communication protocol
CN108845946A (en) A kind of terminal, debugging system and terminal debugging method
CN109840132A (en) Method of combination, device and the storage medium of container
CN113449031A (en) Data synchronization management method and device and server
EP3670107A1 (en) Method and device for displaying motion path of robot and robot
CN113691403B (en) Topology node configuration method, related device and computer program product
CN108989117A (en) Configuration method, wireless communication device and the household electrical appliance of communication protocol
CN109254819A (en) Interface updating method, system, equipment and storage medium based on android system
CN113821524A (en) Method, device, computer equipment and medium for improving real-time interface processing efficiency

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