java - how to start tomcat debug port in windows while debugging tomcat application -


i'm getting exception while debugging

failed connect remote vm. connection refused. connection refused: connect. 

i have tried command in windows system

netstat -n -a -p tcp

but port 8787 not there how start port.

basic config is: in catalina.bat under tomcat/bin file modify below.

  1. catalina_opts="-xdebug -xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
  2. jpda_opts="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
  3. run tomcat command prompt below: catalina.sh jpda start

then in eclipse create debug configuration give name configuration. give project name. give connection type standard(socket attach) host localhost port 8000( or port number , should same in other places also). see: remote debugging tomcat eclipse


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -