如何设置远程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调试