java - TomCat server configuration not appearing in Intelliji -
im trying set remote debugging in tom cat server have running. problem have when try edit run configuration tomcat server not option in intelliji. here images demo issue:
update: after creating debug configuration im getting following error:
i checked first line of running servers log statment , showed running on 8081:
listening transport dt_socket @ address: 8081
here intelliji debug configuration:
add usual remote debug configuration shown below (you should specify port). , suppose run tomcat in jpda
mode.
edit:
for enable jpda debugger run tomcat command below:
catalina.sh jpda run
or catalina.sh jpda start
you can check port number in catalina.sh, example tomcat 7.0.27
if [ "$1" = "jpda" ] ; if [ -z "$jpda_transport" ]; jpda_transport="dt_socket" fi if [ -z "$jpda_address" ]; jpda_address="8000" fi if [ -z "$jpda_suspend" ]; jpda_suspend="n" fi if [ -z "$jpda_opts" ]; jpda_opts="-agentlib:jdwp=transport=$jpda_transport,address=$jpda_address,server=y,suspend=$jpda_suspend" fi catalina_opts="$catalina_opts $jpda_opts" shift fi
as can see in script, add same command line arguments on screenshot.
if using windows, replace script name catalina.bat
Comments
Post a Comment