Blackboard Logo

warningThis page is deprecated

Enabling Remote Debugging

This tutorial will show you how to enable Tomcat debugging so that you can connect to your Building Block application with a code-level debugger such as those built into Eclipse and NetBeans.

Enabling debugging using

Newer versions of Blackboard Learn have a built-in flag to enable Tomcat debugging. Follow these steps to turn it on:

  1. Open the file /blackboard/config/ in a text editor
  2. Modify the value bbconfig.tomcat.debug.enable and set bbconfig.tomcat.debug.enable=true
  3. Navigate to /blackboard/tools/admin/ and run from the command line.
  4. You can now connect with a debugger to port 2222 (or as set in the value for bbconfig.jvm.options.debug.tomcat)

Setting up Eclipse for Tomcat Debugging

Remote debugging is project specific in Eclipse. Once you have the building block project created and open you may setup the debugging within Eclipse:

  1. In the Eclipse project view tool bar:
  2. Click on the upward facing arrow next to the “Debug” button (the button with the bug) in the toolbar and
  3. Click on “Debug configurations…”
  4. Alternatively you may select “Run > Debug configurations…” from the Eclipse menu.

  5. A new window with the current debug configurations will open.
  6. Select “Remote Java Application” in the left list of configuration options and then click on “New launch configuration” button (the button with the folder icon in the top-left corner).
  7. Alternatively you may double-click “Remote Java Application”.

  8. Fill the configuration with the data corresponding with your Tomcat instance:

Execute the Debugger

Once you have built and deployed your Building Block you may click on the button “Debug” and Eclipse will connect with the Learn instance of Tomcat (Learn must be running). Now when you put the breakpoints inside the Eclipse project you may debug as you would normally with a regular project only now it is remote code running in the Learn Tomcat container.