CN112527639A - Remote debugging method and device in production environment, computer equipment and storage medium - Google Patents

Remote debugging method and device in production environment, computer equipment and storage medium Download PDF

Info

Publication number
CN112527639A
CN112527639A CN202011401537.0A CN202011401537A CN112527639A CN 112527639 A CN112527639 A CN 112527639A CN 202011401537 A CN202011401537 A CN 202011401537A CN 112527639 A CN112527639 A CN 112527639A
Authority
CN
China
Prior art keywords
debugging
remote
plug
embedded
product
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011401537.0A
Other languages
Chinese (zh)
Inventor
王以泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ping An Medical Health Technology Service Co Ltd
Original Assignee
Ping An Medical and Healthcare Management 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 Ping An Medical and Healthcare Management Co Ltd filed Critical Ping An Medical and Healthcare Management Co Ltd
Priority to CN202011401537.0A priority Critical patent/CN112527639A/en
Publication of CN112527639A publication Critical patent/CN112527639A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the field of development and debugging, and discloses a remote debugging method, a remote debugging device, computer equipment and a storage medium in a production environment, wherein the method comprises the following steps: establishing connection with a debugging plug-in embedded in a remote product through a preset access channel, and outputting a debugging page after establishing the connection; receiving debugging information input in the debugging page, and sending the debugging information to a debugging plug-in embedded in a remote product; controlling a debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine; and obtaining a debugging result fed back after the debugging plug-in embedded in the remote product carries out debugging response, and outputting the debugging result on the debugging page for display. According to the method and the device, the debugging plug-in is integrated into the remote product, the preset debugging interface is reserved, the remote product is controlled to carry out local debugging through remote access to the debugging interface, and therefore the efficiency and the safety of remote debugging are improved.

Description

Remote debugging method and device in production environment, computer equipment and storage medium
Technical Field
The present application relates to the field of development and debugging, and in particular, to a remote debugging method and apparatus, a computer device, and a storage medium in a production environment.
Background
The product purchased by a customer can find various problems when in use, debugging personnel of the product often needs to help to quickly position the product by debugging product codes, the problem is positioned by remote assistance by the debugging personnel, the remote assistance positioning needs the debugging personnel to remotely control client computer equipment through a network so as to debug the product on the client computer equipment, at the moment, the product needs to be exposed to the production environment of an external network for use, if a remote debugging port is opened outwards in the production environment, the use safety of the product is reduced, and the situation that the network between a debugging personnel company network and a client company network is not communicated exists, including the situation that any one of the debugging personnel company network or the client company network is in an internal network state, so that the problem of positioning the product during remote assistance is inconvenient, the problem of low efficiency of remote debugging; the other solution is that the debugging personnel goes on business and goes to the client to carry out on-site solution, and carries out positioning and checking on the computer equipment of the client, but the solution needs to consume a large amount of manpower, material resources and time cost, and the debugging timeliness is too low.
Disclosure of Invention
The present application mainly aims to provide a remote debugging method, device, computer equipment and storage medium in a production environment, and aims to solve the problems of the network failure and the security problem in the current remote debugging process and the problem of too low debugging efficiency.
In order to achieve the above object, the present application provides a remote debugging method in a production environment, including the following steps:
establishing connection with a debugging plug-in embedded in a remote product through a preset access channel, and outputting a debugging page after establishing the connection;
receiving debugging information input in the debugging page, and sending the debugging information to a debugging plug-in embedded in a remote product;
controlling a debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine;
and obtaining a debugging result fed back after the debugging plug-in embedded in the remote product carries out debugging response, and outputting the debugging result on the debugging page for display.
Further, the establishing of the connection with the debugging plug-in embedded in the remote product through the preset access channel and the outputting of the debugging page after the establishment of the connection include:
sending authorization information to a debugging plug-in embedded in a remote product based on a preset access channel;
receiving feedback information after the debugging plug-in unit checks the authorization information;
and if the feedback information representation verification is passed, establishing connection with a debugging plug-in embedded in the remote product, and outputting a debugging page after the connection is established.
Further, the outputting the debug page after the connection is established includes:
determining the permission level of remote debugging according to the feedback information;
configuring a debugging page of a corresponding remote product according to the permission level;
and outputting the debugging page after the connection is established.
Further, the debugging information includes breakpoint insertion location information; the controlling the debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine comprises the following steps:
and controlling the debugging plug-in embedded in the remote product to insert breakpoints into lines corresponding to the remote product codes through a bottom layer interface of the virtual machine according to the breakpoint insertion position information so as to generate debugging results after the remote product runs to the breakpoints.
Further, the debugging information comprises a variable trace identifier; the controlling the debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine comprises the following steps:
and controlling the debugging plug-in embedded in the remote product to add the variable tracking identifier into the corresponding variable of the remote product code through a bottom layer interface of the virtual machine so as to generate a debugging result of the variable change state.
Further, the debugging information comprises a class identifier; the controlling the debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine comprises the following steps:
and controlling the embedded debugging plug-in of the remote product to insert the monitoring identification at the input and the output of the corresponding class of the remote product code through the bottom layer interface of the virtual machine so as to generate a debugging result related to the input and the output of the corresponding class.
Further, the obtaining a debugging result fed back after the debugging plug-in embedded in the remote product performs debugging response, and after outputting the debugging result to the debugging page and displaying, further includes:
positioning the defect problem of a remote product according to the debugging result;
obtaining a matching solution based on the defect problem;
feeding back the solution to a user of the remote product.
The application also provides a remote debugging device under the production environment, include:
accessing a connection module: the debugging device is used for establishing connection with a debugging plug-in embedded in a remote product through a preset access channel and outputting a debugging page after the connection is established;
debugging the input module: the debugging page is used for receiving debugging information input in the debugging page and sending the debugging information to a debugging plug-in embedded in a remote product;
debugging the control module: the debugging plug-in is used for controlling the debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine;
and a result display module: and the debugging device is used for obtaining a debugging result fed back after the debugging plug-in embedded in the remote product carries out debugging response, and outputting the debugging result to the debugging page for display.
The application also provides a computer device, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the remote debugging method in the production environment when executing the computer program.
The present application further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the remote debugging method in the production environment according to any one of the above.
The application example provides a remote debugging method without exposing source codes in a production environment, by integrating debugging plug-ins in remote products and reserving preset debugging interfaces, debugging personnel remotely access the debugging interfaces of the remote products through the preset access channels, then debugging information to be debugged is input from corresponding debugging pages to generate debugging control instructions, the debugging plug-ins embedded in the remote products are controlled to debug through a virtual machine bottom layer interface according to the debugging control instructions, the debugging results are fed back to the computers of the debugging personnel after being obtained, the debugging results can be displayed on the debugging pages of the computer equipment of the debugging personnel, so that the debugging personnel can conveniently and quickly locate the problems of the remote products locally, the convenience of remote debugging is improved, and meanwhile, the debugging interfaces can be accessed only if the debugging interface has specific authority through the setting of the preset access channels, therefore, the safety of remote debugging is ensured, the debugging plug-in is integrated into a remote product through the bottom layer interface technology of the virtual machine, and the source code of the remote product is not exposed to the outside in the process of remote debugging, so that the safety problem caused by the exposure of the source code in the remote debugging is avoided.
Drawings
FIG. 1 is a schematic flow chart illustrating an embodiment of a remote debugging method in a production environment according to the present application;
FIG. 2 is a schematic diagram of an embodiment of a debug page of the present application;
FIG. 3 is a schematic structural diagram of an embodiment of a remote debugging apparatus in a production environment of the present application;
FIG. 4 is a block diagram illustrating a computer device according to an embodiment of the present invention.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a remote debugging method in a production environment, which includes steps S10-S40, and details of each step of the remote debugging method in the production environment are described as follows.
And S10, establishing connection with the debugging plug-in embedded in the remote product through a preset access channel, and outputting a debugging page after establishing the connection.
The embodiment of the application is applied to a remote debugging scene, wherein a product on a client computer is defined as a remote product, a computer device debugged by a debugger is defined as a local computer device, the debugger is connected with the remote product on the client computer device through a network on the local computer device, and then the remote product is debugged on the local computer device, the connection between the local computer device and the remote product is an external network connection, namely the remote product and the local computer device of the debugger are both in the external network, which means that the remote product is in a production environment but not in a development environment, the remote product of the embodiment is embedded with a debugging plug-in which integrates various functions of debugging the remote product and reserves an access channel for remote debugging, and the debugger is connected with the access channel through any local computer device capable of connecting the external network, and communicating with the debugging plug-in embedded in the remote product, so as to establish connection with the debugging plug-in embedded in the remote product, and outputting a debugging page on the local computer equipment after the connection is established, namely the debugging plug-ins of the local computer equipment and the remote product at the moment are equivalent to a client-server architecture mode.
In an implementation manner of this embodiment, the access channel is a link of a debugging page, a debugging person inputs the link on a browser on a local computer device, accesses a debugging plug-in embedded in a remote product, after the debugging plug-in responds to the connection request, the local computer device establishes a connection with the debugging plug-in of the remote product, and then outputs the debugging page on the browser of the local computer device, so that the debugging person remotely debugs the remote product on the local computer device.
And S20, receiving the debugging information input in the debugging page, and sending the debugging information to a debugging plug-in embedded in a remote product.
In the debugging page, debugging parameters required for debugging a remote product are configured, the debugging page comprises a package required to be debugged, the class required to be debugged, the line position of a breakpoint required to be debugged, debugging parameters such as variables required to be observed, and an implementation mode of the embodiment.
And S30, controlling the debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through the bottom layer interface of the virtual machine.
The remote product of this embodiment embeds a debugging plug-in, the local computer device sends the debugging information to the debugging plug-in of the remote product, thereby controlling the debugging plug-in embedded in the remote product to respond according to the debugging information, after the remote product receives the debugging information sent through the preset access channel, it is confirmed that the sender of the debugging information (i.e. the local computer device) has the debugging authority, at this time, the remote product responds according to the debugging information through the embedded debugging plug-in, the embedded debugging plug-in integrates the debugging function in the remote product through the bottom interface of the Java virtual machine, the function of the debugging plug-in can be accessed only through the preset access channel, and the remote product uses encrypted package files, and cannot check the source code of the remote product on the computer device of the remote product, the debugging personnel reserves the source code of the remote product, then remotely debugs the remote product through the bottom interface technology of the Java virtual machine, directly debugs the remote product on the virtual machine layer, and does not need to install a debugging tool on the computer equipment of the remote product, thereby improving the convenience of remote debugging.
And S40, obtaining a debugging result fed back after the debugging plug-in embedded in the remote product carries out debugging response, and outputting the debugging result to the debugging page for display.
And when the debugging plug-in embedded in the remote product responds according to the debugging information, a debugging result is obtained, then the debugging result is sent to local computer equipment for debugging personnel to carry out remote debugging, the local computer equipment obtains the debugging result fed back after the debugging plug-in embedded in the remote product carries out debugging response, and then the debugging result is output on the debugging page to be displayed. Furthermore, the debugging plug-in configuration of this embodiment runs in a background of the remote product in a silent manner, even if the breakpoint is triggered during remote debugging, the debugging plug-in immediately generates a debugging result and feeds the debugging result back to the local computer device of the debugger after acquiring the specific content observed by the breakpoint, so that the local thread of the remote product is not blocked, the use of the remote product is prevented from being affected, and the convenience of remote debugging is improved.
The embodiment provides a remote debugging method without exposing source codes in a production environment, which integrates a debugging plug-in a remote product, reserves a preset debugging interface, enables a debugging person to remotely access the debugging interface of the remote product through a preset access channel, inputs debugging information to be debugged from a corresponding debugging page, generates a debugging control instruction, controls the debugging plug-in embedded in the remote product to debug through a virtual machine bottom layer interface according to the debugging control instruction, feeds back the debugging result to a computer of the debugging person after obtaining the debugging result, can display the debugging result on the debugging page of computer equipment of the debugging person, enables the debugging person to conveniently and quickly locate problems occurring in the remote product locally, improves the convenience of remote debugging, and can access the debugging interface only if the debugging page has a specific authority through the setting of the preset access channel, therefore, the safety of remote debugging is ensured, the debugging plug-in is integrated into a remote product through the bottom layer interface technology of the virtual machine, and the source code of the remote product is not exposed to the outside in the process of remote debugging, so that the safety problem caused by the exposure of the source code in the remote debugging is avoided.
As shown in fig. 2, an embodiment of a debugging page output on a local computer device is intended, where "observation item", "observation class", "observation variable" and "breakpoint line" in fig. 2 are input frames configured on the debugging page and corresponding to debugging parameters that can be input, a debugger inputs the debugging parameters on the debugging page of the local computer device to generate corresponding debugging information, then sends the debugging information to a debugging plug-in embedded in a remote product, the debugging plug-in responds according to the debugging information to obtain a debugging result and then feeds the debugging result back to the local computer device, the local computer device outputs the debugging result fed back by the debugging plug-in embedded in the remote product on the debugging page for display, the region of the frame line in fig. 2 is a debugging result of a book, and the debugger can observe the debugging result from the debugging page to locate the problem of the remote product, i.e. the location of the BUG (BUG occurrence) in the remote product.
In one embodiment, in step S10, establishing a connection with a debug plug-in embedded in a remote product through a preset access channel, and outputting a debug page after establishing the connection includes:
sending authorization information to a debugging plug-in embedded in a remote product based on a preset access channel;
receiving feedback information after the debugging plug-in unit checks the authorization information;
and if the feedback information identifier passes the verification, establishing connection with a debugging plug-in embedded in the remote product, and outputting a debugging page after establishing the connection.
In this embodiment, in order to enhance security of remote debugging, an authority verification function is further added to a debugging plug-in embedded in a remote product, if a debugging person needs to perform remote debugging on the remote product, the debugging plug-in embedded in the remote product can be normally accessed only by the required authorization information, the debugging person sends authorization information to the debugging plug-in embedded in the remote product on the basis of a preset access channel on local computer equipment, the debugging plug-in receives the authorization information and then checks the authorization information, the authorization information is fed back to the local computer equipment, the local computer equipment receives feedback information after the authorization information is checked by the debugging plug-in, if the feedback information represents that the debugging plug-in passes the authorization information, connection with the debugging plug-in embedded in the remote product is established, and a debugging page is output after the connection is established. In an implementation manner of this embodiment, the authorization information includes an account password and a verification code, the authorization information is verified through the account password and the verification code, a connection with a debugging plug-in embedded in a remote product can be established only after a correct account password and a correct verification code are input, and the verification code can be generated through the debugging plug-in, for example, the debugging plug-in can be accessed under the condition of customer authorization, so as to debug the remote product; in another implementation manner of this embodiment, the authorization information may further include IP address information, and it is limited in the debug plug-in that the debug plug-in can be accessed only under a specific IP address, and security of remote debugging is enhanced by checking the authorization information.
In one embodiment, the outputting the debug page after the connection is established includes:
determining the permission level of remote debugging according to the feedback information;
configuring a debugging page of a corresponding remote product according to the permission level;
and outputting the debugging page after the connection is established.
In this embodiment, the debugging range of the remote product can be different under different authorization conditions, which means that the output debugging pages are different, a debugging person sends authorization information to a debugging plug-in embedded in the remote product through a local computer device, the debugging plug-in checks the authorization information, and then sends feedback information to the local computer device, where the feedback information includes a debugging permission level of the local computer device, the local computer device determines a permission level of remote debugging according to the feedback information, and then configures a corresponding debugging page of the remote product according to the permission level, for example, when the permission level is S level, the debugging page can debug functional modules a, b, and c of the remote product, and when the permission level is S + level, the debugging page can debug functional modules a, b, c, d, and e of the remote product, after the debugging page of the corresponding remote product is configured according to the permission level, the debugging page is output, the local computer equipment is limited to access the debugging plug-in of the remote product through the authorization information, the range of remote debugging of the remote product can be limited through the permission level, and therefore the safety of remote debugging is enhanced.
In another embodiment, different debugging pages are configured according to the characteristics of different remote products, and considering that the complexity of different remote products is different, the complexity of the debugging pages is different, when the complexity of the remote product is higher, the more functions that can be debugged by the corresponding debugging page is, and when the complexity of the remote product is lower, the excessive functions of the debugging pages do not need to be configured, so that the debugging pages of different remote products are different. When the remote product A is debugged, the debugging page A is output; when the remote product B is to be debugged, the debugging page B is output, so that debugging can be conveniently carried out according to the characteristics of different remote products.
In one embodiment, the debug information includes breakpoint insertion location information; step S30, controlling the debugging plug-in embedded in the remote product to perform debugging response according to the debugging information through the bottom layer interface of the virtual machine, including:
and controlling the debugging plug-in embedded in the remote product to insert breakpoints into lines corresponding to the remote product codes through a bottom layer interface of the virtual machine according to the breakpoint insertion position information so as to generate debugging results after the remote product runs to the breakpoints.
In this embodiment, the debugging page includes an input frame capable of inputting breakpoint positions, a debugging person inputs breakpoint insertion position information through the input frame to generate a debugging control instruction, after receiving the control instruction, the debugging plug-in inserts breakpoints at a line corresponding to a remote product code according to the breakpoint insertion position information through a bottom interface of the virtual machine, after the remote product runs to the breakpoint positions, a debugging result is generated, and then the debugging result is fed back to a debugging page of local computer equipment of the debugging person, the debugging person can quickly browse the debugging result through the debugging page, and perform debugging through the bottom interface of the virtual machine, which is equivalent to performing debugging locally on the remote product, and since the remote product integrates the debugging plug-in, the computer equipment of the remote product does not need to install a debugging tool again, therefore, the safety of remote debugging is ensured, and the efficiency of remote debugging is improved. Furthermore, the debugging plug-in configuration of this embodiment runs in a background of the remote product in a silent manner, the breakpoint is triggered during remote debugging, and the debugging plug-in immediately generates a debugging result and feeds the debugging result back to the local computer device of the debugging personnel after acquiring the specific content observed by the breakpoint, so that the local thread of the remote product cannot be blocked, the use of the remote product is prevented from being influenced, and the convenience of remote debugging is improved.
In one embodiment, the debug information includes a variable trace identification; step S30, controlling the debugging plug-in embedded in the remote product to perform debugging response according to the debugging information through the bottom layer interface of the virtual machine, including:
and controlling the debugging plug-in embedded in the remote product to add the variable tracking identifier into the corresponding variable of the remote product code through a bottom layer interface of the virtual machine so as to generate a debugging result of the variable change state.
In this embodiment, the debugging page includes an input box capable of inputting an observation variable, a debugger inputs a name of a variable to be observed through the input box, thereby generating a debugging control instruction, the debugging plug-in receives the control instruction, adds the variable tracking identifier to a corresponding variable of a remote product code through a bottom interface of the virtual machine, generates a debugging result when the remote product runs using the variable, the debugging result includes a change state of the variable, and then feeds the debugging result back to the debugging page of the local computer device of the debugger, the debugger can quickly browse a change state of a specified variable through the debugging page, and can determine whether the change of the variable conforms to a preset range according to the change state, and the value of the variable during which code runs has a certain range limit, if the value of the variable exceeds the range limit when the code runs, the error of the variable at the moment can be determined, and therefore the problem of a remote product can be located quickly.
In one embodiment, the debug information includes a class identification; step S30, controlling the debugging plug-in embedded in the remote product to perform debugging response according to the debugging information through the bottom layer interface of the virtual machine, including:
and controlling the embedded debugging plug-in of the remote product to insert the monitoring identification at the input and the output of the corresponding class of the remote product code through the bottom layer interface of the virtual machine so as to generate a debugging result related to the input and the output of the corresponding class.
In this embodiment, the debugging page includes an input box capable of inputting an observation class, a debugger inputs a name of a class to be observed through the input box to generate a debugging control instruction, the debugging plug-in receives the control instruction, inserts monitoring marks at an input and an output of a class corresponding to a remote product code through a bottom interface of the virtual machine, the class is used when the remote product runs, outputs from the input to the class are all monitored and recorded, then a debugging result is generated, the debugging result includes input and output values associated with the class, then the debugging result is fed back to a debugging page of local computer equipment of the debugger, the debugger can quickly browse the input and output values of a specified class through the debugging page, and whether the running process of the class is correct can be determined according to the input and output values, thereby quickly locating the problem with the remote product.
In one embodiment, the step S40 is to obtain a debugging result fed back after the debugging response is performed by the debugging plug-in embedded in the remote product, and after the debugging result is output to the debugging page and displayed, the method further includes:
positioning the defect problem of a remote product according to the debugging result;
obtaining a matching solution based on the defect problem;
feeding back the solution to a user of the remote product.
In the embodiment, after the debugging result is output and displayed on the debugging page, the defect problem (BUG) of the remote product is automatically positioned according to the debugging result, the parameter, the variable or the method function of the remote product with the defect problem and the file and the line of the code with the defect problem are found, then obtaining a matching solution based on the defect problem, the solution comprising an explanation of the defect problem and a generic solution to the defect problem, the solution is obtained by summarizing the debugging result and the rule of the historical record, and the solution is fed back to the user of the remote product, so that the user of the remote product can know the debugging result and the defect problem, meanwhile, debugging personnel can conveniently and rapidly maintain the remote products, and the remote debugging efficiency and the remote maintenance efficiency of the remote products are improved.
Referring to fig. 3, the present application further provides a remote debugging apparatus in a production environment, including:
access to the connection module 10: the debugging device is used for establishing connection with a debugging plug-in embedded in a remote product through a preset access channel and outputting a debugging page after the connection is established;
the debug input module 20: the debugging page is used for receiving debugging information input in the debugging page and sending the debugging information to a debugging plug-in embedded in a remote product;
the debug control module 30: the debugging plug-in is used for controlling the debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine;
the result display module 40: and the debugging device is used for obtaining a debugging result fed back after the debugging plug-in embedded in the remote product carries out debugging response, and outputting the debugging result to the debugging page for display.
As described above, it can be understood that the components of the remote debugging apparatus in the production environment proposed in the present application can implement the step functions of any one of the remote debugging methods in the production environment as described above.
In one embodiment, the access connection module 10 further includes a function of sending authorization information to a debugging plug-in embedded in a remote product based on a preset access channel; receiving feedback information after the debugging plug-in unit checks the authorization information; and if the feedback information representation verification is passed, establishing connection with a debugging plug-in embedded in the remote product, and outputting a debugging page after the connection is established.
In one embodiment, the access connection module 10 further comprises a permission level for performing remote debugging according to the feedback information; configuring a debugging page of a corresponding remote product according to the permission level; and outputting the debugging page after the connection is established.
In one embodiment, the debug information includes breakpoint insertion location information; the debugging control module 30 further comprises a debugging plug-in for executing and controlling the remote product embedded debugging plug-in to insert a breakpoint at a line corresponding to the remote product code through a bottom layer interface of the virtual machine according to the breakpoint insertion position information, so as to generate a debugging result after the remote product runs to the breakpoint.
In one embodiment, the debug information includes a variable trace identification; the commissioning control module 30 further performs: and controlling the debugging plug-in embedded in the remote product to add the variable tracking identifier into the corresponding variable of the remote product code through a bottom layer interface of the virtual machine so as to generate a debugging result of the variable change state.
In one embodiment, the debug information includes a class identification; (ii) a The commissioning control module 30 further performs: and controlling the embedded debugging plug-in of the remote product to insert the monitoring identification at the input and the output of the corresponding class of the remote product code through the bottom layer interface of the virtual machine so as to generate a debugging result related to the input and the output of the corresponding class.
In one embodiment, the apparatus further comprises a solution module for locating a defect problem of a remote product according to the debugging result; obtaining a matching solution based on the defect problem; feeding back the solution to a user of the remote product.
Referring to fig. 4, a computer device, which may be a mobile terminal and whose internal structure may be as shown in fig. 4, is also provided in the embodiment of the present application. The computer equipment comprises a processor, a memory, a network interface, a display device and an input device which are connected through a system bus. Wherein, the network interface of the computer equipment is used for communicating with an external terminal through network connection. The display device of the computer equipment is used for displaying the debugging page. The input device of the computer device is used for receiving input of a user on a debugging page. The computer designed processor is used to provide computational and control capabilities. The memory of the computer device includes non-volatile storage media. The non-volatile storage medium stores an operating system, a computer program, and a database. The computer program, when executed by a processor, implements a method of remote debugging in a production environment.
The processor executes the remote debugging method in the production environment, and the method comprises the following steps: establishing connection with a debugging plug-in embedded in a remote product through a preset access channel, and outputting a debugging page after establishing the connection; receiving debugging information input in the debugging page, and sending the debugging information to a debugging plug-in embedded in a remote product; controlling a debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine; and obtaining a debugging result fed back after the debugging plug-in embedded in the remote product carries out debugging response, and outputting the debugging result on the debugging page for display. The computer equipment provides a remote debugging method without exposing source codes in a production environment, a debugging plug-in is integrated in a remote product, a preset debugging interface is reserved, a debugging person remotely accesses the debugging interface of the remote product through a preset access channel, debugging information to be debugged is input from a corresponding debugging page to generate a debugging control instruction, the debugging plug-in embedded in the remote product is controlled to debug through a virtual machine bottom layer interface according to the debugging control instruction, the debugging result is fed back to the computer of the debugging person after being obtained, the debugging result can be displayed on the debugging page of the computer equipment of the debugging person, so that the debugging person can conveniently and quickly locate the problems of the remote product locally, the convenience of remote debugging is improved, and only the debugging interface can be accessed by a specific authority through the setting of the preset access channel, therefore, the safety of remote debugging is ensured, the debugging plug-in is integrated into a remote product through the bottom layer interface technology of the virtual machine, and the source code of the remote product is not exposed to the outside in the process of remote debugging, so that the safety problem caused by the exposure of the source code in the remote debugging is avoided.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor, implements a remote debugging method in a production environment, including the steps of: establishing connection with a debugging plug-in embedded in a remote product through a preset access channel, and outputting a debugging page after establishing the connection; receiving debugging information input in the debugging page, and sending the debugging information to a debugging plug-in embedded in a remote product; controlling a debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine; and obtaining a debugging result fed back after the debugging plug-in embedded in the remote product carries out debugging response, and outputting the debugging result on the debugging page for display. The computer readable storage medium provides a remote debugging method without exposing source codes in a production environment, by integrating debugging plugins on remote products and reserving preset debugging interfaces, debugging personnel remotely access the debugging interfaces of the remote products through preset access channels and then input debugging information to be debugged from corresponding debugging pages to generate debugging control instructions, the debugging plugins embedded in the remote products are controlled to debug through a virtual machine bottom layer interface according to the debugging control instructions, the debugging results are fed back to the computers of the debugging personnel after being obtained, the debugging results can be displayed on the debugging pages of computer equipment of the debugging personnel, so that the debugging personnel can conveniently and quickly locate problems occurring in the remote products locally, the convenience of remote debugging is improved, and meanwhile, through the setting of the preset access channels, the debugging interface can be accessed only by having specific authority, so that the safety of remote debugging is ensured, and the debugging plug-in is integrated into a remote product through the bottom layer interface technology of the virtual machine, so that the source code of the remote product is not exposed to the outside in the process of remote debugging, and the safety problem caused by the exposure of the source code in the remote debugging is avoided.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A remote debugging method in a production environment is characterized by comprising the following steps:
establishing connection with a debugging plug-in embedded in a remote product through a preset access channel, and outputting a debugging page after establishing the connection;
receiving debugging information input in the debugging page, and sending the debugging information to a debugging plug-in embedded in a remote product;
controlling a debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine;
and obtaining a debugging result fed back after the debugging plug-in embedded in the remote product carries out debugging response, and outputting the debugging result on the debugging page for display.
2. The remote debugging method in production environment according to claim 1, wherein the establishing of the connection with the debugging plug-in embedded in the remote product through the preset access channel and the outputting of the debugging page after the establishing of the connection comprise:
sending authorization information to a debugging plug-in embedded in a remote product based on a preset access channel;
receiving feedback information after the debugging plug-in unit checks the authorization information;
and if the feedback information representation verification is passed, establishing connection with a debugging plug-in embedded in the remote product, and outputting a debugging page after the connection is established.
3. The remote debugging method in a production environment according to claim 2, wherein outputting the debugging page after establishing the connection comprises:
determining the permission level of remote debugging according to the feedback information;
configuring a debugging page of a corresponding remote product according to the permission level;
and outputting the debugging page after the connection is established.
4. The remote debugging method in a production environment according to claim 1, wherein the debugging information comprises breakpoint insertion position information; the controlling the debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine comprises the following steps:
and controlling the debugging plug-in embedded in the remote product to insert breakpoints into lines corresponding to the remote product codes through a bottom layer interface of the virtual machine according to the breakpoint insertion position information so as to generate debugging results after the remote product runs to the breakpoints.
5. The remote debugging method in a production environment according to claim 1, wherein said debugging information comprises a variable trace identifier; the controlling the debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine comprises the following steps:
and controlling the debugging plug-in embedded in the remote product to add the variable tracking identifier into the corresponding variable of the remote product code through a bottom layer interface of the virtual machine so as to generate a debugging result of the variable change state.
6. The remote debugging method in a production environment of claim 1, wherein said debugging information comprises a class identifier; the controlling the debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine comprises the following steps:
and controlling the embedded debugging plug-in of the remote product to insert the monitoring identification at the input and the output of the corresponding class of the remote product code through the bottom layer interface of the virtual machine so as to generate a debugging result related to the input and the output of the corresponding class.
7. The remote debugging method under the production environment of claim 1, wherein the obtaining of the debugging result fed back after the debugging plug-in embedded in the remote product performs debugging response and the outputting of the debugging result on the debugging page after displaying further comprises:
positioning the defect problem of a remote product according to the debugging result;
obtaining a matching solution based on the defect problem;
feeding back the solution to a user of the remote product.
8. A remote debugging device in a production environment, comprising:
accessing a connection module: the debugging device is used for establishing connection with a debugging plug-in embedded in a remote product through a preset access channel and outputting a debugging page after the connection is established;
debugging the input module: the debugging page is used for receiving debugging information input in the debugging page and sending the debugging information to a debugging plug-in embedded in a remote product;
debugging the control module: the debugging plug-in is used for controlling the debugging plug-in embedded in the remote product to carry out debugging response according to the debugging information through a bottom layer interface of the virtual machine;
and a result display module: and the debugging device is used for obtaining a debugging result fed back after the debugging plug-in embedded in the remote product carries out debugging response, and outputting the debugging result to the debugging page for display.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program performs the steps of the method for remote debugging in a production environment according to any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for remote commissioning in a production environment according to any one of claims 1 to 7.
CN202011401537.0A 2020-12-02 2020-12-02 Remote debugging method and device in production environment, computer equipment and storage medium Pending CN112527639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011401537.0A CN112527639A (en) 2020-12-02 2020-12-02 Remote debugging method and device in production environment, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011401537.0A CN112527639A (en) 2020-12-02 2020-12-02 Remote debugging method and device in production environment, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112527639A true CN112527639A (en) 2021-03-19

Family

ID=74996679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011401537.0A Pending CN112527639A (en) 2020-12-02 2020-12-02 Remote debugging method and device in production environment, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112527639A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116303096A (en) * 2023-05-15 2023-06-23 安元科技股份有限公司 Method for debugging local component code of low-code designer

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887387A (en) * 2010-04-07 2010-11-17 山东高效能服务器和存储研究院 Method for remotely intelligently monitoring and analyzing RAID faults
CN103593292A (en) * 2013-11-19 2014-02-19 北京深思数盾科技有限公司 System and method for program debugging
CN104298602A (en) * 2014-10-27 2015-01-21 北京神州绿盟信息安全科技股份有限公司 Method and device for debugging application program
CN104698978A (en) * 2015-03-17 2015-06-10 华中科技大学 Numerical control system remote monitoring and debugging method based on virtualization technology
US20160124835A1 (en) * 2014-10-29 2016-05-05 Microsoft Corporation Diagnostic workflow for production debugging
CN108182149A (en) * 2017-12-28 2018-06-19 深圳Tcl数字技术有限公司 Built-in browser adjustment method, debugging terminal and computer readable storage medium
CN109783342A (en) * 2017-11-10 2019-05-21 华为技术有限公司 Script debugging method, equipment and computer storage medium
CN110032426A (en) * 2019-04-10 2019-07-19 浙江讯盟科技有限公司 A kind of method that can be debugged in real time online, system and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887387A (en) * 2010-04-07 2010-11-17 山东高效能服务器和存储研究院 Method for remotely intelligently monitoring and analyzing RAID faults
CN103593292A (en) * 2013-11-19 2014-02-19 北京深思数盾科技有限公司 System and method for program debugging
CN104298602A (en) * 2014-10-27 2015-01-21 北京神州绿盟信息安全科技股份有限公司 Method and device for debugging application program
US20160124835A1 (en) * 2014-10-29 2016-05-05 Microsoft Corporation Diagnostic workflow for production debugging
CN104698978A (en) * 2015-03-17 2015-06-10 华中科技大学 Numerical control system remote monitoring and debugging method based on virtualization technology
CN109783342A (en) * 2017-11-10 2019-05-21 华为技术有限公司 Script debugging method, equipment and computer storage medium
CN108182149A (en) * 2017-12-28 2018-06-19 深圳Tcl数字技术有限公司 Built-in browser adjustment method, debugging terminal and computer readable storage medium
CN110032426A (en) * 2019-04-10 2019-07-19 浙江讯盟科技有限公司 A kind of method that can be debugged in real time online, system and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116303096A (en) * 2023-05-15 2023-06-23 安元科技股份有限公司 Method for debugging local component code of low-code designer
CN116303096B (en) * 2023-05-15 2023-08-11 安元科技股份有限公司 Method for debugging local component code of low-code designer

Similar Documents

Publication Publication Date Title
CN109446068B (en) Interface test method, device, computer equipment and storage medium
WO2020233219A1 (en) Abnormal problem locating method and device, apparatus and computer readable storage medium
CN110224855B (en) Registration method and device of micro service instance, computer equipment and storage medium
WO2021218178A1 (en) Automatic report generation method, device, computer apparatus, and storage medium
CN109582583B (en) Software testing method, device, computer equipment and storage medium
CN110650186A (en) Interface calling method and device, computer equipment and storage medium
CN110704312B (en) Method, device, computer equipment and storage medium for pressure test
CN112527639A (en) Remote debugging method and device in production environment, computer equipment and storage medium
CN112667499A (en) Page component testing method and device, computer equipment and storage medium
CN112860778A (en) Database management method, device, equipment and medium for desktop application program
CN111782372A (en) Java process starting method and device, computer equipment and storage medium
CN109819014B (en) Project deployment method and device, computer equipment and storage medium
CN108121606B (en) Method and device for generating coded data based on joint debugging interface
CN111723019A (en) Interface debugging method and system
CN109639759B (en) Mail sending method and device based on cloud transmission and computer equipment
CN113885985A (en) Page rendering method, device, equipment and medium based on dynamic authority control
CN112540916A (en) Automatic rerun method and device for failed case, computer equipment and storage medium
CN112527286A (en) Service code generation method and device, computer equipment and storage medium
CN113626227A (en) Abnormal log information reporting method, intelligent terminal and storage medium
CN109492144B (en) Association relation analysis method, device and storage medium for software system
CN111008377A (en) Account monitoring method and device, computer equipment and storage medium
CN111814174B (en) Data access control method and device and computer equipment
CN114003486A (en) Plug-in debugging method, client, server and storage medium
CN112383536B (en) Firewall verification method and device, computer equipment and storage medium
CN114301599A (en) Digital certificate importing method and device of switch and computer equipment

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220520

Address after: 518000 China Aviation Center 2901, No. 1018, Huafu Road, Huahang community, Huaqiang North Street, Futian District, Shenzhen, Guangdong Province

Applicant after: Shenzhen Ping An medical and Health Technology Service Co.,Ltd.

Address before: Room 12G, Block H, 666 Beijing East Road, Huangpu District, Shanghai 200000

Applicant before: PING AN MEDICAL AND HEALTHCARE MANAGEMENT Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210319