CN115934566A - Debugging information display method and device, electronic equipment and storage medium - Google Patents

Debugging information display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115934566A
CN115934566A CN202211706056.XA CN202211706056A CN115934566A CN 115934566 A CN115934566 A CN 115934566A CN 202211706056 A CN202211706056 A CN 202211706056A CN 115934566 A CN115934566 A CN 115934566A
Authority
CN
China
Prior art keywords
debugging
robot
automation program
information
robot flow
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211706056.XA
Other languages
Chinese (zh)
Inventor
林平
吴鑫
唐琦松
程伟康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai I Search Software Co ltd
Original Assignee
Shanghai I Search Software 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 Shanghai I Search Software Co ltd filed Critical Shanghai I Search Software Co ltd
Priority to CN202211706056.XA priority Critical patent/CN115934566A/en
Publication of CN115934566A publication Critical patent/CN115934566A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a debugging information display method, a debugging information display device, electronic equipment and a storage medium, wherein the debugging information display method comprises the following steps: controlling the robot process automation tool to enter a debugging mode according to the debugging command; executing a robot flow automation program by calling a general programming language debugger in a debugging mode; and when the robot process automation program runs to a preset debugging node, calculating debugging information of the debugging node according to the global code information, and displaying the debugging information on a terminal page. The invention solves the technical problem that the robot process automation program is not easy and convenient to debug, realizes the effects of shielding specific codes irrelevant to debugging and only displaying debugging information relevant to debugging, is convenient for a user to debug based on the debugging information, and reduces the necessary knowledge required in the debugging process to the minimum.

Description

Debugging information display method and device, electronic equipment and storage medium
Technical Field
The invention relates to a debugging information display method and device, electronic equipment and a storage medium, and belongs to the technical field of robot process automation.
Background
At present, with the continuous development of the robot flow automation technology, a development tool for robot flow automation can package reusable function codes into simple and visual components for developers to directly use without knowing implementation details, so that the development efficiency is greatly accelerated, and the application range of robot flow automation is widened. The robot Process Automation (robot Process Automation) program executes a highly repetitive task based on a simple rule through a preset Process, thereby realizing the Automation of a work flow. The user only needs to drag the robot to realize the automation of most of the working processes, the robot replaces manual operation, and an effective man-machine assistance working mechanism is realized.
Before the robot flow automation program is put into operation formally, the written software program needs to be tested through some methods, such as manual methods, to correct possible errors in the written software program, such as syntax errors or logic errors. At present, the debugging process of the robot flow automation program is complex, and professional debugging personnel is often required to perform debugging operation on a code level, but the number of codes is large, and not all the codes are related to the main logic of the robot flow automation program, so that the debugging mode is obviously not simple and convenient. In addition, in the actual application process, many RPA debugging personnel do not have a programming basis, so that the debugging method cannot cover all users.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a debugging information display method, a device, electronic equipment and a storage medium, wherein in the automatic program debugging process of the robot process, related debugging information is directly displayed on a terminal page, codes irrelevant to debugging are shielded, debugging personnel can conveniently check and modify the debugging information, the debugging convenience is improved, and meanwhile, programming knowledge required by the debugging process is reduced.
In order to solve the technical problems, the invention adopts the following technical means:
in a first aspect, the present invention provides a method for displaying debugging information, including the following steps:
acquiring a debugging command, and controlling a robot flow automation tool to enter a debugging mode according to the debugging command, wherein at least one robot flow automation program is configured in the robot flow automation tool, and the robot flow automation program corresponds to a graphical process;
executing a robot flow automation program by calling a general programming language debugger in a debugging mode;
when the robot flow automation program runs to a preset debugging node, extracting global code information from the robot flow automation program, calculating debugging information of the debugging node according to the global code information, and displaying the debugging information on a terminal page;
the graphical process comprises a plurality of nodes, one or more of the nodes are preset debugging nodes, and the debugging nodes are used for suspending execution of the robot process automation program.
With reference to the first aspect, further, the method for setting the debug node includes:
acquiring a debugging node setting instruction;
selecting one or more nodes as debugging nodes in the graphical process according to the debugging node setting instruction;
and setting a breakpoint at the position of the robot flow automation program code corresponding to the debugging node by calling a universal programming language debugger.
With reference to the first aspect, further, the debugging information includes variables of the robot flow automation program, a stack of the robot flow automation program, and attribute values of components of the robot flow automation program that have already been executed, where the variables include global variables, process variables, and local variables.
With reference to the first aspect, further, the method for displaying the debugging information on the terminal page includes:
screening all variables in the debugging information according to the received screening instruction to obtain screened variables;
and displaying the screened variables and real-time values thereof in a monitoring area on a terminal page, wherein the monitoring area also displays expressions related to the screened variables and real-time values corresponding to the expressions.
In combination with the first aspect, further, the method further includes:
when detecting that the corresponding process of the robot flow automation program stops running, acquiring the code position of the robot flow automation program when the process stops running by calling a general programming language debugger;
obtaining a debugging node to which the robot flow automation program operates at the current moment according to the corresponding relation between the graphical flow and the robot flow automation program and the code position of the robot flow automation program;
and highlighting the debugging node operated by the robot process automation program at the current moment in the graphical process.
With reference to the first aspect, further, the method further includes:
acquiring a variable modification instruction;
and modifying the value of the original variable in the process corresponding to the robot process automation program by calling a general programming language debugger based on the variable modification instruction and the debugging information displayed on the terminal page.
In a second aspect, the present invention provides a debugging information display apparatus, including:
the robot flow automatic tool comprises a receiving module, a debugging module and a debugging module, wherein the receiving module is used for acquiring a debugging command and controlling the robot flow automatic tool to enter a debugging mode according to the debugging command, at least one robot flow automatic program is configured in the robot flow automatic tool, and the robot flow automatic program corresponds to a graphical flow;
the operation module is used for executing the robot flow automation program by calling the general programming language debugger in the debugging mode;
the display module is used for extracting global code information from the robot flow automation program when the robot flow automation program runs to a preset debugging node, calculating debugging information of the debugging node according to the global code information and displaying the debugging information on a terminal page;
the graphical process comprises a plurality of nodes, one or more nodes in the plurality of nodes are preset debugging nodes, and the debugging nodes are used for suspending execution of the robot process automation program.
In a third aspect, the present invention provides an electronic device, including a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method of the first aspect.
In a fourth aspect, the invention proposes a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of the first aspect.
The following advantages can be obtained by adopting the technical means:
the invention provides a debugging information display method, a debugging information display device, electronic equipment and a storage medium, wherein debugging is carried out based on a robot flow automation program and a corresponding graphical flow, debugging nodes are preset, when the robot flow automation program runs to the debugging nodes, debugging information of the debugging nodes is calculated by extracting calculated global code information, and the debugging information is directly displayed on a terminal page, so that the effects of shielding and debugging irrelevant codes are realized, only the debugging information relevant to debugging is displayed, a user can conveniently carry out debugging based on the debugging information, and the problem that the debugging of the robot flow automation program is not simple and convenient is solved. In addition, the invention carries out information display and debugging operation on the terminal page, can reduce the necessary knowledge required in the debugging process to the minimum, reduces the technical requirements on debugging personnel, and improves the applicability of the method.
Drawings
FIG. 1 is a flowchart illustrating the steps of a method for displaying debugging information according to the present invention;
FIG. 2 is a schematic diagram of a multi-terminal interaction of a debugging information display method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a terminal page of an RPA designer in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a debugging information display device according to the present invention.
Detailed Description
The technical scheme of the invention is further explained by combining the drawings as follows:
RPA refers to a robot Process Automation (robot Process Automation) program, which executes highly repetitive tasks based on simple rules by presetting, thereby realizing Automation of a workflow. The robot flow automation program is obtained by a user through flow design by an RPA designer, the robot flow automation program is an abstraction of a general programming language, common flow steps are packaged into components, and the robot flow automation program can be directly used by the user without considering the internal implementation details of the components, so that the aim of simplifying program development is fulfilled. Robot process automation programs often include a main process and a branch process outside the main process, and whether the main process or the branch process often consists of a plurality of process steps. Each flow step represents a basic operation or a custom operation. The robotic automation process may be represented in a variety of ways, typically in the form of a graphical process. The user can be a development designer, the development designer utilizes the client of the RPA designer to carry out graphical design of the robot flow automation program, and finally, the graphical flow which can be visually displayed in the designer client is obtained. The user can also be a debugging person who uses the RPA designer to debug the designed robot process automation program.
In the prior art, an error code is often required to be searched in a code for debugging a robot flow automation program, but a component in the robot flow automation program encapsulates the code, if the code of the robot flow automation program is directly debugged, specific codes need to be deeply known, and the codes are not only large in quantity, but also have no great relation with the main logic of the robot flow automation program, so that the debugging method is complex and not simple. In addition, in the actual application process, many RPA debugging personnel do not have a programming basis, so that the debugging method cannot cover all users.
The invention provides a debugging information display method, a device, electronic equipment and a storage medium, wherein a robot flow automation tool enters a debugging mode through a received debugging instruction, when a robot flow automation program runs to a debugging node, the debugging information of the debugging node is calculated according to global code information extracted from the robot flow automation program, and the debugging information is displayed on a terminal page.
Example 1:
the invention provides a debugging information display method, which carries out interactive operation among a user, a designer and a debugger, and specifically comprises the following steps as shown in figures 1 and 2:
and step A, acquiring a debugging command, and controlling the robot process automation tool to enter a debugging mode according to the debugging command.
The debugging command may be a command issued by a user through an interface provided by the robot process automation tool, or may be a machine instruction triggered when a constraint is satisfied.
The robot process automation tool is a tool required by an RPA program in the process of development, integration, deployment, operation and maintenance. In some embodiments, the robotic flow automation tool may be an RPA designer, comprising three modules, an editor, a runner, and a controller. The editor module can be used for editing of workflows, dragging and editing of visual controls and the like. The runner module is used for executing the written RPA flow. The controller module is used for managing the starting, stopping and executing scheduling of the RPA process and monitoring the running state of the RPA program. At least one robot flow automation program is configured in the robot flow automation tool, and the robot flow automation program corresponds to the graphical flow.
The debugging mode is a mode for debugging the robot flow automation program, and in the mode, the robot flow automation program can be debugged by running in a single step or can be debugged by directly running.
Fig. 3 shows a schematic terminal page view of an RPA designer, in which a robot flow automation program has been configured, and the robot flow automation program is displayed as a visual graphical flow in an RPA designer client window.
The graphical process includes a plurality of nodes, each of which may represent a basic operation or process control. For example, the basic operation may be "open browser", and the flow control may be a for loop for looping through its child branch flows multiple times. In the graphical process, the connecting line between the nodes represents the control flow of the process, if the node A is executed and then the node B is executed, a connecting line is established between the node A and the node B, and the arrow points to the node B. There may also be data transfer between nodes, which may be represented by data flow connections.
And selecting one or more nodes from the plurality of nodes in the graphical process as preset debugging nodes, wherein the debugging nodes are used for suspending execution of the robot process automation program.
In the embodiment of the present invention, the setting method of the debug node is as follows:
(1) And acquiring a debugging node setting instruction. The user sends instructions to set up debugging nodes for the graphical flow based on the buttons provided by the RPA designer.
(2) And selecting one or more nodes as debugging nodes in the graphical flow according to the debugging node setting instruction.
(3) And setting a breakpoint at the position of the robot flow automation program code corresponding to the debugging node by calling a universal programming language debugger. And after receiving the debugging node setting instruction, the RPA designer forwards the instruction to the RPA debugger. And the RPA debugger sets a breakpoint at the code position corresponding to the debugging node by calling the general programming language debugger according to the debugging node setting instruction.
More specifically, a user can directly debug the graphical flow, the basic method of debugging is to set breakpoints, a node to be debugged can be directly selected on the graphical flow, and the node is set as a debugging node through a right-click menu or a shortcut key. After receiving the instruction, the RPA debugger searches the position information of the code block corresponding to the node according to the node selected by the user. It should be noted that, the mapping relationship between the node and the code is generated when the graphical process is developed, and the mapping relationship is automatically updated each time any one node in the graphical process is added, deleted, or modified. The mapping relationship between the node and the code can also be expressed as global code information. The location information of each code block includes a file name, a start line number, and an end line number of the code block. After the RPA debugger obtains the position information of the code block corresponding to the debugging node, the breakpoint is set on the corresponding code line by calling the general programming language debugger.
In the embodiment of the invention, the robot flow automation program adopts python language, the universal programming language debugger refers to a python language debugger, specifically a Debug py debugger, and also can be other debugger supporting Debug Adapter Protocol. The command to set the breakpoint is a setBackakpoints request that contains the filename and the line of code, where the starting line number of the code block is used. In some embodiments, other debugging tools corresponding to other programming languages may also be used, such as a net-based RPA design that requires invocation of a net debugger. The specific debugging tool is related to the general programming language adopted by the robot flow automation program.
And step B, executing the robot flow automation program by calling the general programming language debugger in the debugging mode.
After the debug node is set, the user issues an instruction to enter a debug mode to the RPA debugger. And after receiving the instruction, the RPA debugger runs the configured robot flow automation program. For example, the following commands may be used to initiate the debugging process: python-m debug py — lisen 0.0.0.0. Port 5678 is a message port for the debug process, and receives DAP protocol messages to control the debug process. Py refers to the python file corresponding to the current robot flow automation program.
Step C, when the robot flow automation program runs to a preset debugging node, debugging information of the debugging node is calculated according to the global code information, and the debugging information is displayed on a terminal page;
when the robot flow automation program runs to a debugging node, the calculated global code information is extracted, the debugging information of the debugging node is calculated according to the global code information, the calculated debugging information is sent to the RPA designer, and finally, the RPA designer displays the received debugging information in one or more regions of the RPA designer terminal, wherein the region is a debugging information display region. For example, in fig. 3, the debugging information may be displayed below the graphical flow and may be displayed in regions according to the kind of the debugging information. Of course, the embodiment of the present invention does not limit the relative position relationship between the debugging information display area and the graphical process display area.
In step C, the method for displaying the debugging information on the terminal page includes:
(1) And screening all variables in the debugging information according to the received screening instruction to obtain the screened variables.
(2) And displaying the screened variables and the real-time values thereof in a monitoring area on a terminal page, wherein the monitoring area also displays expressions related to the screened variables and the real-time values corresponding to the expressions.
In some cases, when debugging the RPA program, there are many variables and corresponding real-time values displayed on the terminal page, but only a part of the information that needs to be focused by the debugging personnel may be needed. Therefore, the information which needs to be focused by the debugging personnel can be screened out and displayed in another area. Specifically, as shown in fig. 3, a stack display area may be provided to display information related to the stack. A variable display area may be provided to display the variable and its real-time value. A monitoring area may also be provided to display the filtered variables and their real-time values. These screened variables and their real-time values are often the information that the debugger needs to focus on. The method has the advantages that the information which needs to be focused by debugging personnel is independently displayed, and the debugging personnel can be well helped to debug the program.
In the method, after the program is started in the debugging mode, the execution can be stopped immediately, a user is allowed to manually set a new breakpoint, the single-step operation is carried out, and the breakpoint can be directly operated. In the direct mode of operation, the debug py debugger will execute the corresponding program until the first breakpoint is encountered, then stop execution, and return a message to the RPA debugger. If the program is running all the time, no return message exists, and the RPA debugger is in a running state all the time. In the single-step operation mode, the RPA debugger sets the first line code corresponding to each node as a breakpoint and then operates. Each time the interrupt is finished, a node is executed, and a new node is entered.
Step D, when detecting that the corresponding process of the robot flow automation program stops running, acquiring the code position of the robot flow automation program of which the process stops running by calling a general programming language debugger, wherein the position information can comprise a file name and a line number; obtaining a debugging node to which the robot flow automation program operates at the current moment according to the corresponding relation between the graphical flow and the robot flow automation program code position; and highlighting the debugging node operated by the robot process automation program at the current moment in the graphical process.
When the program is suspended from execution, in addition to highlighting the corresponding node, debugging information needs to be displayed, and the debugging information may include variables of the robot flow automation program, a stack of the robot flow automation program, and attribute values of components of the robot flow automation program that have already been executed. The stack information may be displayed in the stack display area of fig. 3, the variable information may be displayed in the variable display area of fig. 3, and the monitoring information may be displayed in the monitoring area of fig. 3. The monitoring information can be variable information which is automatically screened by a user and a corresponding real-time value, and also can be an expression about the screened variable and a corresponding real-time value of the expression. The stack information can be a function directly supported by a general programming language debugger, and can directly call a corresponding request. In the DAP protocol, the request for stack information is a stackTrace.
In the embodiment of the invention, the variables comprise global variables, process variables and local variables, which all belong to variable information in a general programming language debugger and can directly call corresponding requests to obtain. In the DAP protocol, the variable information corresponds to requests for variables, and the current values of one or more variables can be obtained each time. The RPA debugger needs to translate the global variables, the process variables and the local variables in the RPA flow into the actual variables in the python code. Specifically, all global variables are added with a prefix of "gv _", flow variables are added with a prefix of "lv _", and local variables are added with a prefix of "local _". In this way, it can be guaranteed to be unambiguously distinguished from variables in python code. After the actual variable names are obtained, the current values of all variables can be obtained.
After the current values of all variables are obtained, the values of the variables and expressions in the monitoring list are correspondingly updated, and the values of the variables and expressions are recalculated and displayed. In an embodiment of the present invention, the latest value is calculated using the eval expression in python. If the expression is "var1 × 10 + 2", the variable is first translated into an actual variable name, such as lv _ var1, and then the value "eval (lv _ var1 × 10 + 2)" of the expression is calculated. If the execution is wrong, the display value is null, and the value of the current variable does not exist or the expression has errors.
And step E, after the program is stopped, the values of the variables can be modified besides the stack information and the values of the variables. Variable modification instructions are generally required to be obtained first; and then modifying the value of the original variable in the corresponding process of the robot flow automation program by calling a general programming language debugger based on the variable modification instruction and the debugging information displayed by the terminal page.
In the DAP protocol, the value of the modified variable is a setVariable request and the parameter contains the variable name, new value. After the value of the variable is updated, the RPA flow is continuously operated, and the later node uses the newly modified value instead of the original value, so that the effect of modifying the variable value during the operation and further controlling the flow execution path is achieved.
Besides checking and modifying variable values, the invention can execute other control instructions, including continuous operation, re-operation and breakpoint setting, which all correspond to an instruction of the general programming language debugger. Corresponding functions can be realized by sending corresponding requests and parameters.
By packaging the universal programming language debugger, a user does not need to know the universal programming language of the bottom layer and the specific implementation details of the components, only needs to pay attention to the simplified graphical processes and the variables used by the graphical processes and the variables, can quickly find the problem on a visual interface, does not need to switch a development tool and a thinking mode, simplifies the difficulty of process debugging and improves the working efficiency.
Example 2:
based on the method in embodiment 1, the present invention further provides a debugging information display apparatus, as shown in fig. 4, which mainly includes a receiving module, an operating module, and a display module.
The receiving module is mainly used for acquiring a debugging command and controlling the robot flow automation tool to enter a debugging mode according to the debugging command, wherein at least one robot flow automation program is configured in the robot flow automation tool, and the robot flow automation program corresponds to a graphical flow.
The graphical process comprises a plurality of nodes, one or more of the nodes are preset debugging nodes, and the debugging nodes are used for suspending execution of the robot process automation program.
The operation module is mainly used for executing the robot flow automation program by calling the general programming language debugger in the debugging mode.
The display module is mainly used for extracting global code information from the robot flow automation program when the robot flow automation program runs to a preset debugging node, calculating debugging information of the debugging node according to the global code information, and displaying the debugging information on a terminal page.
Example 3:
the invention also provides an electronic device, which comprises a processor and a storage medium; wherein the storage medium is configured to store instructions; the processor is configured to operate according to the instructions to perform the steps of the debugging information display method in embodiment 1.
Example 4:
the present invention also proposes a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the steps of the debugging information display method in embodiment 1.
Example 5:
the invention also provides a hardware system applying the debugging information display method in the embodiment 1, and the system can comprise a terminal.
The terminal may be an electronic device having network access capabilities. For example, the client may be a desktop computer, a tablet computer, a notebook computer, a smart phone, a digital assistant, a shopping guide terminal, a television, and so on. Alternatively, the client may be software capable of running in the electronic device.
The debugging method and the debugging device are used for debugging based on the robot flow automation program and the corresponding graphical flow, the debugging nodes are preset, when the robot flow automation program runs to the debugging nodes, the global code information is obtained through extraction and calculation, then the debugging information of the debugging nodes is calculated, and the debugging information is directly displayed on the terminal page, so that the effects of shielding specific codes irrelevant to debugging and only displaying the debugging information relevant to debugging are achieved, a user can conveniently debug based on the debugging information, and the problem that the debugging of the robot flow automation program is not simple and convenient enough is solved. In addition, the invention carries out information display and debugging operation on the terminal page, can reduce the necessary knowledge required in the debugging process to the minimum, reduces the technical requirements on debugging personnel, and improves the applicability of the method.
It is understood that the specific examples are set forth herein only to assist those skilled in the art in better understanding the embodiments of the present disclosure and are not intended to limit the scope of the present disclosure.
It should be understood that, in the various embodiments in the present specification, the order of execution of each process does not mean the order of execution, and the order of execution of each process should be determined by its function and inherent logic, and should not limit the implementation process of the embodiments in the present specification.
It is to be understood that the various embodiments described in the present specification may be implemented individually or in combination, and the embodiments in the present specification are not limited thereto.
Unless otherwise defined, all technical and scientific terms used in the embodiments of the present specification have the same meaning as commonly understood by one of ordinary skill in the art to which this specification belongs. The terminology used in the description is for the purpose of describing particular embodiments only and is not intended to limit the scope of the description. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items. As used in the specification embodiments 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.
It is understood that the processor of the embodiments of the present description may be an integrated circuit chip having signal processing capability. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The processor may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present specification may be embodied directly in a hardware decoding processor, or in a combination of hardware and software modules in the decoding processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, etc. as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It will be appreciated that the memory in the implementations of the specification can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The nonvolatile memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), or a flash memory. The volatile memory may be Random Access Memory (RAM). It should be noted that the memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present description.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present specification, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is merely a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present specification may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present specification may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present specification. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, it is possible to make various improvements and modifications without departing from the technical principle of the present invention, and those improvements and modifications should be considered as the protection scope of the present invention.

Claims (9)

1. A debugging information display method is characterized by comprising the following steps:
acquiring a debugging command, and controlling a robot flow automation tool to enter a debugging mode according to the debugging command, wherein at least one robot flow automation program is configured in the robot flow automation tool, and the robot flow automation program corresponds to a graphical process;
executing a robot flow automation program by calling a general programming language debugger in a debugging mode;
when the robot flow automation program runs to a preset debugging node, extracting global code information from the robot flow automation program, calculating debugging information of the debugging node according to the global code information, and displaying the debugging information on a terminal page;
the graphical process comprises a plurality of nodes, one or more nodes in the plurality of nodes are preset debugging nodes, and the debugging nodes are used for suspending execution of the robot process automation program.
2. The method for displaying debugging information according to claim 1, wherein the method for setting the debugging nodes is as follows:
acquiring a debugging node setting instruction;
selecting one or more nodes as debugging nodes in the graphical process according to the debugging node setting instruction;
and setting a breakpoint at the position of the robot flow automation program code corresponding to the debugging node by calling a universal programming language debugger.
3. The debugging information displaying method according to claim 1, wherein the debugging information comprises variables of the robot flow automation program, a stack of the robot flow automation program, and attribute values of components of the robot flow automation program that have already been executed, wherein the variables comprise global variables, flow variables, and local variables.
4. The method for displaying the debugging information according to claim 3, wherein the method for displaying the debugging information on a terminal page comprises the following steps:
screening all variables in the debugging information according to the received screening instruction to obtain screened variables;
and displaying the screened variables and the real-time values thereof in a monitoring area on a terminal page, wherein the monitoring area also displays expressions related to the screened variables and the real-time values corresponding to the expressions.
5. The debugging information displaying method according to claim 1, further comprising:
when detecting that the process corresponding to the robot flow automation program stops running, acquiring the code position of the robot flow automation program when the process stops running by calling a general programming language debugger;
obtaining a debugging node to which the robot flow automation program operates at the current moment according to the corresponding relation between the graphical flow and the robot flow automation program and the code position of the robot flow automation program;
and highlighting the debugging node to which the robot flow automation program operates at the current moment in the graphical flow.
6. The method for displaying debugging information according to claim 1, further comprising:
acquiring a variable modification instruction;
and modifying the value of the original variable in the corresponding process of the robot flow automation program by calling a general programming language debugger based on the variable modification instruction and the debugging information displayed on the terminal page.
7. A debug information display apparatus, comprising:
the robot flow automatic tool comprises a receiving module, a debugging module and a debugging module, wherein the receiving module is used for acquiring a debugging command and controlling the robot flow automatic tool to enter a debugging mode according to the debugging command, at least one robot flow automatic program is configured in the robot flow automatic tool, and the robot flow automatic program corresponds to a graphical flow;
the operation module is used for executing the robot flow automation program by calling the general programming language debugger in the debugging mode;
the display module is used for extracting global code information from the robot flow automation program when the robot flow automation program runs to a preset debugging node, calculating debugging information of the debugging node according to the global code information and displaying the debugging information on a terminal page;
the graphical process comprises a plurality of nodes, one or more nodes in the plurality of nodes are preset debugging nodes, and the debugging nodes are used for suspending execution of the robot process automation program.
8. An electronic device comprising a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method of any of claims 1~6.
9. A computer readable storage medium, having stored thereon a computer program, characterized in that the program, when executed by a processor, performs the steps of the method of any of claims 1~6.
CN202211706056.XA 2022-12-29 2022-12-29 Debugging information display method and device, electronic equipment and storage medium Pending CN115934566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211706056.XA CN115934566A (en) 2022-12-29 2022-12-29 Debugging information display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211706056.XA CN115934566A (en) 2022-12-29 2022-12-29 Debugging information display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115934566A true CN115934566A (en) 2023-04-07

Family

ID=86550399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211706056.XA Pending CN115934566A (en) 2022-12-29 2022-12-29 Debugging information display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115934566A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116185881A (en) * 2023-04-27 2023-05-30 杭州城市大数据运营有限公司 Source system page change detection positioning method, device, equipment and storage medium
CN116955118A (en) * 2023-09-19 2023-10-27 统信软件技术有限公司 Performance analysis method, system, computing device and storage medium
CN117520181A (en) * 2023-11-21 2024-02-06 北京领雁科技股份有限公司 Method and device for debugging business process, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116185881A (en) * 2023-04-27 2023-05-30 杭州城市大数据运营有限公司 Source system page change detection positioning method, device, equipment and storage medium
CN116955118A (en) * 2023-09-19 2023-10-27 统信软件技术有限公司 Performance analysis method, system, computing device and storage medium
CN116955118B (en) * 2023-09-19 2023-12-29 统信软件技术有限公司 Performance analysis method, system, computing device and storage medium
CN117520181A (en) * 2023-11-21 2024-02-06 北京领雁科技股份有限公司 Method and device for debugging business process, electronic equipment and storage medium
CN117520181B (en) * 2023-11-21 2024-05-14 北京领雁科技股份有限公司 Method and device for debugging business process, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN115934566A (en) Debugging information display method and device, electronic equipment and storage medium
US7054793B2 (en) Device and method for generating a virtual model of an installation
US7908020B2 (en) Architecture for control systems
WO2020134633A1 (en) Development method and device for application program, and integrated development tool
US20040205702A1 (en) Windows-based flowcharting and code generation system
CN103514072A (en) Method and device for debugging graphical service for visual programming
JP2011165208A (en) Method and system for developing image processing application
US11960925B2 (en) Program generating device, program generating method, and information storage medium
CN110704044A (en) Visual programming system
CN107203465A (en) System interface method of testing and device
CN113741881B (en) RPA visual flow design method
CN112446625A (en) Process line generation system, method, platform and storage medium
CN108536586A (en) Information acquisition method, equipment and the system of Android mobile terminal
JP2009223471A (en) Simulation system
JPH06332689A (en) Program displaying method and program edition accepting method
CN107679264B (en) Method for assisting in checking dislocation of bit numbers in PCB design
JP5657183B2 (en) Method and apparatus for enabling a first computer program to execute application logic of a second computer program, for interfacing the first computer program and the second computer program And apparatus for generating computer program code for the same, a computer program, and a software interface for enabling a first computer program to execute application logic of a second computer program For providing information (computer program interface)
JPH05265802A (en) Software debugging device
JPH02275539A (en) Debugging system
JPH1069379A (en) Graphical programing method
CN109032443B (en) Software control method and device for automatic operation equipment
JP3464417B2 (en) Test display method of screen data for control device
CN114398290A (en) Program debugging method, device, equipment and medium
EP3633471B1 (en) Program development support device, program development support system, program development support method, and program development support program
CN112540907B (en) Visual debugging method for parallel program on heterogeneous many-core

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