MavenJettyDebug

HomePage | RecentChanges | Preferences

Debugging a webapp with Maven and Jetty

IDEA Setup

In IDEA 7, Run -> Edit Configurations

Click the + button and choose Remote

Give it a descriptive name

Change the port to 8000 (Other settings are Transport=Socket, Debugger mode=Attach, Host=localhost)

Uncheck 'Make' in the 'Before launch' section

Click OK

Maven

In the webapp module, type 'mvnDebug jetty:run'

This will suspend waiting for a connection on port 8000

IDEA

Select your new Debug configuration and click Debug

It will connect, and you'll see the Maven console window continue

Set a breakpoint, then visit http://localhost:8080 (default) to exercise the app

If it seems to get stuck, click the icon next to "Frames" and find the thread that has stopped on a breakpoint


HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited September 21, 2008 11:50 am by WendySmoak (diff)
Search: