독립형 애플리케이션으로 디버그하려면 다음 예제에서와 같이 IBM® Rational® Rhapsody® 콜백을 시뮬레이션하는 기본 오퍼레이션을 작성해야 합니다.
public static void main(String[] args) {
//create an instance of my plug-in
MyPlugin myPlugin = new MyPlugin ();
//get Rhapsody application that is currently running
IRPApplication app
=RhapsodyAppServer.getActiveRhapsodyApplication();
//init the plug-in
myPlugin.RhpPluginInit(app);
//simulate a call to the plug-in
myPlugin.RhpPluginInvokeItem();
}
이러한 기본 오퍼레이션이 포함되면 Rational Rhapsody를 실행하고 다른 Java 애플리케이션으로 플러그인을 디버그할 수 있습니다.