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:
- In the C++ Compilation tab, make sure that CompileArguments has
$(DEBUG_TAG)
(this defaults to /Zi when using NT40T.x86-VisualC++-6.0) - 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:
- Set Operation Mode in Processor Instance Specification to "Debugger" (either MSDEV or .NET)
- Right click on Processor Instance and Select Load, and the debugger will appear
- Now select Run, and the Runtime View inside Rose RealTime should appear
- Keep stepping through the debugger until the RealTime Application starts.
- Open the Top capsule state machine from the Runtime View
- Right click capsule name and open state machine
- You should have a selecting tool that is a circle
- This you can use to set breakpoints on States and Transitions
- When you hit these breakpoints, the Visual Studio debugger will show you the corresponding source code.
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"}}]
Was this topic helpful?
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