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:

enter image description here

update: after creating debug configuration im getting following error: enter image description here

i checked first line of running servers log statment , showed running on 8081:

listening transport dt_socket @ address: 8081 

here intelliji debug configuration:

enter image description here

add usual remote debug configuration shown below (you should specify port). , suppose run tomcat in jpda mode. enter image description here

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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -