CN112346961B - Method and device for debugging client - Google Patents

Method and device for debugging client Download PDF

Info

Publication number
CN112346961B
CN112346961B CN201910730969.7A CN201910730969A CN112346961B CN 112346961 B CN112346961 B CN 112346961B CN 201910730969 A CN201910730969 A CN 201910730969A CN 112346961 B CN112346961 B CN 112346961B
Authority
CN
China
Prior art keywords
client
control
resource manager
control information
debugging
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.)
Active
Application number
CN201910730969.7A
Other languages
Chinese (zh)
Other versions
CN112346961A (en
Inventor
马东辉
张剑涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing CHJ Automobile Technology Co Ltd
Original Assignee
Beijing CHJ Automobile 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 Beijing CHJ Automobile Technology Co Ltd filed Critical Beijing CHJ Automobile Technology Co Ltd
Priority to CN201910730969.7A priority Critical patent/CN112346961B/en
Publication of CN112346961A publication Critical patent/CN112346961A/en
Application granted granted Critical
Publication of CN112346961B publication Critical patent/CN112346961B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing

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 embodiment of the disclosure discloses a method and a device for debugging a client, relates to the technical field of client debugging, and mainly aims to improve the efficiency of client debugging. The main technical scheme of the embodiment of the disclosure comprises: when a control information inquiry instruction aiming at a target page control in a client is acquired, extracting a control attribute parameter corresponding to the control information inquiry instruction from a code library corresponding to the client; displaying the control attribute parameters by a visual interface; and when the control attribute parameters displayed on the visual interface are modified, acquiring modification information aiming at the control attribute parameters, and updating the code library based on the modification information.

Description

Method and device for debugging client
Technical Field
The embodiment of the disclosure relates to the technical field of client debugging, in particular to a method and a device for debugging a client.
Background
With the progress of computer technology, more and more clients such as Android clients and IOS clients are applied to electronic devices, and as one client needs to be adapted to electronic devices of various models, in order to improve the adaptability of the client to the electronic devices, the client needs to be debugged.
Currently, when a client is debugged, service personnel need to inquire about parameters of related page controls by a developer, adjust the display effects of the related page controls on electronic equipment of different models according to the corresponding parameters, call all codes corresponding to the client each time, manually modify the codes, and repackage the codes after modification. Because each debugging needs to call all codes corresponding to the client to be manually modified, much time and effort are required to be consumed by service personnel, and therefore the efficiency of the client debugging is lower.
Disclosure of Invention
In view of this, embodiments of the present disclosure provide a method and an apparatus for debugging a client, which mainly aim to improve the efficiency of client debugging. The embodiment of the disclosure mainly provides the following technical scheme:
in a first aspect, embodiments of the present disclosure provide a method for debugging a client, the method including:
when a control information inquiry instruction aiming at a target page control in a client is acquired, extracting a control attribute parameter corresponding to the control information inquiry instruction from a code library corresponding to the client;
displaying the control attribute parameters by a visual interface;
And when the control attribute parameters displayed on the visual interface are modified, acquiring modification information aiming at the control attribute parameters, and updating the code library based on the modification information.
In a second aspect, embodiments of the present disclosure provide a debugging apparatus of a client, the apparatus including:
the extraction unit is used for extracting control attribute parameters corresponding to the control information inquiry instruction from a code base corresponding to the client when the control information inquiry instruction aiming at the target page control in the client is acquired;
The display unit is used for displaying the control attribute parameters through a visual interface;
And the updating unit is used for acquiring modification information aiming at the control attribute parameters when the control attribute parameters displayed on the visual interface are modified, and updating the code library based on the modification information.
In a third aspect, embodiments of the present disclosure provide a debug system of a client, the system comprising:
The vehicle client and the debugging device of the client in the second aspect;
the debugging device of the client is used for debugging the vehicle client when the vehicle client is deployed to the vehicle equipment to run.
In a fourth aspect, an embodiment of the present disclosure provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device where the storage medium is controlled to execute the method for debugging the client in the first aspect.
In a fifth aspect, embodiments of the present disclosure provide a human-machine interaction device, the device comprising a storage medium; and one or more processors coupled to the storage medium, the processors configured to execute the program instructions stored in the storage medium; and executing the debugging method of the client according to the first aspect when the program instructions run.
By means of the technical scheme, when the control information query instruction for the target page control in the client is obtained, the control attribute parameters corresponding to the control information query instruction are extracted from the code library corresponding to the client, and the control attribute parameters are displayed through the visual interface. When the control attribute parameters displayed on the visual interface are modified, modification information aiming at the control attribute parameters is obtained, and a code base corresponding to the client is updated according to the modification information, so that the debugging of the client is completed. Therefore, in the embodiment of the disclosure, when the client is debugged, the attribute parameters of the control which is visually displayed can be directly modified without acquiring all codes corresponding to the client, so that the debugging of the client by service personnel is facilitated, and the efficiency of the client debugging is improved.
The foregoing description is merely an overview of the technical solutions of the embodiments of the present disclosure, and may be implemented according to the content of the specification in order to make the technical means of the embodiments of the present disclosure more clearly understood, and in order to make the foregoing and other objects, features and advantages of the embodiments of the present disclosure more comprehensible, the following detailed description of the embodiments of the present disclosure.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the embodiments of the disclosure. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 shows a flowchart of a method for debugging a client provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of an interface of a vision tool according to an embodiment of the disclosure;
FIG. 3 illustrates a schematic diagram of a visualization interface provided by an embodiment of the present disclosure;
FIG. 4 illustrates a flow chart of another client debugging method provided by an embodiment of the present disclosure;
FIG. 5 shows a block diagram of a client debugging apparatus provided by an embodiment of the present disclosure;
FIG. 6 illustrates a block diagram of another client debugging apparatus provided by an embodiment of the present disclosure;
Fig. 7 shows a block diagram of a client debugging system provided by an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In a first aspect, an embodiment of the present disclosure provides a method for debugging a client, as shown in fig. 1, where the method mainly includes:
101. When a control information inquiry instruction aiming at a target page control in a client is acquired, extracting a control attribute parameter corresponding to the control information inquiry instruction from a code base corresponding to the client.
In practical applications, the specific form of the client is not specifically limited, and the client may include, but is not limited to, an Android client and an IOS client. Since the client needs to be adapted to different devices, in order for the client to be able to better adapt to the devices, the client needs to be debugged so that the controls in the client are more adapted to the devices on which the client is deployed. When the client is debugged, the debugged object is a page control on the page of the client.
Specifically, the target page control in this step may be any one of the page controls that need to be debugged in the client page. For example, the target page control is a page control in the current page of the client.
Specifically, the acquisition modes of the control information query instruction for the target page control in the client at least comprise the following two modes:
Firstly, when any one of at least one preset visual tool is triggered, utilizing control information corresponding to the triggered visual tool to inquire attribute information of a project and a target page control, and generating a control information inquiry instruction; wherein, different visual tools correspond to different control information query items.
In the mode, different visual tools correspond to different control information query items, so that the control information query items to be queried can be determined in time under the triggering of the visual tools. The control information query items described herein are not particularly limited, and may include, but are not limited to, at least one of a control color, a control layout hierarchy, a control type, a control size, and a control margin. The control color is used to query the color of the control. The control layout hierarchy user queries the control layout hierarchy. The control type is used to query the specific type of control. The control margin is used for inquiring the control margin; the control size is used to query the size of the control.
In this manner, the attribute information of the page control may include, but is not limited to, a name of the page control or an identification of the page control.
In this way, the visual tool needs to be preset, so that the visual tool is in a hidden state when not in use, and only when in use, the visual tool needs to be turned on through a specified switch, and is displayed in a specific interface. As shown in fig. 2, fig. 2 is an interface including a vision tool. The interface comprises a visual tool of a color extractor, an alignment scale, a control checking and layout frame, wherein a control information inquiry item corresponding to the color extractor is a control color; aligning control information inquiry items corresponding to the scales as a layout level; the control checks that the corresponding control information inquiry item is of a control type; and the control information query items corresponding to the layout frames are control margins.
Specifically, when the visual tool is opened, after the target page control is determined, the required visual tool can be directly clicked, so that the control information inquiry item corresponding to the triggered visual tool and the attribute information of the target page control are utilized to generate a control information inquiry instruction, and the control attribute parameters corresponding to the control information inquiry instruction can be extracted from a code base corresponding to the client by utilizing the control information inquiry instruction.
Secondly, determining the control information query items and attribute information of the target page controls which are input in a character string form in a preset instruction frame as control information query instructions.
In this way, optionally, in order to reduce the input amount of the character string and simplify the input operation, when the control information query item and the attribute information of the target page control input in the instruction box in the form of the character string, the control information query item and the attribute information of the target page control are not directly input, but the identifiers corresponding to the control information query item and the attribute information of the target page control respectively are input. The identification is pre-agreed, and the character length of the identification is smaller than the preset character amount.
Specifically, when a control information inquiry instruction for a target page control in a client is acquired, a control attribute parameter corresponding to the control information inquiry instruction is extracted from a code library corresponding to the client. The step of extracting the control attribute parameter corresponding to the control information query instruction from the code library corresponding to the client may include: and according to the control information inquiry items in the control information inquiry instructions, extracting control attribute parameters corresponding to the control information inquiry items from all the codes corresponding to the target page controls.
102. And displaying the control attribute parameters by using a visual interface.
Specifically, displaying the control attribute parameter with the visual interface at least includes the following steps: determining control information query items corresponding to the control attribute parameters respectively; correspondingly displaying attribute parameters of each control and information query items of each control in a preset visual interface; wherein the exposed control attribute parameters are modifiable.
Specifically, in order to facilitate the debugging of the client, the display control attribute parameter can be modified in the visual interface, that is, when the service personnel needs to modify, the control attribute parameter to be modified is directly modified in the visual interface.
Exemplary, as shown in fig. 3, each control attribute parameter and each control information query item are correspondingly displayed in the visual interface shown in fig. 3. For example, the control attribute parameters corresponding to the control information query item "control size" are "width 717, height 478".
It should be noted that, in order to facilitate the service personnel to debug the client, the visual interface has at least the following closing modes:
Firstly, the duration displayed by the visual interface reaches the preset duration, and in the display process, the control attribute parameters displayed by the visual interface are not modified, which means that service personnel do not need to modify the control attribute parameters displayed in the visual interface, and the visual interface is directly closed.
Second, a close button is arranged in the visual interface, and when the close button is not triggered, the visual interface is continuously displayed.
Thirdly, when the control attribute parameters displayed on the visual interface are modified, a notification window is popped out of the visual interface, so that service personnel can further confirm the modified content, and the probability of modification errors is reduced. When the confirmation button in the notification window is triggered, the visual interface is closed. When the return button in the notification window is triggered, the service personnel is required to process the control attribute parameters, and the visual interface is continuously displayed.
103. And when the control attribute parameters displayed on the visual interface are modified, acquiring modification information aiming at the control attribute parameters, and updating the code library based on the modification information.
In practical application, in order to facilitate the debugging of the client, the display control attribute parameter can be modified, that is, when the service personnel needs to modify, the control attribute parameter to be modified is directly modified in the visual interface. Illustratively, as shown in fig. 3, when the business person needs to modify the "high 478" in the control size, the control attribute parameter may be modified directly.
Specifically, when the control attribute parameters displayed on the visual interface are modified, modification information aiming at the control attribute parameters is obtained, and the modification information can be directly stored in a storage device corresponding to the client for storage so as to update the code base based on the modification information.
In practical application, the code base includes a resource manager, the resource manager includes the code related to the client, and the resource manager is responsible for the management of the code in the code base. It should be noted that there may be multiple resource managers in the code library, each for managing a portion of the code, and different resource managers for managing different codes.
Specifically, the step of updating the code base based on the modification information at least includes:
A. and comparing the modification information with the latest version codes in the code library to form a differential patch.
Specifically, the modification information is compared with the latest version code in the code library, and the content with the difference is compared, namely the content which needs to be updated by the code library, and the content with the difference is determined to be the differential patch.
B. and constructing the latest resource manager aiming at the client by utilizing the differentiated patch.
In particular, the process of building the latest resource manager for the client may include, but is not limited to: determining the current latest resource manager in a code library, and copying the determined resource manager; adding the differential patch to the replicated resource manager creates the latest resource manager for the client.
C. and replacing the resource manager currently referenced by the client by the latest resource manager in a reflection calling mode.
Specifically, the step C of replacing the resource manager currently referenced by the client with the latest resource manager by means of reflection calling at least includes the following steps:
And C1, determining a reference path of a resource manager currently referenced by the client.
Specifically, to reduce the debugging error rate, the method for determining the reference path of the resource manager currently referenced by the client may include: and determining the page control with the control attribute parameters modified, wherein the reference path of the page control and the resource manager is the reference path of the resource manager currently referenced by the client.
And C2, disconnecting the reference relation between the client and the currently referenced resource manager.
Specifically, the reference relation between the client and the currently referenced resource manager is disconnected, so that the client can establish the reference relation with the latest resource manager, and the debugging and updating of the client are completed.
Further, after disconnecting the reference relationship between the client and the currently referenced resource manager, the following operations may be performed:
First, delete the currently referenced resource manager.
Specifically, since the currently referenced resource manager of the client is not already the latest resource manager, in order to avoid that the currently referenced resource manager of the client occupies a storage space, the currently referenced resource manager is deleted.
Second, the currently referenced resource manager is stored in a preset storage location.
Specifically, the currently referenced resource manager is stored in a preset storage location, so that the resource manager can be rolled back when the resource manager needs to be rolled back.
And C3, establishing a reference relation between the client and the latest resource manager based on the reference path.
According to the debugging device of the client, when the control information query instruction aiming at the target page control in the client is obtained, the control attribute parameters corresponding to the control information query instruction are extracted from the code library corresponding to the client, and the control attribute parameters are displayed through the visual interface. When the control attribute parameters displayed on the visual interface are modified, modification information aiming at the control attribute parameters is obtained, and a code base corresponding to the client is updated according to the modification information, so that the debugging of the client is completed. Therefore, in the embodiment of the disclosure, when the client is debugged, the attribute parameters of the control which is visually displayed can be directly modified without acquiring all codes corresponding to the client, so that the debugging of the client by service personnel is facilitated, and the efficiency of the client debugging is improved.
In a second aspect, according to the method of the first aspect, another embodiment of the disclosure further provides another method for debugging a client, as shown in fig. 3, where the method mainly includes:
201. When any one of at least one preset visual tool is triggered, utilizing control information corresponding to the triggered visual tool to inquire attribute information of a project and the target page control, and generating the control information inquiry instruction; wherein, different visual tools correspond to different control information query items.
202. When a control information inquiry instruction aiming at a target page control in a client is acquired, extracting a control attribute parameter corresponding to the control information inquiry instruction from a code base corresponding to the client.
203. And determining the control information query items corresponding to the control attribute parameters.
204. Correspondingly displaying attribute parameters of each control and information query items of each control in a preset visual interface; wherein the exposed control attribute parameters are modifiable.
205. And when the control attribute parameters displayed on the visual interface are modified, obtaining modification information aiming at the control attribute parameters.
206. And forming a differential patch by comparing the modification information with the latest version codes in the code library.
207. And constructing the latest resource manager aiming at the client by utilizing the differentiated patch.
208. A reference path of a resource manager currently referenced by the client is determined.
209. Disconnecting the reference relationship between the client and the currently referenced resource manager.
210. And establishing a reference relation between the client and the latest resource manager based on the reference path in a reflection calling mode.
In a third aspect, according to the method shown in fig. 1, another embodiment of the present disclosure further provides a device for debugging a client, as shown in fig. 5, where the device mainly includes:
The extracting unit 31 is configured to extract, when a control information query instruction for a target page control in a client is acquired, a control attribute parameter corresponding to the control information query instruction from a code library corresponding to the client;
a display unit 32, configured to display the control attribute parameter with a visual interface;
And the updating unit 33 is configured to obtain modification information for the control attribute parameter when the control attribute parameter displayed on the visual interface is modified, and update the code library based on the modification information.
According to the debugging device of the client, when the control information query instruction aiming at the target page control in the client is obtained, the control attribute parameters corresponding to the control information query instruction are extracted from the code library corresponding to the client, and the control attribute parameters are displayed through the visual interface. When the control attribute parameters displayed on the visual interface are modified, modification information aiming at the control attribute parameters is obtained, and a code base corresponding to the client is updated according to the modification information, so that the debugging of the client is completed. Therefore, in the embodiment of the disclosure, when the client is debugged, the attribute parameters of the control which is visually displayed can be directly modified without acquiring all codes corresponding to the client, so that the debugging of the client by service personnel is facilitated, and the efficiency of the client debugging is improved.
In some embodiments, as shown in fig. 6, the apparatus further comprises:
the first generating unit 34 is configured to, when any one of the preset at least one visual tool is triggered, generate the control information query instruction by using the control information query item corresponding to the triggered visual tool and the attribute information of the target page control; wherein, different visual tools correspond to different control information query items.
In some embodiments, as shown in fig. 6, the apparatus further comprises:
The second generating unit 35 is configured to determine, as the control information query instruction, a control information query item and attribute information of the target page control, where the control information query item and the attribute information are input in a character string form in a preset instruction box.
In some embodiments, as shown in fig. 6, the display unit 32 includes:
the determining module 321 is configured to determine control information query items corresponding to the control attribute parameters;
The display module 322 is configured to correspondingly display attribute parameters of each control and information query items of each control in a preset visual interface; wherein the exposed control attribute parameters are modifiable.
In some embodiments, the control information query items include at least one of a control color, a control layout hierarchy, a control type, and a control margin.
In some embodiments, as shown in fig. 6, the code library includes a resource manager, where the resource manager includes a code related to the client; the updating unit 33 comprises:
The forming module 331 is configured to compare the modification information with the latest version code in the code library to form a differential patch;
A construction module 332, configured to construct an up-to-date resource manager for the client using the differential patch;
And a replacing module 333, configured to replace, by the latest resource manager, the resource manager currently referenced by the client by means of a reflection call.
In some embodiments, as shown in FIG. 6, a replacement module 333 is configured to determine a reference path of a resource manager currently referenced by the client; disconnecting the reference relation between the client and the currently referenced resource manager; and establishing a reference relation between the client and the latest resource manager based on the reference path.
In some embodiments, as shown in fig. 6, the updating unit 33 may further include:
a deleting module 334, configured to delete the currently referenced resource manager when the replacing module 333 disconnects the reference relationship between the client and the currently referenced resource manager.
In some embodiments, as shown in fig. 6, the updating unit 33 may further include:
a storage module 335, configured to store the currently referenced resource manager in a preset storage location when the replacement module 333 disconnects the referencing relationship between the client and the currently referenced resource manager.
The debugging device of the client provided by the embodiment of the third aspect may be used to perform the debugging method of the client provided by the embodiment of the first aspect or the second aspect, and the related meaning and specific implementation manner used in the method may be referred to in the related description in the embodiment of the first aspect or the second aspect, which are not described in detail herein.
In a fourth aspect, according to the method shown in fig. 1 or fig. 4, another embodiment of the present disclosure further provides a debug system of a client, as shown in fig. 7, where the system mainly includes:
A vehicle client 41 and a debugging device 42 of the client according to the third aspect;
The debugging device 42 of the client is configured to debug the vehicle client 41 when the vehicle client 41 is deployed and operated on the vehicle device.
According to the debugging system of the client, provided by the embodiment of the disclosure, the control attribute parameters of the visual display can be directly modified without acquiring all codes corresponding to the client when the client is debugged, so that the client is conveniently debugged by service personnel, and the client debugging efficiency is improved.
The debugging device of the client provided by the embodiment of the fourth aspect may be used to perform the debugging method of the client provided by the embodiment of the first aspect or the second aspect, and the related meaning and specific implementation manner of the method may be referred to the related description in the embodiment of the first aspect or the second aspect, which are not described in detail herein.
In a fifth aspect, an embodiment of the present disclosure provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device where the storage medium is controlled to execute the method for debugging the client in the first aspect or the second aspect.
The storage medium may include volatile memory, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
In a sixth aspect, embodiments of the present disclosure provide a human-machine interaction device, the device comprising a storage medium; and one or more processors coupled to the storage medium, the processors configured to execute the program instructions stored in the storage medium; the program instructions execute the method for debugging a client according to the first aspect or the second aspect when running.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
It will be apparent to those skilled in the art that embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, embodiments of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, embodiments of the present disclosure may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, embodiments of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, embodiments of the present disclosure may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. A method for debugging a client, the method comprising:
when a control information inquiry instruction aiming at a target page control in a client is acquired, extracting a control attribute parameter corresponding to the control information inquiry instruction from a code library corresponding to the client;
displaying the control attribute parameters by a visual interface;
When the control attribute parameters displayed on the visual interface are modified, modification information aiming at the control attribute parameters is obtained, and the code library is updated based on the modification information;
The method further comprises the steps of: when any one of at least one preset visual tool is triggered, utilizing control information corresponding to the triggered visual tool to inquire about the item and attribute information of the target page control, and generating the control information inquiry instruction, wherein different visual tools correspond to different control information inquiry items;
Or, the method further comprises: and determining a control information inquiry item and attribute information of the target page control which are input in a character string form in a preset instruction frame as the control information inquiry instruction.
2. The method of claim 1, wherein the exposing the control property parameters in a visual interface comprises:
determining control information query items corresponding to the control attribute parameters respectively;
And correspondingly displaying all the control attribute parameters and all the control information query items in a preset visual interface, wherein the displayed control attribute parameters can be modified in the visual interface.
3. The method of any of claims 1-2, wherein the control information query items include at least one of a control color, a control layout hierarchy, a control type, a control size, and a control margin.
4. The method of claim 1, wherein the code library includes a resource manager, and the resource manager includes code related to the client; the updating the code base based on the modification information includes:
Comparing the modification information with the latest version codes in the code library to form a differential patch;
Constructing an up-to-date resource manager for the client by using the differential patch;
And replacing the resource manager currently referenced by the client by the latest resource manager in a reflection calling mode.
5. The method according to claim 4, wherein said replacing the resource manager currently referenced by the client with the latest resource manager by means of a reflected call comprises:
determining a reference path of a resource manager currently referenced by the client;
Disconnecting the reference relation between the client and the currently referenced resource manager;
and establishing a reference relation between the client and the latest resource manager based on the reference path in a reflection calling mode.
6. The method of claim 5, wherein after said disconnecting the client from the reference of the currently referenced resource manager, the method further comprises:
deleting the currently referenced resource manager or storing the currently referenced resource manager in a preset storage position.
7. A client-side commissioning device, the device comprising:
the extraction unit is used for extracting control attribute parameters corresponding to the control information inquiry instruction from a code base corresponding to the client when the control information inquiry instruction aiming at the target page control in the client is acquired;
The display unit is used for displaying the control attribute parameters through a visual interface;
The updating unit is used for acquiring modification information aiming at the control attribute parameters when the control attribute parameters displayed on the visual interface are modified, and updating the code library based on the modification information;
The apparatus further comprises: the first generation unit is used for generating the control information inquiry instruction by utilizing the control information inquiry items corresponding to the triggered visual tools and the attribute information of the target page control when any one of the preset at least one visual tool is triggered, wherein different visual tools correspond to different control information inquiry items;
or, the apparatus further comprises: and the second generation unit is used for determining the control information inquiry items and the attribute information of the target page control, which are input in a character string form in a preset instruction frame, as the control information inquiry instructions.
8. A client-side commissioning system, the system comprising: a vehicle client and a debugging device of the client according to claim 7;
the debugging device of the client is used for debugging the vehicle client when the vehicle client is deployed to the vehicle equipment to run.
9. A storage medium comprising a stored program, wherein the program, when run, controls a device on which the storage medium resides to perform the method of debugging a client of any one of claims 1 to 6.
10. A human-machine interaction device, the device comprising a storage medium; and one or more processors coupled to the storage medium, the processors configured to execute the program instructions stored in the storage medium; the program instructions, when executed, perform the method of debugging a client of any of claims 1 to 6.
CN201910730969.7A 2019-08-08 2019-08-08 Method and device for debugging client Active CN112346961B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910730969.7A CN112346961B (en) 2019-08-08 2019-08-08 Method and device for debugging client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910730969.7A CN112346961B (en) 2019-08-08 2019-08-08 Method and device for debugging client

Publications (2)

Publication Number Publication Date
CN112346961A CN112346961A (en) 2021-02-09
CN112346961B true CN112346961B (en) 2024-05-07

Family

ID=74366847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910730969.7A Active CN112346961B (en) 2019-08-08 2019-08-08 Method and device for debugging client

Country Status (1)

Country Link
CN (1) CN112346961B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086206A (en) * 2022-06-14 2022-09-20 工银科技有限公司 Client software debugging method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178650A (en) * 2007-06-28 2008-05-14 腾讯科技(深圳)有限公司 Method and device for modifying control property based on response
CN103309667A (en) * 2013-06-14 2013-09-18 珠海全志科技股份有限公司 Method for positioning UI (user interface) control and picture modifying position in Android system
US8549472B1 (en) * 2007-06-12 2013-10-01 Fair Isaac Corporation System and method for web design
CN106250158A (en) * 2016-08-01 2016-12-21 广州优视网络科技有限公司 The layout method of a kind of client end interface, device and mobile device
CN108345456A (en) * 2018-03-07 2018-07-31 平安普惠企业管理有限公司 Page code generation method, device, computer equipment and storage medium
CN108399173A (en) * 2017-02-07 2018-08-14 阿里巴巴集团控股有限公司 A kind of style configuration of page assembly, page generation method and its device
CN109101309A (en) * 2018-08-06 2018-12-28 北京百度网讯科技有限公司 For updating user interface method and device
CN109213486A (en) * 2018-08-20 2019-01-15 北京百度网讯科技有限公司 Method and apparatus for generating customized visualization component
CN110096275A (en) * 2018-01-30 2019-08-06 阿里健康信息技术有限公司 A kind of page processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070240069A1 (en) * 2006-04-11 2007-10-11 Invensys Systems, Inc. Appearance objects for configuring and graphically displaying programmed/configured process control

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8549472B1 (en) * 2007-06-12 2013-10-01 Fair Isaac Corporation System and method for web design
CN101178650A (en) * 2007-06-28 2008-05-14 腾讯科技(深圳)有限公司 Method and device for modifying control property based on response
CN103309667A (en) * 2013-06-14 2013-09-18 珠海全志科技股份有限公司 Method for positioning UI (user interface) control and picture modifying position in Android system
CN106250158A (en) * 2016-08-01 2016-12-21 广州优视网络科技有限公司 The layout method of a kind of client end interface, device and mobile device
CN108399173A (en) * 2017-02-07 2018-08-14 阿里巴巴集团控股有限公司 A kind of style configuration of page assembly, page generation method and its device
CN110096275A (en) * 2018-01-30 2019-08-06 阿里健康信息技术有限公司 A kind of page processing method and device
CN108345456A (en) * 2018-03-07 2018-07-31 平安普惠企业管理有限公司 Page code generation method, device, computer equipment and storage medium
CN109101309A (en) * 2018-08-06 2018-12-28 北京百度网讯科技有限公司 For updating user interface method and device
CN109213486A (en) * 2018-08-20 2019-01-15 北京百度网讯科技有限公司 Method and apparatus for generating customized visualization component

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Android互联网电视UI可视化编辑工具的设计与实现;代唯;《中国优秀硕士学位论文全文数据库信息科技辑》;I138-37 *
Jin Yu 等.A framework for rapid integration of presentation components.《WWW '07: Proceedings of the 16th international conference on World Wide Web》.2007,923–932. *
可视化页面编辑平台的设计与实现;李隆隆;《中国优秀硕士学位论文全文数据库信息科技辑》;I139-95 *

Also Published As

Publication number Publication date
CN112346961A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
US9721216B2 (en) Solution that automatically recommends design assets when making architectural design decisions for information services
CN108021590B (en) Target object attribute determining method, attribute updating method and device
CN104298588A (en) Continuous integration implementation method and device
CN112182349B (en) Query method, device and system for compliance files
US20130339488A1 (en) Enterprise services framework for mobile devices
CN110868763A (en) Method, device and system for establishing Bluetooth connection
CN110471698A (en) The generation method and device, storage medium and computer equipment of API document
CN104423961A (en) Method and system for generating testing script
CN112579558A (en) Method, device, storage medium and equipment for displaying topological graph
CN112905441A (en) Test case generation method, test method, device and equipment
CN110806866A (en) Generation method and device of front-end management system
CN111427865A (en) Method and device for managing objects of database
CN113010169A (en) Method and apparatus for converting UI diagram into code file
CN112346961B (en) Method and device for debugging client
CN109471901B (en) Data synchronization method and device
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN113721973A (en) Configuration file generation method, device, equipment and medium
CN111078213A (en) Code generation method and code generation device
CN104166541A (en) Method and device for updating measured control library
CN111488117B (en) Method, electronic device, and computer-readable medium for managing metadata
CN115658270B (en) Workflow execution method, device and equipment of vision system and storage medium
CN113434585A (en) Resource saving method and equipment
CN111125565A (en) Method and equipment for inputting information in application
KR101926165B1 (en) The document editing system of web-based hmi solution and document editing method by the system
CN109495288B (en) Service deployment method and device

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
GR01 Patent grant
GR01 Patent grant