一:配置 WAS,打开调试服务
进到 WAS(或ND) 的管理控制台,在服务器->应用程序服务器中,点击要启用调试服务的应用服务器,然后进入调试服务,勾选上启动(指定当服务器启动时服务器是否将尝试启动指定的服务。)。JVM 调试端口默认为 7777,注意该端口不能有冲突(如有多个应服务器要启用调试服务时,需要指定别的端口)。其他选项默认,或根据实际来设定。
确定、保存后重启应用服务器,WAS Base 版需要回到操作系统下重启,如果是在 ND 管理控制台下,可直接在页面中重启应用服务器。
二:配置 Eclipse,使用远程调试
Eclipse 的菜单 Run -> Open Debug Dialog 窗口中,右击 Remote Java Application->New,在右方的 Conect 标签页中,选择你要调试的 Project(即发布到 WAS 下启用了调试服务的,在你的 Eclipse 中存在的项目),Host 填上 WAS 服务器的 IP,Port 就是前面的 JVM 调试端口。其他两个标签页 Source/Common 可留意下。
点击 Debug 按钮,这时候 Eclipse 即处理于侦听 WAS 服务器的 JVM 调试端口的状态。
三:打上断点,调试应用
在你的 Eclipse 中的项目(注意,该项目已部署到 WAS 上的) 要调试的代码行中打上断点,然后可以在网页上浏览 WAS 上的该应用。当执行到所在断点的代码行时,Eclipse 就会停在该行上,让你尽情的 F5/F6 的跳,像平时那样 Watch/Inspect/Display表达式或变量。
分享到:
相关推荐
WebSphere Application Server V6WebSphere Application Server V6
WAS WebSphere 启动 错误 troubleshooting
WebSphere Application Server V6.1 Security Handbook. WebSphere Application Server V6.1 Security Handbook. WebSphere Application Server V6.1 Security Handbook.
IBM 红皮书 WAS WebSphere Application Server Liberty Profile Guide for Developers
通过IBM WebSphere Application Server for Developers, 安装 WebSphere Application Server for Developers v8.5 的全过程截图。
WebSphere Application Server集群和架构FAQ
WebSphere Application Server for Developers V8.5.5是供开发人员使用的免费版的was,需要的小伙伴可以本地安装一下 ,部署测试web项目,因为上传空间有限,这里就只上传windows64位的。
IBM WebSphere Application Server v7.0 Security
WebSphere Application Server9.0.0.2 安装包百度云盘资源地址,非商业用途,仅供学习使用。
Websphere Application Server 6.0配置与管理
WebSphere Application Server 8.0安装指南,完全原创,根据自己的安装全程截图并配详细的文字说明。
WebSphere Application Server V6 Security Handbook主要描述was中的安全机制问题
WebSphere Application Server v6.1 应用管理
WebSphere Application Server V6 System Management & Configuration Handbook
IBM WebSphere Application Server - The Complete Reference Part I - Getting Started Chapter 1 - What Is WebSphere? Chapter 2 - Installing and Starting WebSphere Chapter 3 - Hello World (Wide ...
WebSphere Application Server ND V8.5集群,详细图解。
W38S1 Administration of WebSphere Application Server V5.pdf
在Websphere Application Server 经常会出现乱码,有时候可以在项目中去设置,但有时候也是Websphere 造成的,所以需要你手动去更改Websphere 的设置。
WebSphere Application Server V8.5 Administration and Configuration Guide for the Full Profile.pdf 英文文档
Websphere Application Server 6.1配置JDBC数据源 本文旨在于说明在 webSphere中发布项目和配置数据源。以图文的形式给出明确的配置指导。以配置oracle数据库数据源为实例,所有操作步骤都为实践后的操作步骤。