Overview: Configuring a development environment

You will find it useful to send debug information to the Eclipse console. Information returned to the console can help you troubleshoot problems with models and portlets.

 

Using the Console to View Debug Information

We can use the command consoles for both the application on which the Factory runs and Designer to view any System.out.println() statements used in your code.

Keep in mind that any System.out.println() statements in a builder 's Java class appear in the Designer console.

Any System.out.println() statements in the Linked Java Objects (LJOs) or methods in a model appear in the application server's console.

To display a console window for WebSphere Studio:

  1. Locate the shortcut you use to launch WebSphere Studio. The WebSphere Portlet Factory install program, adds the WebSphere Portlet Factory Designer short cut to your Programs menu.

  2. Right-mouse click on the shortcut and choose Properties from the drop-down menu.

  3. In the Properties dialog, set the Target value to:

C:\workbench\eclipse\eclips.exe -consolelog -debug

These flags prompt WebSphere Studio to display a console window to which it will send all of the debug statements that occur during generation.