Debugging
From OpenCms Wiki
[edit
]
Remote debugging
You can easily debug OpenCms within your IDE if it supports remote
debugging. Your Servlet Container needs to be started with JPDA (Java
Platform Debugger Architecture) support enabled. To achieve this for
Tomcat, simply start it with
catalina.sh|bat jpda start
instead of
catalina.sh|bat start
For Tomcat, the jpda option enables the following startup options to the JVM:
-Xdebug -Xrunjdwp:transport=$JPDA_TRANSPORT,address=$JPDA_ADDRESS,server=y,suspend=n
Defaults:
- JPDA_TRANSPORT: dt_socket
- JPDA_ADDRESS: 8000
When Tomcat is started this way, you can attach your debugger in your IDE to the running Tomcat JVM process.
[edit
]
Eclipse setup
If you have the OpenCms source code in an Eclipse project
you can easily set breakpoints and debug the running OpenCms.
Create a new debug configuration in Run/Debug.../Remote Java Application:
- enter a name,
- select the project which contains the OpenCms source code
- make sure the port is correct. (The defaults of Eclipse and Tomcat are identical so you normally do not have to customize it)
After that, set a breakpoint and run the debug configuration.
Eclipse then attaches to the remote running Tomcat process and will
show the current stack in the Debug perspective.
我在自己机器上,试验过了,好像不行,老是报错。google了以后发现貌似是1.5的一个bug,但是,把catalina.sh里面
-Xdebug -Xrunjdwp:transport=$JPDA_TRANSPORT,address=$JPDA_ADDRESS,server=y,suspend=n
这段参数删掉就可以了,用它默认的配置就好了,管他呢,反正work!就可以了。
分享到:
相关推荐
opencms guide
opencms 中文网提供的java api 文档包
opencms用户指南+源码 opencms用户指南+源码 opencms用户指南+源码
OpenCms创建网站过程图解——献给OpenCms的初学者们,一起学习吧
Update your existing OpenCms installation to version 9.5.2 with the easy to use upgrade wizard. OpenCms 7.x 和8.x 升级到OpenCms 9.5.2版本安装向导。
OpenCms是一个专业级、开源Java CMS(内容管理系统),由Alkacon公司发起和维护,OpenCms完全基于Java和XML技术实现,内容维护方便、直观,类型定义简单、快速,基于Jsp的模板机制强大、灵活,OpenCms扩展机制可以很好...
Opencms 中文网原创,请下载支持,欢迎转发,请注明来源Opencms 中文网博客
OpenCMS入门指南OpenCMS入门指南OpenCMS入门指南OpenCMS入门指南OpenCMS入门指南
主要讲述在opencms下apache和tomcat配置,去掉两个opencms
packt_用开源项目快速建站实践丛书
opencms二次开发
opencms 9.0.1 汉化资源包,少量部分汉化不完全
OpenCms是一个专业级别的开源网站内容管理系统。OpenCms可以非常容易的帮助建立和管理复杂的网站而无需专业的HTML知识。当使用一个复杂的模板引擎来规划站点,它提供一个类似于我们熟知的office应用的所见即所得编辑...
朗华opencms ofbiz 结合包
OPENCMS google地图继承模块
OpenCms是一个专业级别的开源网站内容管理系统。OpenCms可以非常容易的帮助建立和管理复杂的网站而无需专业的HTML知识。当使用一个复杂的模板引擎来规划站点,它提供一个类似于我们熟知的office应用的所见即所得编辑...
org.opencms.locale.zh_8.0.1.zip(注意,有些网站转载汉化包后会将原zip格式转变成rar格式,导致汉化模块安装失败,请安装前做好检查,或可以直接从http://www.opencmschina.comg下载。) 使用说明: 1、...
不错的opencms教程 详细描述OpenCMS部署、安装开发的方式具体模块的开发
Building Websites with OpenCms
opencms 汉化包,opencms 7.5.3版本