CN115658553B - Debugging method, system and device based on low-code platform - Google Patents

Debugging method, system and device based on low-code platform Download PDF

Info

Publication number
CN115658553B
CN115658553B CN202211671501.3A CN202211671501A CN115658553B CN 115658553 B CN115658553 B CN 115658553B CN 202211671501 A CN202211671501 A CN 202211671501A CN 115658553 B CN115658553 B CN 115658553B
Authority
CN
China
Prior art keywords
low
log information
command
code platform
debugging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211671501.3A
Other languages
Chinese (zh)
Other versions
CN115658553A (en
Inventor
雷学斌
胡森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Grape City Software Co ltd
Original Assignee
Xi'an Grape City 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 Xi'an Grape City Software Co ltd filed Critical Xi'an Grape City Software Co ltd
Priority to CN202211671501.3A priority Critical patent/CN115658553B/en
Publication of CN115658553A publication Critical patent/CN115658553A/en
Application granted granted Critical
Publication of CN115658553B publication Critical patent/CN115658553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a debugging method based on a low-code platform, which comprises the following steps: the low-code platform acquires command systems for developing applications in real time and generates log information one by one; the low code platform formats log information according to the hierarchical relation of the command system; tracking development abnormity through log information in a browser corresponding to a low-code platform in the development application debugging process; and folding the log information to quickly search the log information corresponding to the development abnormity. The invention collects the log information of the low-code platform command system, so that the log information has enough information during debugging, the log information is formatted by means of the tree structure, the logical relation of the commands can be conveniently understood during debugging, and the log information is folded by the low-code platform, so that developers can conveniently and quickly search the log information concerned by the developers, thereby helping developers using the low-code development platform to improve the debugging efficiency, quickly locate the development abnormity, quickly find the log information corresponding to the development abnormity, improve the debugging efficiency and reduce the debugging cost.

Description

Debugging method, system and device based on low-code platform
Technical Field
The invention relates to the technical field of development and debugging, in particular to a debugging method, a debugging system and a debugging device based on a low-code platform.
Background
The low-code development platform introduces a low-code technology into the field of enterprise-level application development with high complexity, large scale and high value, and helps professional developers, IT technical personnel and business personnel to construct personalized application facing the future. Different enterprise management software can be set up on the low-code platform according to the management facts and the working flows of different enterprises.
The existing low-code platform abstracts the structured data out of the page, and a user of the low-code development platform needs to use a command to realize functional logic, but the execution process of the command is not transparent to the user. The user needs to repeatedly test the result in the design implementation process to know whether the design process meets the functional requirements.
In order to meet the repeated testing requirements of users, the existing low-code development platform provides information of command execution, and the information is recorded and provided for the users in time sequence. The user test of the low-code development platform puts high requirements on the user, and specifically comprises the following steps: when a user analyzes information, the command execution information is recorded in a time sequence, so that the logic description of a command system is incomplete, and the information concerned by the user is difficult to quickly screen.
In order to quickly screen out the information concerned by the user when the user analyzes the information, further optimization needs to be performed on the information which is recorded in time sequence and provided for the user.
Disclosure of Invention
The invention provides a debugging method, a debugging system and a debugging device based on a low-code platform, which are used for acquiring log information of a low-code platform command system, so that the log information has enough information during debugging, the log information is formatted by means of a tree structure, the logic relation of commands is convenient to understand during debugging, the log information is folded by the low-code platform, and developers can conveniently and quickly search log information concerned by the developers, so that the developers using the low-code development platform can be helped to improve the debugging efficiency, quickly locate development abnormity, quickly find the log information corresponding to the development abnormity, improve the debugging efficiency and reduce the debugging cost.
The technical scheme for realizing the purpose of the invention is as follows:
in one aspect, a debugging method based on a low-code platform is provided, which includes:
the low-code platform acquires a command system for developing the application in real time and generates log information one by one;
the low-code platform formats the log information according to the hierarchical relation of the command system;
tracking development abnormity through the log information in a browser corresponding to a low-code platform in the development application debugging process;
and folding the log information to quickly search the log information corresponding to the development abnormity.
The invention collects the log information of the low-code platform command system, so that the log information has enough information during debugging, the log information is formatted by virtue of the tree structure, the logical relation of the commands during debugging is convenient to understand, the log information is folded by the low-code platform, developers can conveniently and quickly search the log information concerned by the developers, and therefore, the invention helps developers using the low-code development platform to improve debugging efficiency, quickly locate development abnormity, quickly find the log information corresponding to the development abnormity, improve debugging efficiency and reduce debugging cost.
Based on one aspect, in a possible implementation manner, the acquiring, by the low-code platform, a command system for developing an application in real time and generating log information one by one includes:
the low-code platform acquires the execution information of each command;
the low-code platform calls log information corresponding to the execution information of each command one by one;
the low-code platform acquires the hierarchical relation of the command in the whole command system according to the log information;
and the low-code platform outputs log information according to the hierarchical relation.
In one possible implementation manner, the low-code platform formats the log information according to a hierarchical relationship of a command system, and the method includes:
the low code platform executes the execution information according to the parent-child relationship of the whole command system;
and the low-code platform maintains the hierarchical relation of the execution information according to the parent-child relation of the whole command system.
Based on an aspect, in a possible implementation manner, the executing the execution information according to a parent-child relationship of the entire command system includes:
step 11, acquiring all commands of the whole command system;
step 12, traversing the command and executing the command, and recording the execution information of the command according to the command level in the command executing process;
step 13, judging whether all commands are executed completely, and if not, continuing to execute the commands until the traversal commands are finished; if the parent-level command which is not completely executed exists during the command execution, the parent-level command which is not completely executed is obtained, the hierarchical relationship is subtracted by a continuous traversal command, and if the child-level command which is not completely executed exists during the command execution, the child-level command which is not completely executed is obtained, and the hierarchical relationship is added by the continuous traversal command.
Based on one aspect, in a possible implementation manner, the maintaining the execution information according to the parent-child relationship of the whole command system includes:
step 21, acquiring the command execution log information of steps 11 to 13 one by one;
step 22, acquiring the layer number corresponding to each piece of log information one by one;
step 23, adding spaces to the front end of the log information according to the level number, wherein the number of the spaces added in front of each piece of log information corresponds to the level number of the log information;
step 24, judging whether the level number-1 of the log information layer at the tail is zero or not, (1) if not, checking whether the traversing command is finished or not, if not, continuing to add a blank to the front end of the log information, and if so, checking the parent-child relationship and the hierarchical relationship of all the log information until all the log information is matched with all the commands; (2) If the value is zero, the traversal command and the maintenance layer level relation are ended.
Based on an aspect, in a possible implementation manner, the low-code platform formats the log information according to a hierarchical relationship of a command system, and further includes:
formatting the log information output by each command one by one;
calling a command logic level relation corresponding to each command;
acquiring log information output by each command;
formatting the log information corresponding to the command logic level relation by adding a blank space at the front end of the log information;
and formatting the log information output by each command in the browser of the low-code platform one by means of an API (application programming interface) interface according to the command logic level relation of the command module of the server side in the low-code platform.
Based on an aspect, in a possible implementation manner, the tracking, by the browser corresponding to the low-code platform, the development exception through the log information in the development application debugging process includes:
converting the log information into a tree structure in a browser corresponding to a low-code platform by adopting a tree structure algorithm;
outputting the log according to the preorder traversal of the tree structure;
and searching the command system abnormal condition of the development application according to the output log.
In practical application, the tree structure algorithm of the invention mainly converts the log information with indentation relation generated by the command into a tree, which is convenient for the subsequent code output rendering. The tree structure algorithm process comprises the following steps: acquiring all logs executed by the command, traversing the logs according to rows, and judging whether traversal is finished, (1) if not, acquiring the level of the current log information (determined according to the indented space number), judging whether the level is 0, if so, putting the current log information into a dictionary, and continuing traversing the logs according to rows; if the hierarchy is not 0, finding an object of the log information of the upper level from the dictionary table, adding the current log information into a subset of the log information of the upper level, putting the current log information into the dictionary, and continuously traversing the log according to rows until the traversal is finished. And (2) finishing outputting the log if the log is finished. The dictionary is a Key Value pair, and Key Value can be used for quickly finding Value. In the algorithm, key is a hierarchy, and Value is a tree node of Log.
The first-order traversal in the invention is to pass through all nodes on a path along a certain path according to the left-right sequence of the root. I.e., first the root node is visited and then the left sub-tree is traversed and finally the right sub-tree is traversed. And when traversing the left subtree and the right subtree, still accessing the root node, then traversing the left subtree, finally traversing the right subtree, and returning if the binary tree is empty.
Based on an aspect, in a possible implementation manner, the folding the log information to quickly search for the log information corresponding to the development exception includes:
in the process of developing application, a server side command module of a back-end server is called,
generating log information by a command system of a server command module in a low-code platform;
triggering an operation module on the low-code platform, and jumping to a browser corresponding to the low-code platform to output log information by developing application;
and according to the log information corresponding to the tree structure folding subcommand of all the log information, conveniently and quickly searching the log information corresponding to the development abnormity.
On the other hand, a debugging system based on a low-code platform is provided, and comprises the low-code platform, a back-end server and a browser, wherein the low-code platform is connected with the back-end server, calls the data of the back-end server, is connected with the low-code platform, and runs the development application developed by the low-code platform;
the low-code platform acquires command systems for developing applications in real time and generates log information one by one; the low-code platform formats the log information according to the hierarchical relation of a command system;
and the low-code platform is used for debugging and developing application, the browser outputs the log information into a tree structure, and the browser tracks and develops abnormity through the log information.
In another aspect, a debugging device based on a low-code platform is provided, which includes a first terminal, a server and a second terminal, wherein the first terminal runs with the low-code platform, and the second terminal runs with a browser;
the low-code platform is connected with a back-end server, the low-code platform calls data of the back-end server, the browser is connected with the low-code platform, and the browser runs development application developed by the low-code platform;
the low-code platform acquires a command system for developing the application in real time and generates log information one by one; the low-code platform formats the log information according to a hierarchical relation of a command system;
and the low-code platform is used for debugging and developing application, the browser outputs the log information into a tree structure, and the browser tracks and develops abnormity through the log information.
Compared with the prior art, the invention has the beneficial effects that:
the invention collects the log information of the low-code platform command system, so that the log information has enough information during debugging, the log information is formatted by virtue of the tree structure, the logical relation of the commands during debugging is convenient to understand, the log information is folded by the low-code platform, developers can conveniently and quickly search the log information concerned by the developers, and therefore, the invention helps developers using the low-code development platform to improve debugging efficiency, quickly locate development abnormity, quickly find the log information corresponding to the development abnormity, improve debugging efficiency and reduce debugging cost.
Drawings
FIG. 1 is a flowchart of a debugging method for a low-code platform according to the present invention;
FIG. 2 is a schematic diagram of a hierarchy of a command system according to the present invention;
FIG. 3 is a diagram of a log information generation process provided by the present invention;
FIG. 4 is a graphical representation of the formatting of log information provided by the present invention;
FIG. 5 is a diagram illustrating transformation of a tree structure provided by the present invention.
Detailed Description
The present invention is described in detail with reference to the embodiments shown in the drawings, but it should be understood that these embodiments are not intended to limit the present invention, and that functional, methodological, or structural equivalents thereof, which are equivalent or substituted by those of ordinary skill in the art, are within the scope of the present invention.
Referring to fig. 1, an embodiment of the invention provides a debugging method for a low-code platform, including: the low-code platform acquires a command system for developing the application in real time and generates log information one by one; the low-code platform formats log information according to the hierarchical relation of the command system; tracking development abnormity through log information in a browser corresponding to a low-code platform in the development application debugging process; and folding the log information to quickly search the log information corresponding to the development abnormity.
The invention collects the log information of the low-code platform command system, so that the log information has enough information during debugging, the log information is formatted by virtue of the tree structure, the logical relation of the commands during debugging is convenient to understand, the log information is folded by the low-code platform, developers can conveniently and quickly search the log information concerned by the developers, and therefore, the invention helps developers using the low-code development platform to improve debugging efficiency, quickly locate development abnormity, quickly find the log information corresponding to the development abnormity, improve debugging efficiency and reduce debugging cost.
Based on the debugging method of the low-code platform, the low-code platform acquires the command systems for developing the application in real time and generates log information one by one, and the method comprises the following steps: the low-code platform acquires the execution information of each command; the low-code platform calls log information corresponding to the execution information of each command one by one; the low-code platform acquires the hierarchical relation of the command in the whole command system according to the log information; and the low-code platform outputs log information according to the hierarchical relation.
Based on the debugging method of the low-code platform, the low-code platform formats the log information according to the hierarchical relationship of the command system, and the method comprises the following steps: the low code platform executes the execution information according to the parent-child relationship of the whole command system; and the low-code platform maintains the hierarchical relation of the execution information according to the parent-child relation of the whole command system.
Based on the debugging method of the low-code platform, the execution information is executed according to the parent-child relationship of the whole command system, and the method comprises the following steps: step 11, acquiring all commands of the whole command system; step 12, traversing the command and executing the command, and recording the execution information of the command according to the command level in the command executing process; step 13, judging whether all commands are executed completely, and if not, continuing to execute the commands until the traversal commands are finished; if the parent-level command which is not completely executed exists during the command execution, the parent-level command which is not completely executed is obtained, the hierarchical relationship is subtracted by a continuous traversal command, and if the child-level command which is not completely executed exists during the command execution, the child-level command which is not completely executed is obtained, and the hierarchical relationship is added by the continuous traversal command.
Referring to fig. 4, the method for debugging a low-code platform according to the present invention maintains execution information according to a parent-child relationship of the whole command system, including: step 21, acquiring the command execution log information of steps 11 to 13 one by one; step 22, acquiring the layer number corresponding to each piece of log information one by one; step 23, adding spaces to the front end of the log information according to the level number, wherein the number of the spaces added in front of each piece of log information corresponds to the level number of the log information; step 24, judging whether the level-1 of the log information layer at the tail is zero or not, (1) if not, checking whether the traversal command is finished or not, if not, continuing to add blank spaces to the front end of the log information, and if so, checking the parent-child relationship and the hierarchical relationship of all log information until all log information is matched with all commands; (2) If the value is zero, the traversal command and the maintenance layer level relation are ended.
Based on the debugging method of the low-code platform, the low-code platform formats the log information according to the hierarchical relationship of the command system, and the method further comprises the following steps: formatting the log information output by each command one by one; calling a command logic level relation corresponding to each command; acquiring log information output by each command; formatting the log information corresponding to the command logic level relation by adding a blank space at the front end of the log information; and formatting the log information output by each command in the browser of the low-code platform one by means of an API (application programming interface) interface according to the command logic level relation of the command module of the server side in the low-code platform.
Based on the debugging method of the low-code platform, the browser corresponding to the low-code platform traces the development exception through log information in the development application debugging process, and the method comprises the following steps: converting the log information into a tree structure in a browser corresponding to the low-code platform by adopting a tree structure algorithm; traversing according to the order of the tree structure, namely outputting the log; and searching the command system abnormal condition of the development application according to the output log.
In practical application, please refer to fig. 5, the tree structure algorithm of the present invention mainly converts the log information with an indentation relationship generated by a command into a tree, which facilitates the subsequent output rendering of codes. The tree structure algorithm process comprises the following steps: acquiring all logs executed by the command, traversing the logs according to rows, and judging whether traversal is finished, (1) if not, acquiring the level of the current log information (determined according to the indented space number), judging whether the level is 0, if so, putting the current log information into a dictionary, and continuing traversing the logs according to rows; if the hierarchy is not 0, finding an object of the log information of the upper level from the dictionary table, adding the current log information into a subset of the log information of the upper level, putting the current log information into the dictionary, and continuously traversing the log according to rows until the traversal is finished. And (2) finishing outputting the log if the log is finished. The dictionary is a Key Value pair, and Key Value can be used for quickly finding Value. In the algorithm, key is a hierarchy, and Value is a tree node of Log.
The first-order traversal in the invention is to pass through all nodes on a path along a certain path according to the left-right sequence of the root. I.e., first the root node is visited and then the left sub-tree is traversed and finally the right sub-tree is traversed. When the left subtree and the right subtree are traversed, the root node is still accessed firstly, then the left subtree is traversed, finally the right subtree is traversed, and if the binary tree is empty, the operation is returned.
Based on the debugging method of the low-code platform, the log information is folded to quickly search the log information corresponding to the development abnormity, and the method comprises the following steps: calling a server side command module of a back-end server in the development and application process, and generating log information from a command system of the server side command module in a low-code platform; triggering an operation module on the low-code platform, and developing and applying to jump to a browser corresponding to the low-code platform to output log information; and according to the log information corresponding to the tree structure folding subcommand of all the log information, the log information corresponding to the abnormal development can be conveniently and quickly searched.
In addition, the embodiment of the invention also provides a debugging system of the low-code platform, which comprises the low-code platform, a back-end server and a browser, wherein the low-code platform is connected with the back-end server, the low-code platform calls the data of the back-end server, the browser is connected with the low-code platform, and the browser runs the development application developed by the low-code platform;
the low-code platform acquires a command system for developing the application in real time and generates log information one by one; the low code platform formats log information according to the hierarchical relation of the command system; and debugging and developing the application by the low-code platform, outputting the log information into a tree structure by the browser, and tracking and developing the abnormity by the browser through the log information.
In addition, the embodiment of the invention also provides a debugging device of the low-code platform, which comprises a first terminal, a server and a second terminal, wherein the low-code platform runs on the first terminal, and a browser runs on the second terminal; the low-code platform is connected with the back-end server, the low-code platform calls data of the back-end server, the browser is connected with the low-code platform, and the browser runs development application developed by the low-code platform; the low-code platform acquires a command system for developing the application in real time and generates log information one by one; the low code platform formats log information according to the hierarchical relation of the command system; and debugging and developing application of the low-code platform, outputting log information into a tree structure by the browser, and tracking and developing abnormity by the browser through the log information.
It should be noted that, in practical applications, before describing how to format and render the log information, the embodiment of the present invention first describes: (1) What hierarchical relationship exists in the command system of the low-code platform has what influence on the formatting of the log; (2) How to output code having a tree structure as log information through an API provided by a browser.
For the debugging method of the embodiment of the invention, the following examples are listed: the hierarchy of the command system is shown in fig. 2, and some commands in fig. 2 have parent-child relationship, such as the conditional command in fig. 2, and execute different child commands according to different conditions. Further, as a result of the conditional command in fig. 2, when the purchase number is greater than 0, the return command is executed and the variable command is set to the sales number; as a result of the conditional command in fig. 2, when the sales number is greater than 0, the return command is executed and the variable command is set as the warehouse entry number; in FIG. 2, the result of the conditional command is that when the number of in/out banks is greater than 0, the return command is executed and the variable command is set to the number of the disks; the result of the conditional command in fig. 2 is that a return command is executed and the data table operation is performed when the number of disks is greater than 0: delete supplier customer item related table, delete item table.
According to the above hierarchical relationship of the command system, it is desirable to format the log information as follows:
execute click command item _ inventory! When V6 is used: 4742 ms
When the conditions are used: 4737 ms
A confirmation dialog box: determining
When the article is deleted: 353 ms
16, executing a command of 'deleting articles', and requesting: POST, user: inventory manager 1
Parameters are as follows:
article ID =1
Transaction command time of use: 73 milliseconds.
Check if inventory is in use: 47 milliseconds.
Set variable command: when the number in the inventory is used: 16 milliseconds.
SELECT COUNT FROM COUNT inventory table WHERE [ end ] = False = end =
Creating a number in variable inventory = 0
When the conditions are used: 28 milliseconds.
And (3) judging: number greater than 0 in inventory result in False
Set variable command: when the error information is used: 0 ms.
Creating variable error information = selected article has been included by purchase/sale/warehouse-in/out bill/inventory bill, please delete corresponding article in these bills first
Set variable command: when the procurement amount is used: 5 milliseconds.
SELECT COUNT (FROM) FROM purchase order detail table WHERE [ item ID ] =1
Create variable number of purchases = 12
When the conditions are used: 1 millisecond.
And (3) judging: = purchase number greater than 0 resulting in True
When the return command is used: 1 millisecond.
Error occurred, transaction rolled back
And (3) error code: 1
Information: the selected article is already included in the purchase/sale/warehousing/inventory list, and the corresponding article in the documents is deleted.
The "delete item" command ends, when: 135 milliseconds.
When the conditions are used: 3335 milliseconds
And (3) judging: where BW19 is not equal to 0 and the result is true: 3315 ms
The embodiment of the invention uses the API of the browser to output the final log information, and uses a series of methods to format the log information. And using an API (application program interface) of the browser to select a Console.group syntax or a Console.group pollapsed syntax to create a new group on a console of the browser. Content that is output to the console is then indented to indicate that the content belongs to the current grouping until after the match.
The core of the embodiment of the invention is the following parts: (1) generating log information; (2) formatting the log information; and (3) outputting the log information in the browser. Fig. 3 shows a generation process of log information, and fig. 3 shows how a command is executed according to a parent-child relationship and how a hierarchical relationship is maintained. Referring to fig. 3, all commands are acquired, commands are traversed, whether all commands are executed completely is judged in the process of traversing the commands, if the execution is completed, whether a parent command is not executed completely is judged, and if the parent command is executed completely, the traversal is finished; if the parent command is not executed completely, the parent command which is not executed completely is obtained, and the traversing command is continued by subtracting one level. If all commands are not executed, the commands are continuously executed, in the command executing process, command execution log is recorded according to the levels, in the process, whether sub-commands exist during command execution is judged, if no sub-commands exist, the level is not changed, the commands are continuously traversed, and if sub-commands exist, the sub-commands are acquired, and a continuous traversing command is added to the level.
In the embodiment of the invention, when the indentation relation of the log information is recorded, the space character is used in the patent, and any effective mode can be used for expressing the shrinkage relation. For example, any other character given a meaning, or other structure may be substituted. The embodiment of the invention assumes that the execution of the command is completed in advance, and the output rendering is performed after the log information is generated. Therefore, the embodiment of the invention can combine the parts of generating the log and outputting the rendering to simplify the process. But the application range is reduced after the synthesis.
The embodiment of the invention formats the information output by each command according to the parent-child hierarchical relation of the command logic, and arranges the logs into a tree-shaped code block structure in a grouping and indentation mode, thereby facilitating the analysis of a user. The tree structured log has the following advantages: clear logical relationship, and easier analysis and debugging. Log information can be manipulated, as can a collapsed code block, to quickly search for or jump to the desired information. The embodiment of the invention formats the log information generated by the low-code platform, and renders and displays the log information in a developer tool of the browser by using the api of JS. Finally, the problem is solved, and the debugging result is convenient for a user.
The debugging method of the embodiment of the invention can effectively output the log information into the formatted metadata. And finally outputting the data on a corresponding platform through the conversion of the tree structure. Compared with the existing debugging method, the embodiment of the invention firstly outputs the log information of all commands, so that the commands have enough information during debugging. Meanwhile, information is formatted by means of a tree structure, the logical relation of commands can be conveniently understood during debugging, and log information can be folded on a certain suitable platform (such as a developer tool of a Chrome or Edge browser) to quickly search the log information concerned by the user. Therefore, the purposes of helping users using a low-code development platform, improving debugging efficiency and reducing debugging cost are achieved.
The above-listed detailed description is only a specific description of a possible embodiment of the present invention, and they are not intended to limit the scope of the present invention, and equivalent embodiments or modifications made without departing from the technical spirit of the present invention should be included in the scope of the present invention.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (5)

1. A debugging method based on a low-code platform is characterized by comprising the following steps:
the low-code platform acquires command systems for developing applications in real time and generates log information one by one; the method comprises the following steps: the low-code platform acquires the execution information of each command; the low-code platform calls log information corresponding to the execution information of each command one by one; the low-code platform acquires the hierarchical relation of the command in the whole command system according to the log information; the low code platform outputs log information according to the hierarchical relation;
the low-code platform formats the log information according to the hierarchical relationship of the command system, and the method comprises the following steps: the low-code platform executes the execution information according to the parent-child relationship of the whole command system; the low code platform maintains the hierarchical relationship of the execution information according to the parent-child relationship of the whole command system, and specifically formats the log information output by each command one by one; calling a command logic level relation corresponding to each command; acquiring log information output by each command; formatting the log information corresponding to the command logic level relation by adding a blank space at the front end of the log information; according to the command logic level relation of a server side command module in the low code platform, formatting log information output by each command one by one in a browser of the low code platform by means of an API (application programming interface);
in the development and application debugging process, the browser corresponding to the low-code platform traces the development exception through the log information, and the method comprises the following steps: converting the log information into a tree structure in a browser corresponding to a low-code platform by adopting a tree structure algorithm; outputting the log according to the preorder traversal of the tree structure; searching abnormal conditions of a command system for developing the application according to the output log;
the method for folding the log information to quickly search the log information corresponding to the development abnormity comprises the following steps: calling a server side command module of a back-end server in the development and application process, and generating log information from a command system of the server side command module in a low-code platform; triggering an operation module on the low-code platform, and jumping to a browser corresponding to the low-code platform to output log information by developing application; and according to the log information corresponding to the tree structure folding subcommand of all the log information, conveniently and quickly searching the log information corresponding to the development abnormity.
2. The low-code platform-based debugging method according to claim 1, wherein said executing the execution information according to the parent-child relationship of the whole command system comprises:
step 11, acquiring all commands of the whole command system;
step 12, traversing the command and executing the command, and recording the execution information of the command according to the command level in the command executing process;
step 13, judging whether all commands are executed completely, and if not, continuing to execute the commands until the traversal commands are finished; and when the command is executed, if the parent command which is not executed exists, acquiring the parent unexecuted command and subtracting a continuous traversal command from the hierarchy relationship, and when the command is executed, if the child command which is not executed exists, acquiring the child unexecuted command and adding a continuous traversal command from the hierarchy relationship.
3. The low-code platform-based debugging method according to claim 2, wherein the maintaining of the execution information according to the parent-child relationship of the whole command system comprises:
step 21, acquiring the command execution log information of steps 11 to 13 one by one;
step 22, acquiring the layer number corresponding to each piece of log information one by one;
step 23, adding spaces to the front end of the log information according to the level number, wherein the number of the spaces added in front of each piece of log information corresponds to the level number of the log information;
step 24, judging whether the level-1 of the log information layer at the tail is zero or not, (1) if not, checking whether the traversal command is finished or not, if not, continuing to add blank spaces to the front end of the log information, and if so, checking the parent-child relationship and the hierarchical relationship of all log information until all log information is matched with all commands; (2) If the value is zero, the traversal command and the maintenance layer level relation are ended.
4. A debugging system based on a low-code platform, based on the debugging method based on the low-code platform as claimed in any one of claims 1 to 3, wherein the debugging system based on the low-code platform comprises the low-code platform, a back-end server and a browser, the low-code platform is connected with the back-end server, the low-code platform calls data of the back-end server, the browser is connected with the low-code platform, and the browser runs development application developed by the low-code platform;
the low-code platform acquires command systems for developing applications in real time and generates log information one by one; the low-code platform formats the log information according to the hierarchical relation of a command system;
and the low-code platform is used for debugging and developing application, the browser outputs the log information into a tree structure, and the browser tracks and develops abnormity through the log information.
5. A debugging device based on a low-code platform, which is characterized in that based on the debugging method based on the low-code platform of any one of claims 1 to 3, the debugging device based on the low-code platform comprises a first terminal, a server and a second terminal, the first terminal runs with the low-code platform, the second terminal runs with a browser;
the low-code platform is connected with a back-end server, the low-code platform calls data of the back-end server, the browser is connected with the low-code platform, and the browser runs development application developed by the low-code platform;
the low-code platform acquires command systems for developing applications in real time and generates log information one by one; the low-code platform formats the log information according to a hierarchical relation of a command system;
and the low-code platform is used for debugging and developing application, the browser outputs the log information into a tree structure, and the browser tracks and develops abnormity through the log information.
CN202211671501.3A 2022-12-26 2022-12-26 Debugging method, system and device based on low-code platform Active CN115658553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211671501.3A CN115658553B (en) 2022-12-26 2022-12-26 Debugging method, system and device based on low-code platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211671501.3A CN115658553B (en) 2022-12-26 2022-12-26 Debugging method, system and device based on low-code platform

Publications (2)

Publication Number Publication Date
CN115658553A CN115658553A (en) 2023-01-31
CN115658553B true CN115658553B (en) 2023-03-17

Family

ID=85023033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211671501.3A Active CN115658553B (en) 2022-12-26 2022-12-26 Debugging method, system and device based on low-code platform

Country Status (1)

Country Link
CN (1) CN115658553B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885478A (en) * 2018-12-30 2019-06-14 贝壳技术有限公司 A kind of localization method and system of error code
CN115080406A (en) * 2022-06-24 2022-09-20 平安银行股份有限公司 Code log generation method, device, equipment and storage medium

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8392885B2 (en) * 2008-12-19 2013-03-05 Microsoft Corporation Low privilege debugging pipeline
JP2012190219A (en) * 2011-03-10 2012-10-04 Fujitsu Ltd Information processing device and trace log acquisition method
CN103473431B (en) * 2013-09-25 2016-12-07 北京大学 A kind of method of the on-line debugging PHP program of lightweight
US9626240B2 (en) * 2014-09-25 2017-04-18 Oracle International Corporation Adaptive application logger
CN107342880B (en) * 2016-04-29 2021-06-08 中兴通讯股份有限公司 Abnormal information acquisition method and system
CN106776728A (en) * 2016-11-14 2017-05-31 上海斐讯数据通信技术有限公司 Code check method, system and development platform based on log file analysis
US20210263833A1 (en) * 2020-02-20 2021-08-26 4Logik LLC Code Generation Platform with Debugger
US11163731B1 (en) * 2020-05-04 2021-11-02 Salesforce.Com, Inc. Autobuild log anomaly detection methods and systems
US11288170B1 (en) * 2020-12-10 2022-03-29 International Business Machines Corporation Log analysis debugging without running on real production environment
CN114139114A (en) * 2021-10-29 2022-03-04 国网信通亿力科技有限责任公司 Development and maintenance system and method based on front-end low code
CN115033223A (en) * 2022-06-30 2022-09-09 联想(北京)有限公司 Log generation method and device
CN115220773B (en) * 2022-09-20 2022-12-30 南京麦豆健康科技有限公司 System and method for low-code, visual generation of background data management code

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885478A (en) * 2018-12-30 2019-06-14 贝壳技术有限公司 A kind of localization method and system of error code
CN115080406A (en) * 2022-06-24 2022-09-20 平安银行股份有限公司 Code log generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115658553A (en) 2023-01-31

Similar Documents

Publication Publication Date Title
US10983660B2 (en) Software robots for programmatically controlling computer programs to perform tasks
US7505991B2 (en) Semantic model development and deployment
CN111722839B (en) Code generation method and device, electronic equipment and storage medium
CN101661512A (en) System and method for identifying traditional form information and establishing corresponding Web form
CN116627418B (en) Multi-level form interface visual generation method and device based on recursion algorithm
CN111694731A (en) Web application test case generation method based on keyword sequence guided search
CN113901169A (en) Information processing method, information processing device, electronic equipment and storage medium
Rossi et al. Model-based web application development
CN115658553B (en) Debugging method, system and device based on low-code platform
CN117234487A (en) Method and device for generating software interface, electronic equipment and storage medium
CN109032946B (en) Test method and device and computer readable storage medium
CN116755669A (en) Low code development method and tool based on DSL language operation model
CN114968220A (en) Dynamic portal design method and device
US11556531B2 (en) Crux detection in search definitions
CN111259027B (en) Data consistency detection method
JP2005122398A (en) Dynamic document generating program, recording medium thereof, dynamic document generating device, and dynamic document generating method
CN113918576B (en) Metadata management platform and management method
Steinhorst et al. Supporting enterprise transformation using a universal model analysis approach
CN115268907A (en) Method for generating software system control interaction logic by using json data
CN117667112A (en) Self-adaptive generation method of front-end development document based on babel
CN117971675A (en) Evaluation method and device for code large model, computer equipment and storage medium
CN116610558A (en) Code detection method, device, electronic equipment and computer readable storage medium
CN114968242A (en) Front-end code generation method and device
Iida et al. Component-based algebraic specification
Chang Static Analysis LNCS 11822

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant