WO2023044879A1 - 应用程序监控方法、装置及可读存储介质 - Google Patents
应用程序监控方法、装置及可读存储介质 Download PDFInfo
- Publication number
- WO2023044879A1 WO2023044879A1 PCT/CN2021/120802 CN2021120802W WO2023044879A1 WO 2023044879 A1 WO2023044879 A1 WO 2023044879A1 CN 2021120802 W CN2021120802 W CN 2021120802W WO 2023044879 A1 WO2023044879 A1 WO 2023044879A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- function block
- interface
- event port
- user
- input
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000012544 monitoring process Methods 0.000 claims abstract description 115
- 230000004044 response Effects 0.000 claims abstract description 36
- 230000006870 function Effects 0.000 claims description 350
- 238000004590 computer program Methods 0.000 claims description 23
- 238000012806 monitoring device Methods 0.000 claims 1
- 239000000725 suspension Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 13
- 238000007726 management method Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000012800 visualization Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
Definitions
- the present application relates to the field of application program technology, in particular to an application program monitoring method, device and readable storage medium.
- the embodiment of the present application proposes an application program monitoring method on the one hand, and an application program monitoring device on the other hand.
- Other aspects of the present application also provide non-transitory computer-readable storage media, electronic equipment, and computer program products, so as to Improve application monitoring efficiency.
- an application monitoring method includes:
- the first function block In response to a function block call request input by the user carrying the name of the first function block, the first function block is searched from the function block library and displayed on the interface, and the displayed content includes at least: the name of the first function block and The name of each event port contained in the first function block; wherein, the first function block is any function block contained in the first application program to be designed by the user;
- the code of the first function block is found in the function block library, the first event port is found in the code, and the Adding a breakpoint flag at the first event port; wherein, the first event port is any event port of the first function block;
- the name of the first data parameter, the name of the first event port and the name of the first function block are used as A monitoring parameter table item is added to the monitoring parameter table;
- the code of each function block is found in the function block library, and according to the found code and each function block Execution sequence relationship between blocks, run the code of each function block;
- the setting of breakpoints and monitoring parameters in the application program is realized through graphical tools, which has strong visualization, simple operation, and no need to view codes, so that setting breakpoints and monitoring parameters in the application program can be completed without rich programming experience. parameters, thus improving monitoring/debugging efficiency.
- the response to the breakpoint setting request input by the user on the interface for the first event port of the first function block includes:
- Breakpoint setting request It is detected that the user has clicked the breakpoint tool on the interface, and it is detected that the user has clicked the first event port of the first function block on the interface, then it is determined that the user has input the command for the first event port of the first function block on the interface. Breakpoint setting request.
- the response to the monitoring parameter setting request input by the user on the interface for the first data parameter of the input or output of the first event port includes:
- a monitor parameter setting request for the first data parameter It is detected that the user selects the first data parameter of the input or output of the first event port of the first function block on the interface, and then it is determined that the user has input the input or output of the first event port of the first function block on the interface.
- a monitor parameter setting request for the first data parameter It is detected that the user selects the first data parameter of the input or output of the first event port of the first function block on the interface, and then it is determined that the user has input the input or output of the first event port of the first function block on the interface.
- the monitoring parameter setting request of the output first data parameter includes:
- a monitoring parameter search box is displayed on the interface
- the name of each event port where the first data parameter is located and the name of the function block where each event port is located are displayed on the interface;
- adding a breakpoint flag at the first event port further includes: setting the state of the first event port as unnotified on the interface;
- the code of suspending the operation of the first function block further includes: setting the state of the event port where the detected breakpoint flag is located on the interface to: in notification;
- the state of the event port where the detected breakpoint flag is located is set to: notified on the interface.
- an application program monitoring device which includes:
- the function block calling module is configured to search for the first function block from the function block library and display the first function block on the interface in response to the function block call request input by the user carrying the name of the first function block, and the display content at least includes: The name of the first function block and the names of the various event ports contained in the first function block; wherein, the first function block is any function block contained in the first application program to be designed by the user;
- the breakpoint and monitoring parameter setting module is used to respond to the breakpoint setting request input by the user on the interface for the first event port of the first function block, and find the code of the first function block in the function block library.
- the first event port is found in the code, and a breakpoint flag is added at the first event port; wherein, the first event port is any event port of the first function block; in response to user input on the interface for the first event port
- the monitoring parameter setting request of the input or output first data parameter, the name of the first data parameter, the name of the first event port and the name of the first function block are added to the monitoring parameter table as a monitoring parameter table item;
- the operation and monitoring module is used to respond to the first application program running request input by the user, according to the name of each function block contained in the first application program displayed on the interface, to find the code of each function block in the function block library, according to The searched code and the execution sequence relationship between each function block, run the code of each function block; and, when running the first function block, query the monitoring parameters of the first function block in the monitoring parameter table, if found, Then, during the running process, the value of the monitoring parameter is acquired, and when a breakpoint flag is detected, the code of the first function block is suspended and the current value of the monitoring parameter is displayed on the interface.
- a non-transitory computer-readable storage medium stores instructions, and it is characterized in that, when executed by a processor, the instructions cause the processor to perform any of the above The steps of the application program monitoring method.
- an electronic device including: a processor and a memory, the memory stores a computer program that can run on the processor, and when the processor executes the computer program, any of the above The steps of the application monitoring method described in the item.
- a computer program product including a computer program or an instruction, and when the computer program or instruction is executed by a processor, the steps of the application program monitoring method described in any one of the above items are implemented.
- Fig. 1 is an example diagram of marking debugging parameters in an existing computer program
- FIG. 2 is a flow chart of the application program monitoring method provided in the first embodiment of the present application
- FIG. 3 is a flow chart of the application program monitoring method provided in the second embodiment of the present application.
- Fig. 4 is an example diagram 1 of the interface of the application program editor
- Figure 5 is the second example of the interface of the application program editor
- Fig. 6 is the interface example Fig. 3 of the application program editor
- Fig. 7 is the interface example Fig. 4 of the application program editor
- Figure 8 is the fifth example of the interface of the application program editor
- Figure 9 is an example figure 6 of the interface of the application program editor
- Figure 10 is the seventh example of the interface of the application program editor
- FIG. 11 is a schematic structural diagram of an application program monitoring device provided by an embodiment of the present application.
- FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- step 51 breakpoint tool 81 run tool 111 function block call module 112 Output-Input Relationship Building Module 113 Breakpoint and monitoring parameter setting module 114 Operation and Monitoring Module 121 processor 122 memory 123 power supply 124 I/O unit
- FIG. 2 is a flow chart of the application program monitoring method provided in the first embodiment of the present application, and its specific steps are as follows:
- Step S201 In response to the function block call request input by the user carrying the name of the first function block, search for the first function block from the function block library and display the first function block on the interface, the displayed content at least includes: the first function block and the name of each event port included in the first function block; wherein, the first function block is any function block included in the first application program to be designed by the user.
- the execution sequence relationship between the first function block and the second function block displayed on the interface set by the user in response to the execution sequence relationship between the first function block and the second function block displayed on the interface set by the user, the execution sequence relationship between the first function block and the second function block is saved.
- the first function block and the second function block are any two function blocks included in the first application program.
- Step S202 In response to the breakpoint setting request input by the user on the interface for the first event port of the first function block, the code of the first function block is found in the function block library, and the first event is found in the code port, adding a breakpoint flag at the first event port; wherein, the first event port is any event port of the first function block.
- Step S203 In response to the monitoring parameter setting request of the first data parameter for the input or output of the first event port of the first function block input by the user on the interface, set the name of the first data parameter, the name of the first event port and the name of the first function block are added to the monitoring parameter table as a monitoring parameter table item.
- Step S204 In response to the first application program running request input by the user, according to the name of each function block contained in the first application program displayed on the interface, find the code of each function block in the function block library, and according to the found code And the execution sequence relationship between each function block, run the code of each function block; and, when running the first function block, query the monitoring parameters of the first function block in the monitoring parameter table, if found, then in the running process , obtain the value of the monitoring parameter, and when a breakpoint flag is detected, the code of the first function block is suspended and the current value of the monitoring parameter is displayed on the interface.
- the setting of breakpoints and monitoring parameters in the application program is realized through graphical tools, which has strong visualization, simple operation, and no need to view codes, so that setting breakpoints and monitoring parameters in the application program can be completed without rich programming experience. parameters, thus improving monitoring/debugging efficiency.
- step S202 in response to the breakpoint setting request input by the user on the interface for the first event port of the first function block, including:
- Breakpoint setting request It is detected that the user has clicked the breakpoint tool on the interface, and it is detected that the user has clicked the first event port of the first function block on the interface, then it is determined that the user has input the command for the first event port of the first function block on the interface. Breakpoint setting request.
- step S203 in response to the monitoring parameter setting request input by the user on the interface for the first data parameter of the input or output of the first event port of the first function block, including:
- the code of the first function block is searched in the function block library, and the code of the first event port is searched in the code. All data parameters input or output are displayed on the interface;
- a monitor parameter setting request for the first data parameter It is detected that the user selects the first data parameter of the input or output of the first event port of the first function block on the interface, and then it is determined that the user has input the input or output of the first event port of the first function block on the interface.
- a monitor parameter setting request for the first data parameter It is detected that the user selects the first data parameter of the input or output of the first event port of the first function block on the interface, and then it is determined that the user has input the input or output of the first event port of the first function block on the interface.
- step S202 in response to the breakpoint setting request input by the user on the interface for the first event port of the first function block, and in step 203, in response to the input by the user on the interface for The monitoring parameter setting request of the first data parameter input or output of the first event port of the first function block includes:
- a monitoring parameter search box is displayed on the interface
- the name of each event port where the first data parameter is located and the name of the function block where each event port is located are displayed on the interface;
- step S204 after suspending the running of the code of the first function block, the method further includes: responding to a request to continue running inputted by the user on the interface, continuing to run subsequent codes.
- step S202 adding a breakpoint flag at the first event port further includes: setting the state of the first event port as unnotified on the interface;
- suspending the operation of the code of the first function block further includes: setting the state of the event port where the detected breakpoint flag is located on the interface to: in notification;
- the state of the event port where the detected breakpoint flag is located is set to: notified on the interface.
- FIG. 3 is a flow chart of the application program monitoring method provided in the second embodiment of the present application, and its specific steps are as follows:
- Step S301 The application program editor receives the function block call request with the name of the first function block input by the user on the interface, searches for the first function block from the function block library (FB Library, Function Block Library), and displays the first function block on the interface Displaying the first function block, the displayed content at least includes: the name of the first function block and the name of each event port contained in the first function block; wherein, the first function block is any function block.
- the function block library FB Library, Function Block Library
- Fig. 4 is an example diagram 1 of the interface of the application program editor. As shown in Fig. 4, the original code of each function block used to realize various functions is stored in the function block library. Users can design the application program with the functions they want by calling the function blocks in the function block library. For example: in Fig. 4, the user wants to design an application program, and the application program needs four function blocks A, B, C, and D to complete, and the user calls the function blocks A, B, C, and D from the function block library.
- the event ports include: a start event port, an error event port, a screw-driving event port, and an end event port.
- Step S302 The application program editor detects that the user has set an execution order relationship between the first function block and the second function block displayed on the interface, and saves the execution order relationship between the first function block and the second function block;
- the first function block and the second function block are any two function blocks included in the first application program.
- the first function block is function block A
- the second function block is function block B.
- Step S303 The application editor detects that the user clicks the breakpoint tool on the tool bar of the interface, and then highlights all event ports of all function blocks displayed on the interface.
- Step S304 The application program editor detects that the user has input a display request for the data parameter list input or output of the first event port of the first function block, and finds the input of the first event port of the first function block in the function block library The names of all data parameters input or output by the first event port of the first function block are displayed in a list on the interface.
- Step S305 The application program editor detects that the user has selected the first event port of the first function block, then finds the code of the first function block in the function block library, finds the first event port in the code, and finds the first event port in the function block library. Add a breakpoint flag to an event port.
- first event port For example: if the first event port is the start event port, add a breakpoint mark at the beginning of the code of the first function block; if the first event port is the end event port, then add a breakpoint mark at the end of the code of the first function block If the first event port is an error event port, add a breakpoint mark at the position where the error event is generated in the code; Add breakpoint marks at positions 1 to 3 of screwing events.
- Fig. 7 shows an interface example diagram of adding a breakpoint flag at the screw-tightening 1 event port in the code of function block C.
- Step S306 The application program editor detects that the user selects the name of the first data parameter in the name list of the data parameters input or output by the first event port of the first function block displayed on the interface, and the name of the first data parameter is set to The name, the name of the first event port and the name of the first function block are added as a monitoring parameter table item to the monitoring parameter table maintained by itself.
- the user selects the name of data parameter 2 of the end event port of function block A; in FIG. 7 , the user selects the name of data parameter 1 of the screw-tightening 1 event port of function block C.
- Step S307 The application program editor receives the running request for the first application program, and determines according to the names of the function blocks contained in the first application program displayed on the interface and the saved execution sequence relationship between the function blocks.
- the running sequence of each function block according to the running sequence of each function block, find the code of each function block in the function block library in turn, and run each function in turn according to the code of each function block and the execution sequence relationship between each function block block code; and, when a function block is to be run, first query the monitoring parameter table maintained by itself, and query all monitoring data parameters of the function block in the table. If found, the real-time acquisition of the For each monitoring data parameter value of the function block, when a breakpoint flag is detected, the code of the function block is suspended, and the current value of each monitoring parameter is displayed on the interface.
- a continue button When the operation is paused, a continue button will be displayed at the corresponding event port of the function block on the interface, and if it is detected that the user clicks the button, the operation will continue. As shown in FIG. 8 , a continue button is displayed below the screw-tightening 1 event port of function block C.
- the application editor when the application editor detects that the user clicks the breakpoint tool on the tool bar of the interface, it can further display a monitoring parameter search box on the interface, and when it detects that the user enters the name of a data parameter in the search box , according to the names of all function blocks displayed on the interface, search for the code of each function block in the function block library, and search for the data parameter in the code of each function block, if found, then according to the search result, the The name of the data parameter is combined with the name of each event port where the data parameter is located and the name of the function block where each event port is located, and each combination is displayed in the drop-down box of the search box as a table item (that is, each An entry includes: the name of the data parameter, the name of an event port where the data parameter is located, and the name of the function block where the event port is located);
- the speed data parameters are searched in the codes of function blocks A to D, and the search results show that the output data parameters of the end event port of function block A contain speed data parameter, the output data parameter of the end event port of function block D also includes the speed data parameter, then two search result items will be displayed in the drop-down box of the search box: speed: end event, function block A; speed: end event, function block D.
- speed: end event, function block A table item all data parameters output by the end event port of function block A are displayed below the end event port of function block A, and the speed is highlighted.
- FIG. 10 is an example diagram of the interface of the application editor after the setting of breakpoints and monitoring parameters is completed through FIG. 9 .
- an event port with a breakpoint flag set three states can be set for it: not notified, notifying and notified.
- the default state of the event port with a breakpoint flag is not notified, which means that the monitoring parameter value at the port has not been displayed to the user; when the code runs to an event port and starts to pause, the event port will be displayed on the interface The status of the event port is changed from unread to notifying, indicating that the monitoring parameter value is being displayed to the user; when the pause state ends and the code continues to run, the status of the event port is changed to notified, indicating that the monitoring parameter value of the event port has been Notify the user.
- FIG. 11 is a schematic structural diagram of an application program monitoring device 110 provided by an embodiment of the present application.
- the device 110 mainly includes:
- the function block calling module 111 is configured to search for the first function block from the function block library and display the first function block on the interface in response to the function block call request input by the user carrying the name of the first function block, and the display content includes at least : the name of the first function block and the names of each event port included in the first function block; wherein, the first function block is any function block included in the first application program to be designed by the user.
- the breakpoint and monitoring parameter setting module 112 is used to respond to the breakpoint setting request of the first event port of the first function block input by the user on the interface, and find the code of the first function block in the function block library.
- the first event port is found in the code, and a breakpoint flag is added at the first event port; wherein, the first event port is any event port of the first function block; in response to user input on the interface for the first function
- the monitoring parameter setting request of the first data parameter input or output of the first event port of the block, the name of the first data parameter, the name of the first event port and the name of the first function block are added as a monitoring parameter entry to in the monitoring parameter table.
- the running and monitoring module 113 is configured to respond to the first application running request input by the user, and to find the code of each function block in the function block library according to the names of the function blocks contained in the first application displayed on the interface, Run the codes of each function block according to the searched code and the execution sequence relationship between each function block; and, when running the first function block, query the monitoring parameters of the first function block in the monitoring parameter table, if , then during the running process, the value of the monitoring parameter is obtained, and when a breakpoint flag is detected, the code of the first function block is suspended and the current value of the monitoring parameter is displayed on the interface.
- the application program monitoring device further includes: an output-input relationship establishment module 114, configured to save the first function block and the second function block in response to the execution order relationship set by the user on the interface.
- Execution sequence relationship between a function block and a second function block; the first function block and the second function block are any two function blocks included in the first application program.
- the breakpoint and monitoring parameter setting module 112 responds to the breakpoint setting request for the first event port of the first function block input by the user on the interface, including:
- Breakpoint setting request It is detected that the user has clicked the breakpoint tool on the interface, and it is detected that the user has clicked the first event port of the first function block on the interface, then it is determined that the user has input the command for the first event port of the first function block on the interface. Breakpoint setting request.
- the breakpoint and monitoring parameter setting module 112 responds to the monitoring parameter setting request of the first data parameter of the input or output of the first event port of the first function block input by the user on the interface, including:
- a monitor parameter setting request for the first data parameter It is detected that the user selects the first data parameter of the input or output of the first event port of the first function block on the interface, and then it is determined that the user has input the input or output of the first event port of the first function block on the interface.
- a monitor parameter setting request for the first data parameter It is detected that the user selects the first data parameter of the input or output of the first event port of the first function block on the interface, and then it is determined that the user has input the input or output of the first event port of the first function block on the interface.
- the breakpoint and monitoring parameter setting module 112 responds to a breakpoint setting request input by the user on the interface for the first event port of the first function block, and in response to a user input on the interface for The monitoring parameter setting request of the first data parameter input or output of the first event port of the first function block includes:
- a monitoring parameter search box is displayed on the interface
- the name of each event port where the first data parameter is located and the name of the function block where each event port is located are displayed on the interface;
- the running and monitoring module 113 after the running and monitoring module 113 suspends running the code of the first function block, it further includes: responding to a request for continuing to run input by the user on the interface, continuing to run subsequent codes.
- the breakpoint and monitoring parameter setting module 112 adds a breakpoint flag at the first event port, further comprising: setting the status of the first event port on the interface as unnotified;
- the operation and monitoring module 113 suspends the code of the first function block, and further includes: setting the state of the event port where the detected breakpoint mark is located on the interface to: in notification;
- the running and monitoring module 113 sets the status of the event port where the detected breakpoint flag is located as: notified on the interface.
- the embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores instructions, and when the instructions are executed by a processor, the steps in the above application program monitoring method can be executed.
- the computer-readable medium may be included in each device/device/system of the above-mentioned embodiments, or may exist independently without being assembled into the device/device/system.
- instructions are stored in the computer-readable storage medium, and the stored instructions can execute the steps in the above application program monitoring method when executed by the processor.
- the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as may include but not limited to: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM) ), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above, but not used to limit this application scope of protection.
- a computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus or device.
- An embodiment of the present application further provides a computer program product, including a computer program or an instruction.
- a computer program product including a computer program or an instruction.
- the embodiment of the present application also provides an electronic device.
- Figure 12 shows a schematic structural diagram of the electronic device involved in the embodiment of the present application, specifically:
- the electronic device may include a processor 121 of one or more processing cores, a memory 122 of one or more computer-readable storage media, and a computer program stored on the memory and executable on the processor.
- a processor 121 of one or more processing cores a processor 121 of one or more processing cores
- a memory 122 of one or more computer-readable storage media a computer program stored on the memory and executable on the processor.
- the electronic device may further include components such as a power supply 123 and an input and output unit 124 .
- components such as a power supply 123 and an input and output unit 124 .
- the structure of the electronic device shown in Figure 12 does not constitute a limitation to the electronic device, and may include more or less components than shown in the illustration, or combine some components, or different components layout. in:
- the processor 121 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and/or modules stored in the memory 122, and calling Data, perform various functions of the server and process data, so as to monitor the electronic equipment as a whole.
- the memory 122 can be used to store software programs and modules, that is, the above-mentioned computer-readable storage medium.
- the processor 121 executes various functional applications and data processing by executing software programs and modules stored in the memory 122 .
- the memory 122 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function, etc.; the data storage area may store data created according to the use of the server, and the like.
- the memory 122 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
- the memory 122 may further include a memory controller to provide the processor 121 with access to the memory 122 .
- the electronic device also includes a power supply 123 for supplying power to various components, which can be logically connected to the processor 121 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.
- the power supply 123 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
- the electronic device may also include an input/output unit 124, the input unit output 124 may be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
- the input unit output 124 can also be used to display information input by the user or provided to the user, as well as various graphical user interfaces. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof.
- each block in a flowchart or block diagram may represent a module, program segment, or portion of code that includes one or more logical functions for implementing specified executable instructions.
- the functions noted in the block may occur out of the order noted in the different figures. For example, two blocks shown connected in series may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block in the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a A combination of dedicated hardware and computer instructions.
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
Description
标号 | 含义 |
S201~S204 | 步骤 |
S301~S307 | 步骤 |
51 | 断点工具 |
81 | 运行工具 |
111 | 功能块调用模块 |
112 | 输出输入关系建立模块 |
113 | 断点及监控参数设置模块 |
114 | 运行及监控模块 |
121 | 处理器 |
122 | 存储器 |
123 | 电源 |
124 | 输入输出单元 |
Claims (10)
- 一种应用程序监控方法,其特征在于,该方法包括:响应于用户输入的携带第一功能块名称的功能块调用请求,从功能块库中搜索(S201,S301)到第一功能块并在界面上显示第一功能块,显示内容至少包括:第一功能块的名称和第一功能块包含的各个事件端口的名称;其中,第一功能块为用户要设计的第一应用程序中包含的任一功能块;响应于用户在界面上输入的针对第一功能块的第一事件端口的断点设置请求,在功能块库中查找(S202,S305)到第一功能块的代码,在该代码中查找到第一事件端口,在第一事件端口处添加断点标志;其中,第一事件端口为第一功能块的任一事件端口;响应于用户在界面上输入的针对第一事件端口的输入或输出的第一数据参数的监控参数设置请求,将第一数据参数的名称、第一事件端口的名称和第一功能块的名称作为一条监控参数表项添加(S203,S306)到监控参数表中;响应于用户输入的第一应用程序运行请求,根据界面上显示的第一应用程序包含的各功能块的名称,在功能块库中查找(S204,S307)到各功能块的代码,根据查找到的代码以及各功能块之间的执行顺序关系,运行各功能块的代码;当运行第一应用程序中的第一功能块时,在监控参数表中查询(S204,S307)第一功能块的监控参数,若查询到,则在运行过程中,获取监控参数值,并在检测到断点标志时,暂停运行第一功能块的代码并将监控参数的当前值显示在界面上。
- 根据权利要求1所述的方法,其特征在于,所述响应于用户在界面上输入的针对第一功能块的第一事件端口的断点设置请求,包括:检测到用户点击(S303)了界面上的断点工具,且检测到用户在界面上点击(S305)了第一功能块的第一事件端口,则确定用户在界面上输入了针对第一功能块的第一事件端口的断点设置请求。
- 根据权利要求2所述的方法,其特征在于,所述响应于用户在界面上输入的针对第一事件端口的输入或输出的第一数据参数的监控参数设置请求,包括:检测到用户输入(S304)了针对第一功能块的第一事件端口的输入或输出的数据参数的显示请求,则在功能块库中查找第一功能块的代码,在该代码中查找(S304)第一事件端口的输入或输出的所有数据参数,将该所有数据参数显示在界面上;检测到用户在界面上选中(S306)了第一功能块的第一事件端口的输入或输出的第一数据参数,则确定用户在界面上输入了针对第一功能块的第一事件端口的输入或输出 的第一数据参数的监控参数设置请求。
- 根据权利要求1所述的方法,其特征在于,所述响应于用户在界面上输入的针对第一功能块的第一事件端口的断点设置请求,以及,所述响应于用户在界面上输入的针对第一事件端口的输入或输出的第一数据参数的监控参数设置请求,包括:检测到用户点击了界面上的断点工具,则在界面上显示监控参数搜索框;检测到用户在所述搜索框中输入了第一数据参数的名称,则根据界面上显示的所有功能块的名称,在功能块库中查找各功能块的代码,并在各功能块的代码中搜索第一数据参数;根据搜索结果,将第一数据参数所在的每个事件端口的名称以及每个事件端口所在的功能块的名称显示在界面上;检测到用户在界面上选中了第一数据参数所在的第一事件端口的名称以及第一事件端口所在的第一功能块的名称,则确定用户在界面上输入了针对第一功能块的第一事件端口的断点设置请求,同时,确定用户输入了针对第一功能块的第一事件端口的第一数据参数的监控参数设置请求。
- 根据权利要求1所述的方法,其特征在于,所述暂停运行(S204,S307)第一功能块的代码之后,进一步包括:响应于用户在界面上输入的继续运行请求,则继续运行后续代码。
- 根据权利要求1所述的方法,其特征在于,所述在第一事件端口处添加(S202,S305)断点标志,进一步包括:在界面上设置第一事件端口的状态为未通知;所述暂停运行(S204,S307)第一功能块的代码,进一步包括:在界面上将检测到的断点标志所在的事件端口的状态设置为:通知中;且,当继续运行代码时,在界面上将检测到的断点标志所在的事件端口的状态设置为:已通知。
- 一种应用程序监控装置(110),其特征在于,该装置(110)包括:功能块调用模块(111),用于响应于用户输入的携带第一功能块名称的功能块调用请求,从功能块库中搜索到第一功能块并在界面上显示第一功能块,显示内容至少包括:第一功能块的名称和第一功能块包含的各个事件端口的名称;其中,第一功能块为用户要设计的第一应用程序中包含的任一功能块;断点及监控参数设置模块(112),用于响应于用户在界面上输入的针对第一功能块 的第一事件端口的断点设置请求,在功能块库中查找到第一功能块的代码,在该代码中查找到第一事件端口,在第一事件端口处添加断点标志;其中,第一事件端口为第一功能块的任一事件端口;响应于用户在界面上输入的针对第一事件端口的输入或输出的第一数据参数的监控参数设置请求,将第一数据参数的名称、第一事件端口的名称和第一功能块的名称作为一条监控参数表项添加到监控参数表中;运行及监控模块(113),用于响应于用户输入的第一应用程序运行请求,根据界面上显示的第一应用程序包含的各功能块的名称,在功能块库中查找到各功能块的代码,根据查找到的代码以及各功能块之间的执行顺序关系,运行各功能块的代码;且,当运行第一功能块时,在监控参数表中查询第一功能块的监控参数,若查询到,则在运行过程中,获取监控参数值,并在检测到断点标志时,暂停运行第一功能块的代码并将监控参数的当前值显示在界面上。
- 一种非瞬时计算机可读存储介质,所述非瞬时计算机可读存储介质存储指令,其特征在于,所述指令在由处理器执行时使得所述处理器执行如权利要求1至6中任一项所述的应用程序监控方法的步骤。
- 一种电子设备,其特征在于,包括:处理器(121)和存储器(122),所述存储器(122)存储有能在所述处理器(121)上运行的计算机程序,所述处理器(121)在执行所述计算机程序时,实现如权利要求1至6中任一项所述的应用程序监控方法的步骤。
- 一种计算机程序产品,包括计算机程序或指令,其特征在于,该计算机程序或指令被处理器执行时实现如权利要求1至6中任一项所述的应用程序监控方法的步骤。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202180101895.6A CN117940907A (zh) | 2021-09-26 | 2021-09-26 | 应用程序监控方法、装置及可读存储介质 |
PCT/CN2021/120802 WO2023044879A1 (zh) | 2021-09-26 | 2021-09-26 | 应用程序监控方法、装置及可读存储介质 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2021/120802 WO2023044879A1 (zh) | 2021-09-26 | 2021-09-26 | 应用程序监控方法、装置及可读存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023044879A1 true WO2023044879A1 (zh) | 2023-03-30 |
Family
ID=85719874
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/120802 WO2023044879A1 (zh) | 2021-09-26 | 2021-09-26 | 应用程序监控方法、装置及可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117940907A (zh) |
WO (1) | WO2023044879A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100073180A (ko) * | 2008-12-22 | 2010-07-01 | 한국전자통신연구원 | 시각적 디버깅 장치 및 방법 |
CN103514072A (zh) * | 2012-06-28 | 2014-01-15 | 中兴通讯股份有限公司 | 一种用于可视化编程的图形化业务的调试方法及装置 |
CN103729288A (zh) * | 2013-11-01 | 2014-04-16 | 华中科技大学 | 一种嵌入式多核环境下应用程序的调试方法 |
CN104375938A (zh) * | 2014-11-20 | 2015-02-25 | 工业和信息化部电信研究院 | 安卓应用程序的动态行为监测方法及系统 |
-
2021
- 2021-09-26 WO PCT/CN2021/120802 patent/WO2023044879A1/zh active Application Filing
- 2021-09-26 CN CN202180101895.6A patent/CN117940907A/zh active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100073180A (ko) * | 2008-12-22 | 2010-07-01 | 한국전자통신연구원 | 시각적 디버깅 장치 및 방법 |
CN103514072A (zh) * | 2012-06-28 | 2014-01-15 | 中兴通讯股份有限公司 | 一种用于可视化编程的图形化业务的调试方法及装置 |
CN103729288A (zh) * | 2013-11-01 | 2014-04-16 | 华中科技大学 | 一种嵌入式多核环境下应用程序的调试方法 |
CN104375938A (zh) * | 2014-11-20 | 2015-02-25 | 工业和信息化部电信研究院 | 安卓应用程序的动态行为监测方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN117940907A (zh) | 2024-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2003241807A (ja) | ロボット制御装置 | |
US10203850B2 (en) | Data editing apparatus, data editing method, and data editing program | |
JP2008097424A (ja) | エンジニアリングツール | |
JP2021119478A (ja) | 情報処理装置 | |
US9811071B2 (en) | System construction support apparatus | |
KR20140072929A (ko) | 아카이빙 작업수행 자동화 방법 | |
WO2023044879A1 (zh) | 应用程序监控方法、装置及可读存储介质 | |
US9395872B2 (en) | Facilities controlling device, screen displaying method, and recording medium | |
WO2015181921A1 (ja) | プログラマブル表示器及び作画ソフトウェア | |
US20230129280A1 (en) | Computer readable storage medium, program creation support apparatus, and program creation support method | |
JP2013186740A (ja) | 機械の管理システム | |
CN113779030A (zh) | 枚举值查询方法、可读存储介质及计算机程序产品 | |
JPS61255432A (ja) | エラ−メツセ−ジ表示方式 | |
KR20160092772A (ko) | 선박 블록관리 모니터링 시스템 및 그 방법 | |
CN113778038B (zh) | 一种分散控制系统离线组态对比方法和系统 | |
JPS63138459A (ja) | 表内データ検索結果の表示方法 | |
JP2003208333A (ja) | トレース情報検索装置およびその方法 | |
CN112363696B (zh) | 增强现实快速开发系统及方法、电子设备及可读存储介质 | |
KR101317581B1 (ko) | 피엘시 래더 프로그램의 에러 추적 방법 | |
CN109460497B (zh) | 一种基于服务总线的计算模型可视化展示方法及系统 | |
WO2022249358A1 (ja) | ロボット制御装置及びロボット制御システム | |
CN117806859A (zh) | 线程堆栈信息获取方法、装置、电子设备及存储介质 | |
JPH10161891A (ja) | タスク余裕度解析装置、タスク余裕度解析方法及びタスク余裕度解析プログラムを格納した記録媒体 | |
US10394943B2 (en) | Numerical controller | |
JP2008003732A (ja) | 操作ログによる業務シナリオ通知機能 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21957997 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 202180101895.6 Country of ref document: CN |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2021957997 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2021957997 Country of ref document: EP Effective date: 20240326 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |