title: NetBeans : Unable to attach debugger (getting Connection refused error)
body: <p>I am using Weblogic server and want to debug using the NetBeans IDE (v7.2)</p>
  
  <p>In setDomainEnv.cmd, I have</p>
  
  <pre><code>if "%DEBUG_PORT%"=="" (
      set DEBUG_PORT=8453
  )
  set debugFlag = "true";
  
  if "%debugFlag%"=="true" (
      set JAVA_DEBUG=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=%DEBUG_PORT%,server=y,suspend=n -Djava.compiler=NONE
      set JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole...
  ) else (
      set JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -da
  )
  </code></pre>
  
  <p>Then, in Netbeans, I go to Debug > Attach Debugger, enter all the details for 
  Host, Port and Timeout</p>
  
  <p>But I am getting Connection refused error. </p>
  
  <p>Is there any way to enable debug settings from Weblogic console as well?</p>