简体   繁体   English

Rational Rhapsody调试JVM

[英]Rational Rhapsody Debugging JVM

I am trying to attach a remote debugger to Rational Rhapsody in order to debug a Java plugin I developed. 我试图将远程调试器附加到Rational Rhapsody,以便调试我开发的Java插件。

The official guide to do this for Rhapsody 8.1 can states: 针对Rhapsody 8.1进行此操作的官方指南可以指出:

Add the following debug options to the JVM section of the rhapsody.ini file: 将以下调试选项添加到rhapsody.ini文件的JVM部分:

Options=ClassPath,LibPath,Debug1,Debug2,Debug3 选项= ClassPath,LibPath,Debug1,Debug2,Debug3

Debug1=-Xnoagent Debug1 = -Xnoagent

Debug2=-Xdebug Debug2 = -Xdebug

Debug3=-Xrunjdwp:transport=dt_socket,address=6743,server=y,suspend=y Debug3 = -Xrunjdwp:传输= dt_socket,地址= 6743,服务器= y,暂挂= y

Which seems to be a simple addition of startup arguments for the JVM. 这似乎是JVM启动参数的简单添加。

However if I apply this arguments to my Rhapsody it starts as always, however when I open any project containing a plugin call (hence which would start the JVM) it does get stuck while opening it and the application goes to "Not Responding". 但是,如果我将此参数应用到我的Rhapsody中,它将照常启动,但是,当我打开任何包含插件调用的项目(因此将启动JVM)时,它在打开时确实卡住,并且应用程序进入“无响应”状态。

I also tried to checkout the "JavaAPILogFile" which without the startup options shows all the Java calls that Rhapsody does to startup a project. 我还尝试签出“ JavaAPILogFile”,其中没有启动选项,显示了Rhapsody为启动项目所做的所有Java调用。 If I activate the debugging options this log file stays empty. 如果我激活调试选项,则此日志文件将保持空白。

Can you connect with your debugger? 您可以连接调试器吗? I think because you say suspend=y it will halt and wait for the debugger to attach. 我认为是因为您说的是suspend=y ,它将暂停并等待调试器附加。

As soon as you are connected you can debug your plugin. 连接后,即可调试插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM