栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

Local debugging application launched on tomcat with cargo in IntelliJ

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Local debugging application launched on tomcat with cargo in IntelliJ

我这样固定。

<plugins>  <plugin>    <groupId>org.prehaus.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 > EditConfigurations > + > 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

然后,无需运行调试器即可开始构建货物。



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/422026.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号