Idea JSP随处断点,CSS行都OK
来源:互联网 发布:java 获得访问者ip 编辑:程序博客网 时间:2024/06/05 08:36
For JSP debugging in Intellij there are some configurations that must be in order. The fact that Intellij always allows you to add a breakpoint on a JSP line does not necessarily imply that you’ve configured JSP debugging. In the following I refer to Intellij 8 configuration, w.r.t. previous versions you will need to do similar operations as the concepts are the same.
In order to enable JSP debugging you must do two steps: set a web application configuration in your project and add a web application server configuration.
Web application Configuration: in order to have JSP debugging, you must have a “web” facet in your project structure, pointing to the correct web.xml file. Depending on the kind of web application structure you are using, the facet may be detected automatically by Intellij (go anyway to check what it has done) or you may have to add it manually. Remember in the “Java EE build settings” tab to set as anable “Create web facet exploded directory”; if you don’t want duplications, a trick is just to enable it and point to your already existing directory.
(Web) Application server: Go to “edit configurations”, there you have to add to configurations an application server, not launch the web server as an application like any other. In this way Intellij will be able to intercept JSP calls. In the list of application servers, you should have the default one, Tomcat. Be sure to have a local Tomcat installation before you do this, and point to that when adding the web application server. The last trick is going to the “Deployment” tab and selecting as “Deployment source” the same facet that you configured in the previous step.
The same configuration works if you want to use another web application server, I tested it with the latest Caucho Resin releases and debugging works fine (it didn’t with the previous Intellij and Resin combinations).
If you don’t see Tomcat in the list of available application servers to add, check the plugins in the general Intellij settings pane: in the latest releases, more and more functionality has become “pluggable”, and even very basic functions may be disabled; this plugin is called “Tomcat integration”.
Finally, it is surely not true that JSP files need to be under WEB-INF to be under debugging.
- Idea JSP随处断点,CSS行都OK
- idea断点
- Idea的断点使用
- Intellij idea 断点调试
- idea 断点调试
- IDEA debug 断点无效
- ok.jsp(增删查改)
- MyEclipse jsp 断点使用
- Intellij idea 查看所有断点
- 随处安放
- 浏览器缩小 css布局乱了ok
- idea中JSP页面不能访问静态资源(图片,js,css)
- idea debug下启动不能进入断点
- intellij idea weblogic 下面 怎么远程断点
- idea工具debug断点红色变成灰色
- idea断点里没有对号问题解决
- idea 配置远程tomcat断点调试
- IDEA断点过一次后失效
- JAVA 发送邮件工具类
- Android:学习AIDL,这一篇文章就够了(上)
- 两种rop and egghunter
- 动态规划中级教程 96. Unique Binary Search Trees
- 剑指offer-两个链表的第一个公共点
- Idea JSP随处断点,CSS行都OK
- 算法题目---翻转单词顺序 VS 左旋转字符串
- sql查询语句
- 获取剩余的秒数
- leetcode--Valid Parentheses
- JAVA--集合知识总结
- 回归
- react
- MyBatis mapper.xml配置文件