Configuring a server for debugging a model
An example procedure based on the IBM WebSphere Application Server can show you how to debug a model.
- To configure the WebSphere Application Server for debugging, use the IBM WebSphere Portal server or WebSphere Application Server Admin tool.
- On the Configuration page, under Additional Properties, select Debugging Service.
This link provides access to the application server Debug General Properties page.
- On the Debug General Properties page, make server debugging possible by enabling the Startup check box.
- On the Debug General Properties page, make a note of the port number to be used for debug output.
- Optional: For a portlet, you can also set various debug parameters for WebSphere Portal server, including the JVM Debug Port. IBM WebSphere Portlet Factory Designer can connect to the JVM Debug port to receive debug information.
Running a model in debug mode
After you configure the server for debugging, follow these steps to initiate debugging of Java code:
- Add a breakpoint to the code.
- Open the Java source file for an LJO or the generated Java source file for the model.
For example, for a model named "Test" in the WEB-INF/models directory, you would find its generated Java source file in: WEB-INF/factory/generated/genjava/_Test.java
- Set a breakpoint at the desired spot in the code.
- Run the Model to Initiate Debugging.
- In IBM WebSphere Portlet Factory Designer, choose
- Click the debug button
- Wait until the debugger is finished loading.
- Debug the code for your model as you would any other Java application.
No comments:
Post a Comment