Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Java code remote debugging method, device and system, equipment and medium

A remote debugging and java virtual machine technology, applied in the computer field, can solve problems such as difficult debugging code location, heavy workload, etc., to achieve the effect of reducing complex work, facilitating problem location, and simplifying debugging work

Pending Publication Date: 2020-12-18
福建摩尔软件有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, at present, this kind of simulation environment has a lot of work to build, and because the simulation environment cannot be completely the same as the on-site production environment, it is often difficult to locate the problems in the debugging code due to the existence of such environmental differences.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Java code remote debugging method, device and system, equipment and medium
  • Java code remote debugging method, device and system, equipment and medium
  • Java code remote debugging method, device and system, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] This embodiment provides a method for remote debugging of Java codes, which is used for remote debugging of controllers, such as figure 2 shown, including the following steps:

[0041] S1, docking with the jpda interface of the java virtual machine through an independently operated remote debugging controller, the remote debugging controller realizes the web interface, and the java virtual machine is the production environment, that is, the code for running the production environment;

[0042] S2. In the debugging state, the remote debugging controller receives the code file name of the browser through the web interface, searches for the debugging code to be loaded in the java virtual machine according to the code file name, and displays it to the browser through the web interface , for users to issue debugging instructions on the browser side;

[0043] S3. The remote debugging controller monitors and controls the state of the java virtual machine running the debuggin...

Embodiment 2

[0048] Such as image 3 As shown, a Java code remote debugging device is provided in this embodiment, which is installed in an independently running remote debugging controller, including:

[0049] The interface module is used for docking with the jpda interface of the java virtual machine;

[0050] The web interface is used to receive the code file name and debugging instructions from the browser;

[0051] The search module is used to find the debugging code that needs to be loaded in the java virtual machine according to the code file name, and display it to the browser through the web interface;

[0052] A monitoring module, configured to monitor the state of each process of the java virtual machine running the debugging code;

[0053] The control module is used to control the java virtual machine to put a breakpoint on the debugging code of each process to debug and obtain the debugging result;

[0054] The feedback module is used to feed back the debugging results to t...

Embodiment 3

[0060] In this embodiment, a Java code remote debugging system is provided, corresponding to such as figure 2 The system shown includes:

[0061] The java virtual machine runs the code in the production environment;

[0062] The remote debugging controller is used for docking with the jpda interface of the java virtual machine, runs independently and realizes the web interface; and in the debugging state, receives the code file name of the browser end through the web interface, according to the code file name in the described The java virtual machine searches for the debugging code that needs to be loaded, and displays it to the browser through the web interface, so that the user can issue debugging instructions on the browser; then monitor and control the state of the java virtual machine running the debugging code according to the debugging instruction and perform debugging , to obtain the debugging result, and feed back the debugging result to the user through the browser...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a Java code remote debugging method, device and system, equipment and a medium, and the method comprises the steps that S1,a remote debugging controller is in butt joint with ajava virtual machine, and the java virtual machine represents a production environment; S2, in a debugging state, the remote debugging controller receives a code file name of a browser end through a web interface, searches for a debugging code needing to be loaded in the java virtual machine according to the code file name, and displays the debugging code to the browser end through the web interface, so that a user issues a debugging instruction at the browser end; and S3, the remote debugging controller monitors and controls the java virtual machine to run the state of the debugging code according to the debugging instruction and performs debugging to obtain a debugging result, and feeds back the debugging result to the user through the browser. The java virtual machine is controlled by the remote debugging controller to directly run the code of the production environment without additionally simulating the production environment, and the remote debugging controller realizes a web interface for a user to realize remote debugging through a browser end, so that debugging is greatly simplified.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method, device, system, device and medium for remote debugging of Java codes based on web and supporting hot loading. Background technique [0002] When you encounter problems in the daily environment and the pre-release environment, you can use the remote debugging method to break the local breakpoint and debug locally. However, due to network isolation and system stability considerations, remote code debugging cannot be performed in the production environment. Therefore, most of the company's codes are currently controlled in the internal environment of the company's developers, and it is forbidden to flow into the external environment connected to the public network; even if the code is allowed to be copied to the production environment, using coding tools to debug the code in the production environment will also consume A large number of server resources make it ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455
CPCG06F9/45516G06F9/45558G06F2009/45591
Inventor 刘平
Owner 福建摩尔软件有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products