Skip to main content
1-Visitor
February 17, 2016
Solved

Problem with debug configurating

  • February 17, 2016
  • 1 reply
  • 6466 views

Hello,

I use Intellij Idea for Windchill customization, and I have got a problem with configurating it for debug, I have created remote debug connection and set "localhost" as a host and "2015" as a port. Then I have added new property to site.xconf, as it is written in two different instructions, compiled it and restarted Windchill.:

   <Property name="wt.manager.cmd.MethodServer.nonibm.java.args"

   overridable="true"

             targetFile="codebase/wt.properties"

  value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=2015"/>

Now, when I am trying to debug my project, i am getting message 'Error running RemoteWindchillConnection: Unable to open debugger port (localhost:2015): java.net.ConnectException "Connection refused: connect"'. What did I do wrong?

Thank you.

Best answer by atemnikov

Question is closed. Right answer is:

   <Property name="wt.manager.cmd.MethodServer.debug.args"

             overridable="true"

             targetFile="codebase/wt.properties"

             value="-Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=2015,server=y,suspend=n"/>

1 reply

atemnikov1-VisitorAuthorAnswer
1-Visitor
February 17, 2016

Question is closed. Right answer is:

   <Property name="wt.manager.cmd.MethodServer.debug.args"

             overridable="true"

             targetFile="codebase/wt.properties"

             value="-Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=2015,server=y,suspend=n"/>