Concurrent debugging rendering method and device of script

A script and location information technology, applied in the field of data processing, can solve problems that cannot meet the needs of WebIDE debugging, achieve concurrent debugging and concurrent rendering, and avoid blocking effects

Active Publication Date: 2018-07-13
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the existing web-side script debugging methods are single-page debugging methods, which cannot meet the needs of debugging in Web IDEs.

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
  • Concurrent debugging rendering method and device of script
  • Concurrent debugging rendering method and device of script
  • Concurrent debugging rendering method and device of script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] Embodiments of the present invention provide a method and device for concurrent debugging and rendering of scripts, which are used to realize concurrent debugging and concurrent rendering of multiple pages in the same integrated environment tab of a WEB IDE.

[0043] The kernel of existing WEB browser is multi-threaded, and wherein, the kernel of a browser needs at least three resident threads: javascript engine thread, GUI rendering thread and browser event trigger thread, but javascript engine thread is based on event-driven Single-threaded execution, generally speaking, the javascript engine and the page UI will share the same thread, so when a button is clicked to start running javascript, the page cannot respond to user operations until the code finishes running, in other words, it is blocked by " frozen.

[0044] Generally, a Rhino script is implemented as an extension of the back-end (server-side) java code, and its execution is executed on the back-end, and is e...

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 embodiment of the invention discloses a concurrent debugging rendering method and device of a script. The concurrent debugging rendering method and device are used for concurrently debugging and concurrently rendering multiple pages in the same integrated environment tab of WEB IDE. The method comprises the steps of receiving debugging running information of a Rhino script in a server side, wherein the debugging running information comprises multiple pieces of thread information, and each thread information comprises debug IDs and variable state values; creating a corresponding Webworker subsidiary thread for a thread corresponding to each debug ID, and sending each thread to the corresponding Webworker subsidiary thread, wherein each Webworker subsidiary thread is used for executing corresponding thread codes; receiving an executing result for the corresponding thread sent by each Webworker subsidiary thread; conducting rendering displaying on the executing results respectively, and displaying the variable state values in rendering displaying.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a method and device for concurrent debugging and rendering of scripts. Background technique [0002] WEB IDE (WEB Integrated Development Environment) is a browser-based integrated development environment, which can be used for code development, inspection and concurrent debugging. The so-called concurrent debugging is to find the breakpoint position during the debugging process of the process, and only pause the first encountered The thread at the breakpoint location, while other threads continue to run. [0003] As an open source scripting engine framework, Rhino can run scripts similar to javascript syntax, call java methods, or embed Java execution. Since Rhino script is implemented as an extension of back-end java code, its execution is executed on the back-end , and is executed by the backend java call. During the debugging process, code execution and process varia...

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): G06F11/36G06F8/34
CPCG06F8/34G06F11/3644
Inventor 范来华
Owner KINGDEE SOFTWARE(CHINA) CO LTD
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
Try Eureka
PatSnap group products