大佬教程收集整理的这篇文章主要介绍了Local debugging application launched on tomcat with cargo in IntelliJ,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我这样固定。
<plugins>
<plugin>
<groupID>org.codehaus.cargo</groupID>
<artifactID>cargo-maven2-plugin</artifactID>
<version>1.4.19</version>
<configuration>
<container>
<containerID>tomcat8x</containerID>
</container>
<configuration>
<type>standalone</type>
<propertIEs>
<cargo.servlet.port>8080</cargo.servlet.port>
<cargo.jvmargs>
-Xmx2048m
-xms512m
-XdeBUG
-XrunjDWp:transport=dt_socket,server=y,suspend=y,address=9009
-Xnoagent
-Djava.compiler=NONE
</cargo.jvmargs>
</propertIEs>
</configuration>
<deployer>
</deployer>
<deployables>
<deployable type="war" file="target/spa.war"></deployable>
</deployables>
</configuration>
</plugin>
我通过更改地址来使用另一个端口。
-XrunjDWp:transport=dt_socket,server=y,suspend=y,address=9009
I then created an IntelliJ run config for a remote by going to. Run > Edit
Configurations > + > Remote
I configured the remote to go to localhost and
the port I had prevIoUsly chosen <9009>.
完成此操作后,我可以开始运行货物,然后作为一个单独的过程启动调试器以启用调试。
如果需要,可以将suspend参数更改为no。
-XrunjDWp:transport=dt_socket,server=y,suspend=n,address=9009
然后,无需运行调试器即可开始构建货物。
我试图在我的货物配置中启用调试。我正在使用具有以下配置的cargo-maven2-plugin版本1.4.19。
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.19</version>
<configuration>
<container>
<containerId>tomcat8x</containerId>
</container>
<configuration>
<type>standalone</type>
<properties>
<cargo.servlet.port>8080</cargo.servlet.port>
<cargo.jvmargs>
-Xmx2048m
-Xms512m
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=63342
-Xnoagent
-Djava.compiler=NONE
</cargo.jvmargs>
</properties>
</configuration>
<deployer>
</deployer>
<deployables>
<deployable type="war" file="target/spa.war"></deployable>
</deployables>
</configuration>
</plugin>
应用程序使用此配置启动,但是IntelliJ从不连接到JVM来启用调试。如何使IntelliJ连接到JVM?
以上是大佬教程为你收集整理的Local debugging application launched on tomcat with cargo in IntelliJ全部内容,希望文章能够帮你解决Local debugging application launched on tomcat with cargo in IntelliJ所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。