Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] How to debug a webapp with m2e and jetty:run?

I use debug as maven build quite extensively for Tycho development and
it works for me without issues on macosx 10.6.something and on linux
with m2e 1.0+ and various Sun 1.6 VMs.

--
Regards,
Igor

On 12-01-03 3:21 PM, Daniel Serodio (lists) wrote:
Igor Fedorenko wrote:
On 12-01-03 7:54 AM, Daniel Serodio (lists) wrote:
When I try to debug it like this, it's not ran in Debug mode (the
threads are not visible in the Debug view and it doesn't stop at
breakpoints). Should I need to set MAVEN_OPTS too?
This is expected to work without any additional configuration. Can you
provide some details about your environment, i.e. O/S, JDK, Eclipse and
m2e versions.
Mac OS X 10.7.2, Java for Mac OS X 10.7 Update 1 (Java 1.6.0_29),
Eclipse Indigo SR1, m2e 1.0.100

BTW, Webby has been working fine so far and saved me quite some time,
thanks for the tip.

Regards,
Daniel Serodio
I wasn't aware of Webby, I'll give it a try.

Regards,
Daniel Serodio

Igor Fedorenko wrote:
Have you tried "Debug As -> Maven Build..."?

I would also consider using tighter integrated development tools, i.e.
m2e/wtp integration and m2e/webby.

--
Regards,
Igor

On 12-01-02 4:19 PM, Daniel Serodio (lists) wrote:
I tried to debug a webapp inside m2e by running it as m2e "Maven
Build"
Run Configuration and setting MAVEN_OPTS to "-Xdebug -Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y" but it
didn't work.

I had to resort to debug it by running Maven as an external tool like
explained here:
http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse


(which requires 2 separate steps, to launch the application and the
debugger).

How can I debug a webapp with m2e? Is this feature not implemented?

Thanks in advance,
Daniel Serodio

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top