Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • IBM Composite Applications wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category Custom Search Scope...
Search
Community Articles > Troubleshooting Applications > Debugging and Troubleshooting NSF Components
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Robert F Harwood
Contribution Summary:
  • Articles authored: 59
  • Articles edited: 54
  • Comments Posted: 8

Recent articles by this author

Lotus Domino Designer help updates for 8.5.2

How to find the documentation for Lotus Domino release 8.5.2

Product-specific links for the IBM Support Portal

The IBM Support Portal simplifies the customer online support experience.

Creating custom actions in java

During this tutorial you will extend the Browser Application Container with a custom container action created in Java. Our use case is to allow a user to highlight any text in a note and quickly see the translation in another window on the same page. We will create a composite application page ...

Expeditor Toolkit 6.2 and Lotus Expeditor wiki now available

The Lotus Expeditor 6.2 Toolkit is now available for download. In case you are not familiar with the toolkit, it can be used to build plug-ins for Notes, Sametime, Symphony, and Expeditor. The 6.2 version of the toolkit can be used with beta releases of Notes 8.5. Additional information about the ...

Step-by-Step deployment scenario 1: Application "move" example

This article describes a deployment scenario that "moves" an NSFbased composite application from a development environment (local only or test Domino server) to a singleserver production environment . Note: This information is provided for example purposes ONLY. It is published to provide ...

Community articleDebugging and Troubleshooting NSF Components

Added by Robert F Harwood | Edited by IBM contributor Neal A Timpe on July 21, 2010 | Version 4
  • Edit
  • More Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: debugging, troubleshooting, NSF components, Notes components, components, Eclipse, Expeditor
This article explains how to debug NSF (or Lotus Notes) components. Debugging and troubleshooting composite applications in general is covered in this topic.

Use the following guidelines and tips when logging and debugging NSF components:

  • The LotusScript debugger may be helpful in debugging NSF component. but there are challenges with composite applications. Challenges can occur especially when there are multiple pieces of LotusScript code running at the same time in different components, which may not all start in the same order. In this case, you only get to debug whichever one starts up first.
  • If your focus is on debugging the component, as opposed to the application, a good technique to get past this is to create a unit test.
  • Unit testing is covered completely in this article . For debugging, the basic idea is to create a test composite application that contains only the component under test, and a special testing component. You can then wire up the testing component to the specific properties and actions of the component under test that you want. Through the UI of the testing component you can send specific values to th component under test's actions, or conduct ui operations and see the values reflected in the properties.
  • In this sort of setup the debugger can be used quite successfully. Because you fully control what is going on, you can trigger the event you wish, and then step through the code.
  • A "standard types tester" component is provided in the Component Library on OpenNTF . This is suitable for use with components that use standard types. If you need more than that, the article above includes instructions on making your own tester component.
  • 'Print' statements are particularly helpful in letting you see the order that events occurred in. These do not grab focus the way a modal dialog (msgbox) does. They require fewer mouse clicks than "msgbox", and you can see the results easily. This is useful only if there are not too many events as the history shows only the last 20 or so.
  • When you add LogStatusBar=1 in your NOTES.INI file, it causes your status bar output to be written to your log.nsf file. This lets you use Print statements in your components and retain a record of what they wrote.
  • Trapping errors is especially helpful for troubleshooting LotusScript code. Using this technique lets you see what line number errors occurred on. Search DeveloperWorks for "Debugging Domino Applications" for more techniques on troubleshooting LotusScript code.
  • Another technique is to use the NotesLog class to log information to a text file (OpenFileLog method) or Notes document (OpenNotesLog).
  • Visit OpenNTF.org  for a logging application which is very popular.

  • Edit
  • More Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (4)
collapsed Versions (4)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (4)Jul 21, 2010 3:50:13 PMNeal A Timpe  IBM contributor
3Oct 11, 2009 3:00:21 PMDeanna Drschiwiski  IBM contributor
2May 27, 2008 10:59:40 AMRobert F Harwood  IBM contributor
1May 19, 2008 11:25:03 AMRobert F Harwood  IBM contributor
expanded Comments (0)
collapsed Comments (0)
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
  • FacebookIBMSocialBizUX 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