Debugging Jython script files on WebSphere Application Server
You can detect and diagnose errors in your Jython script with the debugger. You can control the running of your script by setting breakpoints, suspending threads, stepping through the code, and examining the contents of the variables. To debug Jython scripts, use the WebSphere® Application Server Administrative Script Launcher to set up the runtime environment to interpret your script, and the security settings; if your script is running against a secured server.
Before you begin
- For debugging administrative scripts, the workbench requires a local installation of WebSphere Application Server v6.1 or later even if you are debugging the administrative scripts against a remote server. The reason is that the workbench uses the administrative scripting runtime environments that are provided in the libraries of a locally installed server.
- Start the local or remote server you want to debug your administrative script file against.
Restriction: WebSphere Application
Server v6.1 and later is the only supported runtime environment for
debugging Jython script files. However, when you run (as opposed to
debugging) Jython script files, there is a different list of supported
runtime environments. See Running
administrative script files on WebSphere Application
Server for details.
Tip: The difference
between running versus debugging Jython scripts is that for debugging
Jython scripts you can set breakpoints in the script; whereas in running
a Jython script you are running the script without interruptions.
Restriction: To debug Jython scripts, the Jython scripts must
exist within the workbench by either creating or importing the Jython
script into the workbench. You must debug your Jython script within
the workbench, as opposed to running a Jython script located on the
file system. Debugging tools such as the breakpoint margin to set
breakpoints is not available when you debug the Jython script outside
the workbench on the file system.
About this task
To debug Jython scripts: