Useful Tools and Components: Using Variable Packages (VarPacks)

Step 3: Debugging and Troubleshooting

This page lists technical tips for common problems and provides instructions on how to debug your new VarPack.

Technical Tips

If your custom VarPack is not loaded correctly, first check the following items:

If none of these tips solve the problem, debug your code using the instructions below.

Debugging

These instructions use the HelloWorldVarPack class created on the previous pages as an example. (If you cannot see the instructions you need, reset the language filter at the top of the page. No VB sample code is provided for this example.)

Java

If your Java Eclipse debugger is not currently set up for Tomcat, see Setting Up the Development Portal for instructions on how to add the samplevarpack project to the debugger.

  1. In Eclipse, stop the Tomcat debugging session and open HelloWorldVarPack.java.

  2. Add a breakpoint as shown below.

  3. In the Eclipse menu, click Run | Debug… and select the Tomcat application.

  4. Choose the Classpath tab, select Add Projects, and add the samplevarpack project.

  5. Hit Debug (and Save to retain your changes).

  6. Start the portal.

  7. You should hit this breakpoint once during startup, when the XMLBaseVarPack class asks the HelloWorldVarPack what xml file to load.

C#

  1. Stop the Visual Studio debugger (and close your browser if it is still open) and open HelloWorldVarPack.cs in Visual Studio.

  2. Add a breakpoint as shown below.

  3. Start the Visual Studio debugger (F5 or Start | Debug) and wait for the portal to start up.

  4. You should hit this breakpoint once during startup, when the XMLBaseVarPack class asks the HelloWorldVarPack what xml file to load.