Home

last update: 2024-04-26 at 19:00:17 CEST

Java Development

Debugging

Debugg A Maven-Jetty Web Application

export MAVEN_OPTS="-Xdebug \
-Xrunjdwp:transport=dt_socket,server=y,address=8000"

Run the jetty project

mvn jetty:run

Debugg an Application that comes as a Java Archive

java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000 -jar \
application.jar

Launching a Debugger from Netbeans

In NetBeans, Goto Debug → Attach Debugger. Select Java Debugger(JPDA) and as connector select SocketAttatch and specify the port as 8000. Now you can debug the webapplication using NetBeans