Link to home
Create AccountLog in
Avatar of Sathish David  Kumar N
Sathish David Kumar NFlag for India

asked on

how to debug java code in apache http server deployment

hi my application contain angular js and spring code.

we deploy our code in apache 2.4 .x server.
is that any possibility to debug the code using eclipse??
because I am using  and clean install to generate war.
through command prompt i deploy my code. not in eclipse run on server
 can you help me to debug the code
Avatar of girionis
girionis
Flag of Greece image

Start your spring server with the debug option

-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n myapp

Open in new window


then in Eclipse from "Run" -> "Debug Configurations..." choose the "Remote Java Application" and enter the port number 4000. And you're ready to go.
Avatar of Sathish David  Kumar N

ASKER

How to create break point in the jar
how to do debug ?
You just create a break point in Eclipse, in the source code (click on the left of the line you want to set the break point).
its giving error
Error: Could not find or load main class suspend=n
Show me the command line.
ASKER CERTIFIED SOLUTION
Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
application  jar in eclipse itself *
So how did you do it then? The command I posted in my first post works for spring boot.
no i add sts plugin in eclipse
Ah.. ok, so you're running spring boot from within Eclipse...