Preparing your result...
Loading...
Press Esc to dismiss this message

A Method to debugging JavaScript across Browsers by Sever Side Code Instrumenting (19-Aug-2009)

Thumbnail
IP.com Prior Art Database Disclosure (Source: IPCOM)
Disclosure Number IPCOM000186401D dated 19-Aug-2009
Originally published in Prior Art Database
Disclosed by: IBM
Country: Undisclosed
Disclosure File: 6 pages / 81.1 KB / English (United States)

This invention relates to a new method to debugging JavaScript code executed across different kinds of browsers. The method achieves this by providing a debugging proxy (e.g. a servlet in J2EE platform).

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 37% of the total text.

Page 1 of 6

A Method to debugging JavaScript across Browsers by Sever Side Code Instrumenting

It is well known that, JavaScript is a dynamic script language,

function to debug JavaScript code is usually provided by browsers. Since debugging JavaScript code is not required by every user (in most cases, only developers need it), debuggingtools (named debugger) are often presented as eachbrowser's plug-ins, such as Firebug on Firefox, Microsoft Script Editor on IE, etc.

Two Common Vital Problems developers often have to face are that:
1)Donkey Work - In order to develop/debug JavaScript code across different kinds of browsers, developers have to install different kinds of plug-ins for each browser.
2)Less efficiently - Moreover, since the functions/operations of each debugger (plug-in) are maybe different, developers have to learn how to use them one by one,

which often makes less efficiently

                                                           (IDE). However, this method makes developers have to install a heavy IDE as a desktopapplication to debug JavaScript code.

Facing to those problems, there are no effective methods at present. In a word, all existed methods mentioned above, make developers have to install some extra software to debug JavaScript and learn how to use them one by one.

This invention relates to a new method to debuggingJavaScript code executed across different kinds ofbrowsers. The method achieves this by providing a debugging proxy (e.g. a servlet in J2EE platform).

Compared with known solutions mentioned above, the Goal of this present invention is to give a much more universal, effective and flexible way to help developers to debug JavaScript code across browsers without installing any extra plug-ins or IDE.

The Key Idea is that a browser will get a page (include JavaScript) needs to be debugged from a debugging proxy (e.g. a servlet in J2EE platform), the proxy will parse the page, get the JavaScript file referred by this page, then modify both the page and JavaScript files to insert debugging code and return to browser. Both business and debugging code willbe executed in browsers.

We can benefit from two main aspects with this invention:
·Debugging JavaScript code in any browser without installing any extra software
·Support any browser and provide uniform debugger function in any browser

Another choice to debug JavaScript code is to use an Integrated Development Environment

which is mainly parsed and executed on browsers. In general, the

.

1

Page 2 of 6

Two concepts included in this invention are: debugging proxy and debugging code.

·Debugging Proxy: Refers to a server side script such as servlet in J2EE platform.

The proxy will perform following functions:
1.Get the original page data user queried, namely the html content of the page.
2.Parse the page, get all the JavaScript fragments.If a JavaScript fragment refers to a JavaScript file, also get the file...

(Source: IPCOM)
First page image
(Source: IPCOM)