IBM Support

Using the Visual Studio source code debugger with Rose RealTime

Troubleshooting


Problem

This technote shows how to use the Microsoft® Visual Studio® debugger to debug your IBM® Rational Rose® RealTime source code and model.

Resolving The Problem

To use the Visual Studio source code debugger with Rose RealTime, there are two arguments that need to be set in the Component Specification.

Setting arguments in the Component Specification:

  1. In the C++ Compilation tab, make sure that CompileArguments has
    $(DEBUG_TAG)
    (this defaults to /Zi when using NT40T.x86-VisualC++-6.0)
  2. In the C++ Executables tab, make sure that LinkArguments has
    /DEBUG

When using Microsoft® Visual C++®, you need to instruct the compiler to generate debug information (/Zi), and the linker to include the debug information when linking (/DEBUG). That is what the above two steps perform.

Adding breakpoints in Rose RealTime Runtime Viewer:
  1. Set Operation Mode in Processor Instance Specification to "Debugger" (either MSDEV or .NET)
  2. Right click on Processor Instance and Select Load, and the debugger will appear
  3. Now select Run, and the Runtime View inside Rose RealTime should appear
  4. Keep stepping through the debugger until the RealTime Application starts.
  5. Open the Top capsule state machine from the Runtime View
    • Right click capsule name and open state machine
  6. You should have a selecting tool that is a circle
    • This you can use to set breakpoints on States and Transitions
  7. When you hit these breakpoints, the Visual Studio debugger will show you the corresponding source code.
For more information on setting breakpoints in Rose RealTime, look in the on-line Help under the section
Toolset Guide->Running and Debugging->Setting breakpoints.




[{"Product":{"code":"SSSHKL","label":"Rational Rose RealTime"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"C++","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.00;2002.05.20;2003.06.00;2003.06.01;2003.06.12;2003.06.13;2003.06.14;2003.06.15","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
Rational Rose RealTime

Software version:
2002.05.00, 2002.05.20, 2003.06.00, 2003.06.01, 2003.06.12, 2003.06.13, 2003.06.14, 2003.06.15

Operating system(s):
Windows

Document number:
346109

Modified date:
16 June 2018

UID

swg21228888