idea + maven + profile + tomcat 调试 javaee 和js

配置 maven install

新建一个javaweb项目
目录结构

《idea + maven + profile + tomcat 调试 javaee 和js》

pom.xml

    <profiles>
        <profile>
            <id>km-ssm-dev</id>
            <properties>
                <profiles.active>dev</profiles.active>
            </properties>
        </profile>
        <profile>
            <id>km-ssm-test</id>
            <properties>
                <profiles.active>test</profiles.active>
            </properties>
        </profile>
    </profiles>

添加maven启动项

《idea + maven + profile + tomcat 调试 javaee 和js》

配置tomcat

《idea + maven + profile + tomcat 调试 javaee 和js》

选择浏览器
勾选js调试器

点击 fix

《idea + maven + profile + tomcat 调试 javaee 和js》
选择 exploded

《idea + maven + profile + tomcat 调试 javaee 和js》

《idea + maven + profile + tomcat 调试 javaee 和js》
新建文件夹 webapps

回到 server ,选中 update classes and resources

《idea + maven + profile + tomcat 调试 javaee 和js》

选择之前的 maven install

《idea + maven + profile + tomcat 调试 javaee 和js》

启动

debug启动

添加 js 断点

《idea + maven + profile + tomcat 调试 javaee 和js》

刷新首页,可以DEBUG JS

《idea + maven + profile + tomcat 调试 javaee 和js》

部署路径: ${user.home}/.IntelliJIdea/system/tomcat
日志领:本地 tomcat 下的 logs 文件夹

    原文作者:khlbat
    原文地址: https://segmentfault.com/a/1190000016516511
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞