Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for obtaining webpage execution JavaScript function call path

A function call path and function technology, applied in the Internet field, can solve the problem that the setTimeOut function and the setInterval function cannot continue to track, and achieve the effect of convenient tracking and debugging, convenient tracking and detection

Active Publication Date: 2018-07-20
INST OF BIG DATA RES AT YANCHENG OF NANJING UNIV OF POSTS & TELECOMM
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Technical problem: the purpose of the present invention is to obtain the complete function call path information of JavaScript in the webpage by executing the webpage code, overcome the shortcoming that the existing browser technology can only obtain the JavaScript function context call relationship and cannot setTimeOut function and setInterval function The shortcomings of continuing to track; in addition, you can dynamically configure the call path information that developers need to display, and obtain function call information across iframes

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
  • Method for obtaining webpage execution JavaScript function call path
  • Method for obtaining webpage execution JavaScript function call path
  • Method for obtaining webpage execution JavaScript function call path

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0027] Step 1: Insert the JavaScript code executed by the web page

[0028] Use JavaScript's dynamic instrumentation tool Jalangi to set a proxy server for the browser. When the web page is loaded, all executed script files will pass through Jalangi's proxy server. Configuration, you can obtain information such as properties before and after function execution in JavaScript.

[0029] Step 2: Obtain and track JavaScript function call path information

[0030] Such as figure 1 As shown, since the JavaScript language has the feature of allowing dynamic binding of attributes to functions, it is considered to bind a trace attribute to record the trace path on the function of the call path. By modifying and passing the trace attribute, the transfer function call can be achieved. Information, the purpose of obtaining the function call path.

[0031] Using Array....

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 method for obtaining a webpage execution JavaScript function call path. A webpage is subjected to dynamic instrumentation by using a dynamic instrumentation tool Jalangi of aJavaScript, and all functions in a JavaScript execution path of the webpage are added with function call path information. Firstly a method capable of adding a parameter to the end of a JavaScript function is defined, and the method is used for storing the function call path information executed currently in a parameter list of the function before the function is executed; secondly the operationof adding parameters to functions such as setTimeOut, setInterval, apply, call and the like is subjected to special processing, so that the continuation and unified execution of function call paths are ensured; and finally the corresponding function call path information is output for iFrame, script and a tag generation parts. A complete link output exists for a function call relationship, so thata developer can perform tracking and debugging conveniently.

Description

technical field [0001] The invention relates to a method for acquiring a JavaScript function call path executed by a webpage, and belongs to the field of the Internet. Background technique [0002] With the development of Web2.0 technology, the development of applications using JavaScript continues to accelerate. JavaScript is a web scripting language that has been widely used in web application development. It is often used to add various dynamic functions to web pages to provide users with smoother and more beautiful browsing effects. Usually JavaScript scripts are embedded in HTML pages to achieve specific functions. [0003] The function call relationship between many large-scale JavaScript applications is very complicated. During the development or debugging process, it is often necessary to track which functions are called by a certain function before triggering the execution. Finding out the calling order of these functions is very important for us to understand the ...

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
IPC IPC(8): G06F8/30
CPCG06F8/3135
Inventor 张卫丰刘蕊成赵晨陈贵美许蕾王子元周国强张迎周
Owner INST OF BIG DATA RES AT YANCHENG OF NANJING UNIV OF POSTS & TELECOMM