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.
- catalina_opts="-xdebug -xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
- jpda_opts="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
- 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
Post a Comment