如何设置远程Debug对windchill进行调试
This setting must be done a development system with a single MS and no BGMS.
Add the following to <TW_HOME>\site.xconf and propagate with xconfmanager -p:
<Property name="wt.manager.cmd.MethodServer.debug.args" overridable="true"
targetFile="codebase/wt.properties"
value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"/>
You can now attach your Java debugger to port 8000
To use an other port change the wt.manager.cmd.MethodServer.debug.args property accordingly.
Do not use the old Sun JDK 1.4 or earlier debug option,these may conflict with Dynatrace:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
译文:
这个设置需要一个单独的MS和没有BGMS的开发系统。
将以下内容添加到<TW_HOME>\site.xconf并执行xconfmanager -p:
<Property name="wt.manager.cmd.MethodServer.debug.args" overridable="true"
targetFile="codebase/wt.properties"
value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"/>
现在可以将Java调试器连接到端口8000
使用其他端口wt.manager.cmd.MethodServer.debug.args属性相应的改变。
不要使用旧的Sun JDK 1.4或早期的调试选项,这些可能与Dynatrace冲突:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
方法:
xconfmanager -s 'wt.manager.cmd.MethodServer.debug.args=-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n' -t codebase/wt.properties -p
★然后在eclipse中添加debug调试
在没有BGMS的开发系统上,为了调试Windchill,需要在<TW_HOME>site.xconf中添加特定配置,并用xconfmanager-p工具传播。配置项涉及wt.manager.cmd.MethodServer.debug.args,设定监听端口为8000以允许Java调试器连接。如果要更改端口或避免与Dynatrace冲突,需调整相应属性。最后,在Eclipse等IDE中设置远程调试连接。

5400

被折叠的 条评论
为什么被折叠?



