CN110489333A - A kind of method, apparatus based on detector tune-up data, medium and electronic equipment - Google Patents

A kind of method, apparatus based on detector tune-up data, medium and electronic equipment Download PDF

Info

Publication number
CN110489333A
CN110489333A CN201910662125.3A CN201910662125A CN110489333A CN 110489333 A CN110489333 A CN 110489333A CN 201910662125 A CN201910662125 A CN 201910662125A CN 110489333 A CN110489333 A CN 110489333A
Authority
CN
China
Prior art keywords
data
displayed
data object
checked
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.)
Granted
Application number
CN201910662125.3A
Other languages
Chinese (zh)
Other versions
CN110489333B (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910662125.3A priority Critical patent/CN110489333B/en
Publication of CN110489333A publication Critical patent/CN110489333A/en
Application granted granted Critical
Publication of CN110489333B publication Critical patent/CN110489333B/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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • G06F11/3656Software debugging using additional hardware using a specific debug interface

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 provides a kind of method, apparatus based on detector tune-up data, medium and electronic equipment, the method for the tune-up data includes: the component exhibiting that the user-defined identification of data object to be checked and corresponding data object to be checked are passed through inspection function transfer to detector;User-defined identification and corresponding data object to be checked are received, and shows data to be displayed in such a way that user-defined identification corresponds to data object to be checked;It checks whether data to be displayed is abnormal by the inspection information of component exhibiting, and when data to be displayed occurs abnormal, the every numerical value being abnormal in data to be displayed is debugged, and debugs to corresponding default value.The disclosure introduces detector during tune-up data, and the detector is provided with the component exhibiting for showing the inspection information generated in debugging process, the method of the tune-up data provides good interface, while tune-up data, can also check corresponding inspection information.

Description

Method, device, medium and electronic equipment for debugging data based on checker
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device, a medium and electronic equipment for debugging data based on an inspector.
Background
On most Web pages, there is a need for data burial, and developers are required to write request codes sent on codes. When a user browses a page, a network request of the user is sent to a server side, and various behaviors of the user are analyzed through the server side.
In addition, a series of data is generated in the development process, and debugging the data is generally inconvenient because the data is viewed through information printed on a console.
The debugging tool commonly used at present is a debugging tool carried by a browser or a VConsole developed by a wechat team, wherein the VConsole is a lightweight, expandable and front-end developer debugging panel aiming at a mobile phone webpage. However, whether the debugging tool is a self-contained debugging tool of a browser or a VConsole developed by a wechat team, the debugging tools are essentially webpage debuggers, are designed for more functions of webpage debugging and do not optimize the data checking function.
At present, no matter the self-contained debugging tool of the browser or the third-party debugging tool such as VConsole is designed for debugging various functions of the web page, the defects of the prior art and the display data are obvious, and the following are specifically described as follows:
the information can be printed on the console only by manually writing a printing code in the code, and the information display is a pure list, so that useful information is difficult to find, and the information can be mixed with other information;
in addition, the browser does not provide the checking function of the mobile terminal device no matter the mobile phone or other mobile terminal devices are tested, unless the mobile phone or other mobile terminal devices are connected to the computer, and the information related to the checking function is checked on the computer; which would otherwise be difficult to view.
Therefore, in the long-term research and development, the inventor has conducted a lot of research and development on how to optimize the data checking function in the webpage debugging process, and proposed a method for debugging data based on a checker, so as to solve one of the above technical problems.
Disclosure of Invention
An object of the present invention is to provide a method, an apparatus, a medium, and an electronic device for debugging data based on a checker, which can solve at least one of the above-mentioned technical problems. The specific scheme is as follows:
according to a specific embodiment of the present invention, in a first aspect, the present disclosure provides a method for debugging data based on a checker, including:
reading a check function in the check function information, and transmitting the user-defined identification of the data object to be checked and the corresponding data object to be checked to a display component of a checker through the check function, wherein the display component is used for displaying the check information generated in the debugging process;
receiving the self-defined identification and the corresponding data object to be checked, and displaying the data to be displayed in a mode that the self-defined identification corresponds to the data object to be checked;
and judging whether the data to be displayed is abnormal or not through the inspection information of the display assembly, debugging various abnormal numerical values in the data to be displayed when the data to be displayed is judged to be abnormal, and debugging the abnormal numerical values to a corresponding preset numerical value range.
Optionally, the displaying the to-be-displayed data in a manner that the user-defined identifier corresponds to the to-be-detected data object includes:
determining a display priority setting mode of each data object to be checked under the current custom identifier according to preset configuration options;
and sequentially displaying each data object to be detected under the current custom identification in an array form according to the display priority setting mode.
Optionally, the method further includes:
generating corresponding additional data according to the user-defined identification and the data object to be checked;
wherein the additional data comprises at least one of:
current timestamp data, unique identification id data and shorthand character string data.
Optionally, the method further includes:
and configuring a calling interface of the checker, and transmitting the data to be displayed to the calling interface so that a developer can call the data to be displayed through the calling interface.
Optionally, the method further includes:
acquiring a calling mode configuration parameter, and configuring a calling mode for calling the data to be displayed by the calling interface according to the calling mode configuration parameter;
wherein the configuration parameters of the calling mode at least comprise:
the user-defined identification of the data object to be inspected and the data object to be inspected.
Optionally, the method further includes:
the method comprises the steps that a button which is suspended on a Web browsing page is arranged at a preset position of the Web browsing page, the button is controlled to flicker to remind that new recorded data appear, and a current custom identifier and a numerical value corresponding to the current custom identifier are displayed when the button flickers.
Optionally, the method further includes:
configuring the check function interface and sending the data object to be checked through the check function interface;
wherein the configuration parameters for configuring the check function interface at least include:
the user-defined identification of the data object to be inspected and the data object to be inspected.
According to a second aspect, the present invention provides an apparatus for debugging data based on a checker, including:
a reading unit configured to read a check function in the check function information;
the transmission unit is used for transmitting the user-defined identification of the data object to be checked and the corresponding check function read by the reading unit to a display component of the checker, wherein the display component is used for displaying check information generated in the debugging process;
the receiving unit is used for receiving the user-defined identification and the corresponding data object to be checked, which are transmitted by the transmission unit;
the display unit is used for displaying the data to be displayed in a mode that the custom identifier received by the receiving unit corresponds to the data object to be detected received by the receiving unit;
and the processing unit is used for judging whether the data to be displayed by the display unit is abnormal or not through the checking information of the display assembly, debugging various abnormal numerical values displayed by the display unit in the data to be displayed when the data to be displayed is abnormal, and debugging the abnormal numerical values to a corresponding preset numerical range.
According to a third aspect, the present invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements a method for debugger-based debugging data as described in any of the above.
According to a fourth aspect of the present invention, there is provided an electronic apparatus including: one or more processors; a storage device to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the checker-based debugging data method of any of the above.
Compared with the prior art, the scheme of the embodiment of the invention at least has the following beneficial effects: the utility model provides a method, device, medium and electronic equipment based on checker debugging data, introduced the checker in the process of debugging data, and this checker is provided with the show subassembly that is used for showing the inspection information that generates in the debugging process, and this method of debugging data provides good interface, and when debugging data, also can look over corresponding inspection information.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 shows a flow diagram of a method for debugging data based on a checker, according to an embodiment of the invention;
FIG. 2 is a diagram illustrating an apparatus for debugging data based on a checker according to an embodiment of the present invention;
fig. 3 shows a schematic diagram of an electronic device connection structure according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe … … in embodiments of the present invention, these … … should not be limited to these terms. These terms are used only to distinguish … …. For example, the first … … can also be referred to as the second … … and similarly the second … … can also be referred to as the first … … without departing from the scope of embodiments of the present invention.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an 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 article or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in the article or device in which the element is included.
Alternative embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Example 1
As shown in fig. 1, according to a specific embodiment of the present disclosure, in a first aspect, the present disclosure provides a method for debugging data based on a checker, including:
s102: reading a check function in the check function information, and transmitting the self-defined identification of the data object to be checked and the corresponding data object to be checked to a display component of the checker through the check function, wherein the display component is used for displaying the check information generated in the debugging process; therefore, through the checking information generated in the debugging process displayed by the display component, a user can visually and quickly see errors possibly occurring in the webpage debugging process and timely correct the error information.
In this step, the presentation component may be a React component placed on the page. In practice, global placement is proposed (there is a React component on any page that exposes the inspection information) so that information can be received on any page, which is a Javascript library used to build the user interface.
S104: and receiving the user-defined identification and the corresponding data object to be checked, and displaying the data to be displayed in a mode that the user-defined identification corresponds to the data object to be checked.
In a specific example, data is stored and presented in a manner corresponding to key (self-defined identification of data object to be inspected) -object (data object to be inspected).
S106: whether the data to be displayed are abnormal or not is judged through the checking information of the display assembly, and when the data to be displayed are judged to be abnormal, all the abnormal numerical values in the data to be displayed are debugged and debugged to be in the corresponding preset numerical value range.
In the step, the display assembly is used for conveniently checking various data of the page without printing on a console, and checking information displayed by the display assembly can be visually and clearly seen.
In addition, in the step, the display component can visually and clearly see the inspection information displayed by the display component; therefore, when webpage debugging is carried out on the mobile equipment, the checking information can be directly checked on the display component of the checker without connecting a computer.
The idea of the method for debugging data based on the checker provided by the disclosure is as follows: the object to be checked is transmitted to the component by the developer through the instect function in the code, and corresponding additional data (a current timestamp, a unique identification id, a shorthand character string) is generated each time the transmitted key and object are received, and the generated additional data is stored, so that each field information of the object can be visually seen on the interface.
Optionally, displaying the to-be-displayed data in a manner that the user-defined identifier corresponds to the to-be-checked data object includes:
determining a display priority setting mode of each data object to be checked under the current custom identifier according to preset configuration options;
and sequentially displaying each data object to be detected under the current custom identification in an array form according to a display priority setting mode.
In this step, only a part of the critical data can be displayed due to the limited space of the display interface. In order to display the key data on a limited display interface as much as possible, a configuration option is provided at the time of initialization, and the Object (data Object to be checked) is formatted and displayed by indicating the Object (data Object to be checked) display priority (array form) below different keys (the self-defined identification of the data Object to be checked) (called shorthand character string).
Optionally, the method further includes:
generating corresponding additional data according to the user-defined identification and the data object to be checked;
wherein the additional data comprises at least one of:
current timestamp data, unique identification id data and shorthand character string data.
Optionally, the method further includes:
and configuring a calling interface of the checker, and transmitting the data to be displayed to the calling interface so that a developer can call the data to be displayed through the calling interface.
In the specific example, a calling interface is provided in the form of npm package, and the data that the user wants to show is transmitted to the calling interface in the form of object, so that the checker can sense the data, and the developer can conveniently call the data sensed by the checker in the code.
Optionally, the method further includes:
acquiring a calling mode configuration parameter, and configuring a calling mode for calling the data to be displayed by a calling interface according to the calling mode configuration parameter;
the configuration parameters of the calling mode at least comprise:
the user-defined identification of the data object to be inspected and the data object to be inspected.
Optionally, the method further includes:
and arranging a button suspended on the Web browsing page at a preset position of the Web browsing page, flashing the control button to remind that new recorded data appears, and displaying the current custom identifier and a numerical value corresponding to the current custom identifier.
In this step, each time data is received, a small part of the page (a button suspended from the Web browsing page) flickers, and keys and total numbers are displayed.
In addition, the button may be dragged. When data is recorded every time, the button flickers, the checker can be opened by clicking the button, and all detailed recorded data can be checked; thus, through the flashing of the button, the following can be visually and clearly seen: new data is recorded and the user is prompted to view the new recorded data.
Furthermore, the button is a page widget, and when data passes through, the button can flash to prompt a user and display the value of the current key (the self-defined identification of the data object to be checked).
Optionally, the method further includes:
configuring a checking function interface, and sending a data object to be checked through the checking function interface; the configuration parameters for configuring the checking function interface at least include: the user-defined identification of the data object to be inspected and the data object to be inspected.
The utility model provides a method, device, medium and electronic equipment based on checker debugging data, introduced the checker in the process of debugging data, and this checker is provided with the show subassembly that is used for showing the inspection information that generates in the debugging process, and this method of debugging data provides good interface, and when debugging data, also can look over corresponding inspection information.
Example 2
As shown in fig. 2, according to a specific embodiment of the present disclosure, in a second aspect, the present disclosure provides an apparatus for debugging data based on a checker, where the apparatus includes a reading unit 202, a transmitting unit 204, a receiving unit 206, a presenting unit 208, a processing unit 210, and the like, specifically as follows:
a reading unit 202, configured to read a check function in the check function information;
a transmission unit 204, configured to transmit the custom identifier of the data object to be inspected and the corresponding inspection function read by the reading unit 202 to a display component of the inspector, where the display component is configured to display inspection information generated in the debugging process;
a receiving unit 206, configured to receive the self-defined identifier and the corresponding data object to be checked, which are transmitted by the transmitting unit 204;
the display unit 208 is configured to display the data to be displayed in a manner that the custom identifier received by the receiving unit 206 corresponds to the data object to be checked received by the receiving unit 206;
the processing unit 210 is configured to determine whether the data to be displayed by the display unit 208 is abnormal according to the inspection information of the display component, and debug each abnormal value in the data to be displayed by the display unit 208 when it is determined that the data to be displayed by the display unit 208 is abnormal, and debug the abnormal value to a corresponding preset value range.
Optionally, the display unit 208 is specifically configured to:
determining a display priority setting mode of each data object to be checked under the current custom identifier according to preset configuration options;
and sequentially displaying each data object to be detected under the current custom identification in an array form according to a display priority setting mode.
Optionally, the apparatus further comprises:
a data generating unit 212, configured to generate corresponding additional data according to the custom identifier received by the receiving unit 206 and the data object to be inspected received by the receiving unit 206;
the additional data generated by the data generation unit 212 includes at least one of:
current timestamp data, unique identification id data and shorthand character string data.
Optionally, the apparatus further comprises:
a calling interface configuration unit 214, configured to configure a calling interface of the checker;
the transmission unit 204 is further configured to transmit the data to be displayed, displayed by the display unit 208, to the calling interface configured by the calling interface configuration unit 214, so that the developer calls the data to be displayed, displayed by the display unit 208, through the calling interface configured by the calling interface configuration unit 214.
Optionally, the apparatus further comprises:
an obtaining unit 216, configured to obtain a configuration parameter of a calling method;
the calling mode configuration unit 218 is configured to configure a calling mode in which the calling interface calls data to be displayed according to the calling mode configuration parameters;
the configuration parameters of the calling mode at least comprise:
the user-defined identification of the data object to be inspected and the data object to be inspected.
Optionally, the apparatus further comprises:
the button setting unit 220 is used for setting a button suspended on the Web browsing page at a preset position of the Web browsing page;
a control unit 222 for flashing a control button to remind the appearance of new recording data;
and the display unit 224 is configured to display the current custom identifier and a numerical value corresponding to the current custom identifier when the control unit 222 controls the button to flash.
Optionally, the apparatus further comprises:
a check function interface configuration unit 226 for configuring a check function interface;
a sending unit 228, configured to send the data object to be checked through the checking function interface configured by the checking function interface configuration unit 226;
the configuration parameters for configuring the checking function interface at least include:
the user-defined identification of the data object to be inspected and the data object to be inspected.
The utility model provides a method, device, medium and electronic equipment based on checker debugging data, introduced the checker in the process of debugging data, and this checker is provided with the show subassembly that is used for showing the inspection information that generates in the debugging process, and this method of debugging data provides good interface, and when debugging data, also can look over corresponding inspection information.
Example 3
As shown in fig. 3, the present embodiment provides an electronic device for a method of debugging data based on a checker, the electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the one processor to cause the at least one processor to: the method for debugging the data has the advantages that the checker is introduced in the process of debugging the data and is provided with the display assembly for displaying the check information generated in the debugging process, a good interface is provided, and the corresponding check information can be checked while the data is debugged.
Example 4
The disclosed embodiments provide a non-volatile computer storage medium having stored thereon computer-executable instructions that can perform a method for debugger-based debugging of data in any of the above-described method embodiments.
Example 5
Referring now to FIG. 3, a block diagram of an electronic device 300 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the method for debugging the data has the advantages that the checker is introduced in the process of debugging the data and is provided with the display assembly for displaying the check information generated in the debugging process, a good interface is provided, and the corresponding check information can be checked while the data is debugged.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the method for debugging the data has the advantages that the checker is introduced in the process of debugging the data and is provided with the display assembly for displaying the check information generated in the debugging process, a good interface is provided, and the corresponding check information can be checked while the data is debugged.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".

Claims (10)

1. A method for debugging data based on a checker, comprising:
reading a check function in the check function information, and transmitting the user-defined identification of the data object to be checked and the corresponding data object to be checked to a display component of a checker through the check function, wherein the display component is used for displaying the check information generated in the debugging process;
receiving the self-defined identification and the corresponding data object to be checked, and displaying the data to be displayed in a mode that the self-defined identification corresponds to the data object to be checked;
and judging whether the data to be displayed is abnormal or not through the inspection information of the display assembly, debugging various abnormal numerical values in the data to be displayed when the data to be displayed is judged to be abnormal, and debugging the abnormal numerical values to a corresponding preset numerical value range.
2. The method according to claim 1, wherein the presenting the data to be presented in a manner that the custom identifier corresponds to the data object to be checked comprises:
determining a display priority setting mode of each data object to be checked under the current custom identifier according to preset configuration options;
and sequentially displaying each data object to be detected under the current custom identification in an array form according to the display priority setting mode.
3. The method of claim 1, further comprising:
generating corresponding additional data according to the user-defined identification and the data object to be checked;
wherein the additional data comprises at least one of:
current timestamp data, unique identification id data and shorthand character string data.
4. The method of claim 1, further comprising:
and configuring a calling interface of the checker, and transmitting the data to be displayed to the calling interface so that a developer can call the data to be displayed through the calling interface.
5. The method of claim 4, further comprising:
acquiring a calling mode configuration parameter, and configuring a calling mode for calling the data to be displayed by the calling interface according to the calling mode configuration parameter;
wherein the configuration parameters of the calling mode at least comprise:
the user-defined identification of the data object to be inspected and the data object to be inspected.
6. The method of claim 1, further comprising:
the method comprises the steps that a button which is suspended on a Web browsing page is arranged at a preset position of the Web browsing page, the button is controlled to flicker to remind that new recorded data appear, and a current custom identifier and a numerical value corresponding to the current custom identifier are displayed when the button flickers.
7. The method of claim 1, further comprising:
configuring the check function interface and sending the data object to be checked through the check function interface;
wherein the configuration parameters for configuring the check function interface at least include:
the user-defined identification of the data object to be inspected and the data object to be inspected.
8. An apparatus for debugging data based on a checker, comprising:
a reading unit configured to read a check function in the check function information;
the transmission unit is used for transmitting the user-defined identification of the data object to be checked and the corresponding check function read by the reading unit to a display component of the checker, wherein the display component is used for displaying check information generated in the debugging process;
the receiving unit is used for receiving the user-defined identification and the corresponding data object to be checked, which are transmitted by the transmission unit;
the display unit is used for displaying the data to be displayed in a mode that the custom identifier received by the receiving unit corresponds to the data object to be detected received by the receiving unit;
and the processing unit is used for judging whether the data to be displayed by the display unit is abnormal or not through the checking information of the display assembly, debugging various abnormal numerical values displayed by the display unit in the data to be displayed when the data to be displayed is abnormal, and debugging the abnormal numerical values to a corresponding preset numerical range.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method of any one of claims 1 to 7.
CN201910662125.3A 2019-07-22 2019-07-22 Method, device, medium and electronic equipment for debugging data based on inspector Active CN110489333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910662125.3A CN110489333B (en) 2019-07-22 2019-07-22 Method, device, medium and electronic equipment for debugging data based on inspector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910662125.3A CN110489333B (en) 2019-07-22 2019-07-22 Method, device, medium and electronic equipment for debugging data based on inspector

Publications (2)

Publication Number Publication Date
CN110489333A true CN110489333A (en) 2019-11-22
CN110489333B CN110489333B (en) 2023-06-13

Family

ID=68547867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910662125.3A Active CN110489333B (en) 2019-07-22 2019-07-22 Method, device, medium and electronic equipment for debugging data based on inspector

Country Status (1)

Country Link
CN (1) CN110489333B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371643A (en) * 2020-02-28 2020-07-03 京东数字科技控股有限公司 Authentication method, device and storage medium
CN112069060A (en) * 2020-08-13 2020-12-11 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN112565513A (en) * 2020-09-27 2021-03-26 华帝股份有限公司 Debugging method of mobile terminal, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893641A (en) * 2005-06-30 2007-01-10 英特尔公司 A digital media player exposing operational state data
US20140033183A1 (en) * 2009-07-13 2014-01-30 Adobe Systems,Inc. Debugging method using program inspectors to debug programs developed using frameworks and libraries
US20180218145A1 (en) * 2017-01-27 2018-08-02 Duo Security, Inc. Systems and methods for access control to web applications and identification of web browsers
CN109614340A (en) * 2018-12-28 2019-04-12 北京微播视界科技有限公司 Exploitation adjustment method, device, electronic equipment and the storage medium of application program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893641A (en) * 2005-06-30 2007-01-10 英特尔公司 A digital media player exposing operational state data
US20140033183A1 (en) * 2009-07-13 2014-01-30 Adobe Systems,Inc. Debugging method using program inspectors to debug programs developed using frameworks and libraries
US20180218145A1 (en) * 2017-01-27 2018-08-02 Duo Security, Inc. Systems and methods for access control to web applications and identification of web browsers
CN109614340A (en) * 2018-12-28 2019-04-12 北京微播视界科技有限公司 Exploitation adjustment method, device, electronic equipment and the storage medium of application program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张毅坤等: "面向构件化软件的合约检查测试框架", 《计算机工程》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371643A (en) * 2020-02-28 2020-07-03 京东数字科技控股有限公司 Authentication method, device and storage medium
CN112069060A (en) * 2020-08-13 2020-12-11 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN112565513A (en) * 2020-09-27 2021-03-26 华帝股份有限公司 Debugging method of mobile terminal, mobile terminal and storage medium
CN112565513B (en) * 2020-09-27 2022-04-05 华帝股份有限公司 Debugging method of mobile terminal, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN110489333B (en) 2023-06-13

Similar Documents

Publication Publication Date Title
US8645912B2 (en) System and method for use in replaying software application events
CN110489333B (en) Method, device, medium and electronic equipment for debugging data based on inspector
US20130219365A1 (en) Method and system for visual feedback
CN111813641B (en) Method, device, medium and equipment for collecting crash information
CN104199767B (en) Test method and device
CN112882953B (en) Automatic demonstration method and system of application program based on android debug bridge
CN110489179B (en) Method, device, medium and equipment for acquiring call stack frame function signature
CN113377365B (en) Code display method, apparatus, device, computer readable storage medium and product
CN111813465B (en) Information acquisition method, device, medium and equipment
CN110489165B (en) Method, device, medium and equipment for acquiring call stack frame instruction offset
CN112395188B (en) Test-oriented software project development method and device, electronic equipment and storage medium
US9529779B2 (en) Detection and repositioning of pop-up dialogs
CN110489159A (en) Installation kit compressing method and data analysis method, device, medium and equipment
CN110764941A (en) Method, device, medium and equipment for acquiring call stack frame instruction offset
CN104991857B (en) Trace debug method and device
CN112954056B (en) Method and device for processing monitoring data, electronic equipment and storage medium
CN111045926B (en) Application program jamming detection method, device, medium and electronic equipment
CN110941549B (en) Memory leak detection method, device, medium and electronic equipment
CN106708705B (en) Terminal background process monitoring method and system
CN112965911B (en) Interface abnormity detection method and device, computer equipment and storage medium
CN110471841B (en) Method, device, medium and electronic equipment for comparing drawing information
CN117667663A (en) Control positioning path determining method, device, equipment, storage medium and product
CN114817040A (en) Automatic testing method, system, electronic equipment and storage medium
CN109597756B (en) Information modification method and equipment
CN113986517B (en) API call log acquisition method and device, electronic equipment and storage medium

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