1、添加调试项目工程
打开Maven Build,选择Source,默认显示如下:
[img]http://dl2.iteye.com/upload/attachment/0124/6451/159cbca6-dcbe-30ec-8f89-dd36af2ea0e6.png[/img]
选择add,添加调试项目
[img]http://dl2.iteye.com/upload/attachment/0124/6453/59554b4f-1f7f-3375-b141-ad514cee61f0.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0124/6455/b0ae43f1-7549-3afe-bb82-af82a9262b10.png[/img]
2、开启MAVEN_OPTS的调试参数
配置如下:-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1066
Eclipse配置如下图:
[img]http://dl2.iteye.com/upload/attachment/0124/6457/203ede95-37bf-3e65-a426-bfcd2fa91fdb.png[/img]
打开Maven Build,选择Source,默认显示如下:
[img]http://dl2.iteye.com/upload/attachment/0124/6451/159cbca6-dcbe-30ec-8f89-dd36af2ea0e6.png[/img]
选择add,添加调试项目
[img]http://dl2.iteye.com/upload/attachment/0124/6453/59554b4f-1f7f-3375-b141-ad514cee61f0.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0124/6455/b0ae43f1-7549-3afe-bb82-af82a9262b10.png[/img]
2、开启MAVEN_OPTS的调试参数
配置如下:-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1066
Eclipse配置如下图:
[img]http://dl2.iteye.com/upload/attachment/0124/6457/203ede95-37bf-3e65-a426-bfcd2fa91fdb.png[/img]