Method and system for debugging hybrid source code
AssigneeInternational Business Machines Corporation
InventorsArthur B. Ryman, Sheldon B. Wosnick
Life of this patent
Estimating the term…
Abstract
This invention provides a method and system for debugging hybrid source code such as JavaServer Pages (JSP) code. The method comprises the steps of running a server within a virtual machine instance; reading a hybrid source code file into a page compiler and compiling the hybrid source code to produce a servlet source code; intercepting and loading the servlet source code into a debugger, before execution by the Web server. Using an HTML browser as client to the Web server which in turn is running in the development environment to thereby debug the JSP code in real-time. In a preferred embodiment, the load class in the page compiler is replaced to redirect the compiled source to the debugger.
Claims27
A method for debugging hybrid source code, said method comprising the steps of:
- translating the hybrid source code, in which a single source file comprises a source code in a second language imbedded in a source code of a markup language, into source code;
- loading the source code into a development environment and compiling the source code into executable code;
- and
- running the executable code in the development environment, providing an output from the executable code to a user interface, and allowing concurrent debugging of the source code and executable code in the development environment.
A method for debugging hybrid source code, said method comprising the steps of:
- translating the hybrid source code, in which a single source file comprises a source code in a second language imbedded in a source code of a markup language, into source code by a page compiler;
- overriding a load class method in the page compiler for redirecting the source code to a development environment and compiling the source code into executable code;
- and
- running the executable code in the development environment, providing an output from the executable code to a user interface, and allowing concurrent debugging of the source code and executable code in the development environment.
A computer program product for debugging hybrid source code, said computer program product comprising:
- means for translating the hybrid source code, in which a single source file comprises a source code in a second language imbedded in a source code of a markup language, into source code;
- means for loading the source code into a development environment and compiling the source code into executable code;
- and
- means for running the executable code in the development environment, providing an output from the executable code to a user interface, and allowing concurrent debugging of the source code and executable code in the development environment.
A computer system for debugging hybrid source code comprising:
- a page compiler for translating the hybrid source code, in which a single source file comprises a source code in a second language imbedded in a source code of a markup language, into source code, providing the source code to a development environment;
- and
- a development environment for compiling the source code into executable code, providing an output from the executable code to a user interface, and allowing concurrent debugging of the source code and executable code in the development environment.
Dependencies are inferred from the claim text.