You are not logged in. Click here to log in.

codebeamer Application Lifecycle Management (ALM)

Search In Project

Search inClear

Tags:  not added yet

Introduction

Customizations running in codeBeamer can be debugged by starting codeBeamer with debugging enabled and connecting a debugger to the running codeBeamer instance.

It is highly recommended that you use a local codeBeamer installation to debug your customizations and not run the companies test or even the production server in debug-mode.

This page only contains information supporting local codebeamer debugging! When using, for example, dockerized codebeamer instances configuration parameter values might differ.

Starting codeBeamer in Debug-Mode

Assuming your codeBeamer is started automatically as a service, make sure that service is stopped.

After doing that open a console, cd to CODE_BEAMER/tomcat/bin and execute catalina.bat jpda run (Windows) or ./catalina.sh jpda run (Linux)

Once you did that you should see codeBeamer / Tomcat starting in the console listening for a debugger to connect on port 8000.


Once startup is complete you will be able to connect to codeBeamer using the usual URL.


Setup Remote Debugging in Eclipse

  • Select Run / Debug Configurations menu item
  • On the appearing window Select Java Remote Application
  • Press Right mouse click on this menu item and Select New
  • Specify a name for the new Debug Configuration
  • Default connection type and property should be fine if you are debugging a local codeBeamer instance.
  • Click on the Debug button
    • Check the debug tab (if does not exists you can add using the Windows / Show View menu item)
    • If something went wrong error occurs
  • Set a breakpoint in the code and start using your server
    • open your local codeBeamer
    • run will stop for debugging on your breakpoint


Remote Debugging in Other IDEs

Please refer to the documentation of your favorite IDE to find out how to setup remote debugging.

When configuring the remote debugger make sure to use settings:

  • Transport: Socket
  • Debugger Mode: Attach
  • Host: localhost or the IP host name of the machine running codeBeamer in debug-mode.
  • Port: 8000
Only locally installed codebeamer instances are supported, parameter values might differ when using docker to run codebeamer.