Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Debugging method and device for a web component

A debugging method and component technology, applied in the software field, can solve problems such as low efficiency and long debugging cycle, and achieve the effect of shortening the development cycle and improving development efficiency

Active Publication Date: 2018-12-25
RUN TECH CO LTD BEIJING
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this case, when debugging the application, it is necessary to save the modified file in the Web component, repackage the Web component, restart the application server, and then continue debugging. After each debugging, it is necessary to restart the Start the application server and load the web components. This debugging method has the problems of long debugging cycle and low efficiency.

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
  • Debugging method and device for a web component
  • Debugging method and device for a web component
  • Debugging method and device for a web component

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 2 A schematic flow chart of a debugging method for a Web component provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of hot debugging in an OSGi development environment. The method can be executed by an application server, and specifically includes the following operations:

[0030] S110. In the OSGi development environment, after detecting that the user modifies the files in the web component being debugged, save all the files in the web component being debugged to a folder.

[0031] Preferably, this operation may also include naming the folder. Exemplarily, the folder can be named folder_example. The advantage of this setting is that when there are multiple web components to be debugged, they can be easily distinguished.

[0032] S120. Send the name of the folder and the names of the files in the folder to the resource access directory.

[0033] Through this operation, in subsequent operations, when accessing t...

Embodiment 2

[0044] image 3 It is a schematic structural diagram of a Web component debugging device provided by Embodiment 2 of the present invention. Can be built into the application server as part of the application server. like image 3 As shown, a debugging device for a Web component provided in this embodiment mainly includes:

[0045] A file saving module 210 , a name sending module 220 , a file judging module 230 , a first file searching module 240 and a second file searching module 250 .

[0046] The file saving module 210 is used to save all files in the Web component being debugged to a folder when it is detected that the user modifies the files in the Web component being debugged under the OSGi development environment;

[0047] A name sending module 220, configured to send the name of the folder and the names of the files in the folder to the resource access directory;

[0048] The file judging module 230 is used to judge whether the file to be accessed by the access reques...

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 discloses a debugging method and device of a Web assembly. The debugging method comprises the following steps: under the OSGi (Open Service Gateway Initiative) development environment, after a situation that a user revises files in the Web assembly under debugging is detected, all files in the Web assembly under debugging are stored into a folder; the name of the folder and the names of the files in the folder are sent to a resource access catalogue; after an access request of the user is received, whether the file to be accessed by the access request is the file in the Web assembly under debugging or not is judged; if the file to be accessed by the access request is the file in the Web assembly under debugging, the file to be accessed in the resource access catalogue is searched, and a search result is returned; and if the file to be accessed by the access request is not the file in the Web assembly under debugging, the files in the Web assemblies except the Web assembly under debugging are searched, and the search result is returned. The hot debugging of Web assembly development is realized, and a development period is greatly shortened.

Description

technical field [0001] The embodiment of the present invention relates to the field of software technology, and in particular to a method and device for debugging a Web component. Background technique [0002] OSGi (Open Service Gateway Initiative) is a well-known Java modular specification in the industry. It has been supported by mainstream application server providers such as Oracle (Oracle), IBM (International Business Machines Corporation, International Business Machines Corporation), and has become a reality. The Java Modularity Standard on . [0003] In the OSGi development environment, due to the componentized development method, each component is packaged independently and interacts with each other through services. like figure 1 Shown is the deployment of the service in OSGi development mode. In this deployment environment, each web component (that is, a file with a suffix of .jar) is loaded by the application server without being decompressed. In this case, wh...

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 Patents(China)
IPC IPC(8): G06F11/36G06F17/30
Inventor 张宏伟
Owner RUN TECH CO LTD BEIJING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products