Debugging from within IBM® Rational Rhapsody

About this task

To debug from within Rational® Rhapsody®:

Procedure

  1. Add the following debug options to the JVM section of the rhapsody.ini file:
    [JVM]
    Options=ClassPath,LibPath,Debug1,Debug2,Debug3
    Debug1=-Xnoagent
    Debug2=-Xdebug
    Debug3=-Xrunjdwp:transport=dt_socket,address=6743,server=y,suspend=y
  2. Open your Java plug-in project in Eclipse and create a Remote Java Application configuration as follows:
    1. Choose Run > Debug Configurations.
    2. In the Debug Configurations window, right-click Remote Java Application, and then select New.
    3. Set the port number to 6743 or any other number that you entered for "address" in the JVM settings in the rhapsody.ini file.
      Debug Configurations window
  3. Open Rational Rhapsody and open the project that loads your plug-in. Once the project is loaded, you can start the debug session.
  4. Set breakpoints in your code and start the debug session.

Feedback