In idea, go to the debug window, select the remote debug tab.  Add a new
profile,

Your settings should look something like this.

-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9090.


You can specify whatever port you like that is not in use. I chose 9090. 
The assumption here is that your idea and jetty server are on localhost
machine(You could specify another machine).

Go to your bin/maven.bat or /bin/maven.sh and add the following to your OPTS

set MAVEN_OPTS=-Xms32m -Xmx196m -Xdebug -Xnoagent  -Djetty.port=8090
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9090

When the java vm executes, it will listen on port 9090 for remote debug
sessions.

Thats all there is to it. Now you can mvn jetty:run and start a remote debug
session.

Will




swordfish wrote:
> 
> Yes, that's exactly what I want.  Please kindly give me the details. 
> Thanks millions in advance!
> 
> 
> Will Berger wrote:
>> 
>> I assume you are doing this to debug your appfuse app inside IDEA.  If
>> so, there is an easier way to do enable debugging in IDEA.  Let me know
>> if interested and ill give you the details.
>> 
>> Will
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-run-AppFuse-web-app-on-Jetty-in-IDEA-tf3619895s2369.html#a10115923
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to