Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • IBM Web Experience Factory wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category Web Experience Factory 8 Documentation WebSphere Portlet Factory 7 Documentation WebSphere Portlet Factory 7.0.1 Documentation Custom Search Scope...
Search
Learning Center > Education > Debugging Information
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

IBM contributorRyan J Ruscett
Contribution Summary:
  • Articles authored: 1
  • Articles edited: 0
  • Comments Posted: 0

Recent articles by this author

Debugging Your Web Experience Factory Application

This article covers methods and techniques concerned with debugging your web Experience Factory Application. This article covers the most common methods used today by most developers. It also provides additional information so that you can better handle errors within your application. Model Tsole, ...

Community articleDebugging Information

Added by IBM contributor Ryan J Ruscett | Edited by IBM contributor Ryan J Ruscett on May 2, 2012 | Version 15
expanded Abstract
collapsed Abstract
No abstract provided.
Tags:

Debugging Summary

Web Experience Factory offers multiple avenues when it comes to debugging a bunk application. Developers often need to be able to determine what is happening in the application and its state, just before and when a problem occurs. WebSphere Portlet Factory provides multiple mechanisms and techniques to help you resolve such issues, as described below. Each link provided will offer information on how and why each technique is useful. These are not the only techniques available, but a grouping of the most typical methods used by Web Experience Factory Developers.


You can navigate to other forms of testing by using the links provided at the bottom of this page.


Designer Problems View

Web Browser Debugging

log4j Logging properties/custom logging

Debug Tracing Builders

Println Variables system.out

Model Tracing

Eclipse/RAD Debugging


Designer Problems and Task View


The Problems View found within Web Experience Factory is the most basic method used to debug an application. As you work with resources in the workbench, various builders may automatically log problems, errors, or warnings. When you double-click the icon for a problem, error, or warning. The editor for the associated resource automatically opens to the relevant line of code. This is part of the Default Web Experience Factory Perspective. If you do not see this option in your perspective, click Window > Show View > Other... > General > Problems.


The first column of the Problems view displays an icon that denotes the type of line item, the category and description. These are typically produced by the builders used within the model. Press F1 with the builder in question open to see specific information on that builder. This can be useful in determining what each builder, and builder input does. The builder help can also be used to determine whether your builder has any built in capabilities that could help in the debugging process. See for more details.Choosing Builders that use Actions and Events


You can filter the tasks or problems that are displayed in the Problems view. You can filter problems that have been logged by the Workbench, tasks that you have logged as reminders, and items according to resources they are associated with. Either by text string within the description, severity, task priority and or status. Filters can also be used to remove known or expected API problems. For more information on API filtering, please refer to unavailable
1. On the tool bar of the Tasks or Problems view, click Filter.
2. Select the radio buttons and checkboxes that correspond to your filtering objectives and click ok.

You may also use the Quick Fix feature available. This feature detects the error and offers simple quick fixes, if available.
1. Right click on the task in the problems view.
2. Select Quick Fix and choose from the options.
Quick Fix Example: A missing import statement in a Java file will result in a Quick Fix suggestion to add the import statement or change the type name to a name that is already imported.
For additional information or Supporting topics, please use the following link below. - Link 3 unavailable

Web Browser Debugging


Google Chrome, Firefox, and Safari are just a few of the browsers supported with developer tools that can be used to help debug a Web Experience Factory Application. Using a browser specific developer tool can aid in helping better understand, why the UI looks the way it does. What CSS file is getting used for a particular style element. What HTML element is effecting what features, and when working with themes inside your project. You can also edit the pages within the browser debugging console to achieve the desired look.

Developer Tools allow for easy inspection and step through of a page's JavaScript code as well. You can track variables, set break points and enable event listeners. Using built in web browser utilities can prove to be very useful, especially when dealing with the over style and look of your application.
For more information on browser specific Debugging Techniques, please visit: Google Chrome - Chrome Development Tools
Firefo x- Firebug
Safar i- Safari Developer Tools
Internet Explorer –IE Developer Tools
Opera - Opera Development Tools

Log4j.properties


Web Experience Factory uses the Apache Log4j logging services to log warnings, errors, exceptions, statistics and debugging information to a deployed WAR's WEB-INF/logs folder. The logs and the information they provide can prove exceedingly useful when debugging and diagnosing a variety of issues in Web Experience Factory Application. The log4j.properties folder can be located in the WEB-INF/config/log4j.properties file in your deployed WAR and Project within designer. I encourage you to read through this file carefully. It explains the categories of system level logging, and has changeable properties for each of the default logs and available appenders. The Default WPF / LWF Logs can easily be enabled and are located by default in WEB-INF/logs of your deployed application WAR. The most commonly used logs are as follows.

event.log - Contains error messages, exceptions and stack traces encountered during application requests

serverStats - Contains runtime statistics information, logged every 5 mins by default, showing how long actions, DB and web service requests are taking

debugTracing - Contains optional debug tracing information, if enabled

general.tx Catches all log that the log4j root category uses to combine messages from the other logging appenders

modelTracing - If enabled, lists actions that were executed, plus how long in milliseconds each action took to complete

For most situations, the log4j.properties file in the deployed WAR should suffice. If for some reason you must point to a log4j.properties file external to your deployed WAR, you should be able to set the following property in your project's WEB-INF/config/override.properties to point to a log4j.properties in an alternate location.
Example: bowstreet.logging.log4j.configFile=/my/alternate/log4j/configuration/path/log4j. properties


There are many appenders included in the log4j.properties file such as Server appenders, Server stat appenders, profile selection appenders, and builder call appenders just to name a few. For location, level of debuging and further information regarding PatternLayout and Regen of these files, please read the log4j.properties file. You may want to change the logging level on one ore more appenders in log4j.properties. You can read more about logging levels here Logging Levels

I have an example below that takes the incoming SOAP Requests which have a logging level of WARN, and changing it to DEBUG. This web service will now log all incoming requests. Get debug information from incoming web service requests by changing: log4j.logger.bowstreet.system.webservice.incomingSOAPRequest=WARN,IncomingSOAPRe quests to log4j.logger.bowstreet.system.webservice.incomingSOAPRequest=DEBUG,IncomingSOAPR equests You may also add your own custom appenders to this file in conjunction with corresponding information in in the override.properties file . For more information on custom log4j appenders and override.properties file, please refer to the supporting information of this section. There you will find links to resources that will aid in learning about custom appenders, customer logging techniques, and log4j standards. Supporting Information: - For additional logging information see link 4 - Custom Appenders and Custom Logging please visit link 5 - - Default logging level --- link 6

expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (85)
collapsed Versions (85)
Version Comparison     
VersionDateChanged by              Summary of changes
85May 16, 2012 2:50:37 PMRyan J Ruscett  IBM contributor
84May 16, 2012 2:46:44 PMRyan J Ruscett  IBM contributor
83May 11, 2012 12:46:06 PMRyan J Ruscett  IBM contributor
81May 11, 2012 12:44:22 PMRyan J Ruscett  IBM contributor
80May 11, 2012 12:42:47 PMRyan J Ruscett  IBM contributor
79May 11, 2012 12:32:20 PMRyan J Ruscett  IBM contributor
78May 11, 2012 12:30:19 PMRyan J Ruscett  IBM contributor
77May 11, 2012 12:21:02 PMRyan J Ruscett  IBM contributor
76May 11, 2012 12:17:42 PMRyan J Ruscett  IBM contributor
75May 8, 2012 3:04:05 PMRyan J Ruscett  IBM contributor
74May 8, 2012 2:57:27 PMRyan J Ruscett  IBM contributor
73May 8, 2012 1:38:56 PMRyan J Ruscett  IBM contributor
72May 8, 2012 1:37:27 PMRyan J Ruscett  IBM contributor
71May 8, 2012 1:36:09 PMRyan J Ruscett  IBM contributor
70May 8, 2012 1:28:56 PMRyan J Ruscett  IBM contributor
69May 8, 2012 1:24:52 PMRyan J Ruscett  IBM contributor
68May 8, 2012 1:23:40 PMRyan J Ruscett  IBM contributor
67May 4, 2012 12:59:48 PMRyan J Ruscett  IBM contributor
66May 4, 2012 12:57:56 PMRyan J Ruscett  IBM contributor
65May 4, 2012 12:57:30 PMRyan J Ruscett  IBM contributor
64May 4, 2012 12:56:12 PMRyan J Ruscett  IBM contributor
63May 4, 2012 12:50:19 PMRyan J Ruscett  IBM contributor
62May 4, 2012 12:04:39 PMRyan J Ruscett  IBM contributor
61May 4, 2012 11:39:35 AMRyan J Ruscett  IBM contributor
60May 4, 2012 11:37:14 AMRyan J Ruscett  IBM contributor
59May 4, 2012 11:30:58 AMRyan J Ruscett  IBM contributor
58May 4, 2012 11:27:44 AMRyan J Ruscett  IBM contributor
57May 4, 2012 11:23:36 AMRyan J Ruscett  IBM contributor
56May 4, 2012 11:19:03 AMRyan J Ruscett  IBM contributor
55May 4, 2012 11:15:54 AMRyan J Ruscett  IBM contributor
54May 4, 2012 11:14:07 AMRyan J Ruscett  IBM contributor
53May 4, 2012 11:11:05 AMRyan J Ruscett  IBM contributor
52May 4, 2012 11:04:47 AMRyan J Ruscett  IBM contributor
51May 4, 2012 10:32:31 AMRyan J Ruscett  IBM contributor
50May 4, 2012 10:26:56 AMRyan J Ruscett  IBM contributor
49May 4, 2012 10:22:15 AMRyan J Ruscett  IBM contributor
48May 4, 2012 10:21:19 AMRyan J Ruscett  IBM contributor
47May 3, 2012 4:57:12 PMRyan J Ruscett  IBM contributor
46May 3, 2012 4:52:36 PMRyan J Ruscett  IBM contributor
45May 3, 2012 4:50:30 PMRyan J Ruscett  IBM contributor
44May 3, 2012 4:38:58 PMRyan J Ruscett  IBM contributor
43May 3, 2012 4:30:18 PMRyan J Ruscett  IBM contributor
42May 3, 2012 4:12:39 PMRyan J Ruscett  IBM contributor
41May 3, 2012 4:11:05 PMRyan J Ruscett  IBM contributor
40May 3, 2012 4:00:33 PMRyan J Ruscett  IBM contributor
39May 3, 2012 3:57:30 PMRyan J Ruscett  IBM contributor
38May 3, 2012 3:38:55 PMRyan J Ruscett  IBM contributor
37May 3, 2012 2:56:39 PMRyan J Ruscett  IBM contributor
36May 3, 2012 2:55:30 PMRyan J Ruscett  IBM contributor
35May 3, 2012 2:15:46 PMRyan J Ruscett  IBM contributor
34May 3, 2012 2:14:18 PMRyan J Ruscett  IBM contributor
33May 3, 2012 2:13:03 PMRyan J Ruscett  IBM contributor
32May 3, 2012 2:08:32 PMRyan J Ruscett  IBM contributor
31May 3, 2012 1:59:09 PMRyan J Ruscett  IBM contributor
30May 3, 2012 1:58:10 PMRyan J Ruscett  IBM contributor
29May 3, 2012 1:57:36 PMRyan J Ruscett  IBM contributor
28May 3, 2012 1:56:29 PMRyan J Ruscett  IBM contributor
27May 3, 2012 1:46:26 PMRyan J Ruscett  IBM contributor
26May 3, 2012 1:45:17 PMRyan J Ruscett  IBM contributor
25May 3, 2012 1:43:59 PMRyan J Ruscett  IBM contributor
24May 3, 2012 1:42:46 PMRyan J Ruscett  IBM contributor
23May 2, 2012 9:07:01 PMRyan J Ruscett  IBM contributor
22May 2, 2012 9:05:00 PMRyan J Ruscett  IBM contributor
21May 2, 2012 9:01:06 PMRyan J Ruscett  IBM contributor
20May 2, 2012 8:31:22 PMRyan J Ruscett  IBM contributor
19May 2, 2012 5:05:35 PMRyan J Ruscett  IBM contributor
18May 2, 2012 5:03:31 PMRyan J Ruscett  IBM contributor
17May 2, 2012 5:01:15 PMRyan J Ruscett  IBM contributor
16May 2, 2012 4:55:13 PMRyan J Ruscett  IBM contributor
This version (15)May 2, 2012 4:50:39 PMRyan J Ruscett  IBM contributor
14May 2, 2012 4:45:56 PMRyan J Ruscett  IBM contributor
13May 2, 2012 4:43:46 PMRyan J Ruscett  IBM contributor
12May 2, 2012 4:42:49 PMRyan J Ruscett  IBM contributor
11May 2, 2012 4:41:34 PMRyan J Ruscett  IBM contributor
10May 2, 2012 4:39:51 PMRyan J Ruscett  IBM contributor
9May 2, 2012 4:30:42 PMRyan J Ruscett  IBM contributor
8May 2, 2012 4:24:19 PMRyan J Ruscett  IBM contributor
7May 2, 2012 4:16:38 PMRyan J Ruscett  IBM contributor
6May 2, 2012 4:08:24 PMRyan J Ruscett  IBM contributor
5May 2, 2012 4:07:06 PMRyan J Ruscett  IBM contributor
4May 2, 2012 4:06:18 PMRyan J Ruscett  IBM contributor
3May 2, 2012 4:00:38 PMRyan J Ruscett  IBM contributor
2May 2, 2012 3:54:16 PMRyan J Ruscett  IBM contributor
1May 2, 2012 3:43:02 PMRyan J Ruscett  IBM contributor
1May 2, 2012 3:45:08 PMRyan J Ruscett  IBM contributor
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • BlogsIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use