To set break points and debug JSPs in Eclipse using the OC4J app server, you have to configure OC4J.
Edit the file c:\oracle\oc4j\j2ee\home\config\global-web-application.xml and change the configuration for the OC4J JSP servlet handler to:
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
<!-- you can set main_mode to "justrun" to speed up
JSP dispatching, if you don't need to recompile
your JSP anymore. You can always switch your
main_mode. Please see our doc for details -->
<!--
<init-param>
<param-name>main_mode</param-name>
<param-value>justrun</param-value>
</init-param>
-->
<!-- Add these parms to debug JSPs -->
<init-param>
<param-name>debug</param-name>
<param-value>class</param-value>
</init-param>
<init-param>
<param-name>debug_mode</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>developer_mode</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>encode_to_java</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>emit_debuginfo</param-name>
<param-value>true</param-value>
</init-param>
<!-- End of debug parms -->
<load-on-startup>0</load-on-startup>
</servlet>
After changing the configuration file and restarting the OC4J server in debug mode, I was able to stop execution in JSPs.
参见 http://www.xinotes.org/notes/note/204/
分享到:
相关推荐
接下来,我们将详细探讨如何在Eclipse中进行debug和与Log4j的结合使用。 **1. Eclipse Debugging基础知识** 在Eclipse中,debug模式允许我们逐行执行代码,查看每一步执行后的变量值,这在解决运行时错误和理解...
"A Debugging Tool for Application using Multiple DLLs"就是这样一款专门解决此类问题的工具。 首先,让我们深入了解一下DLL。DLL文件包含了可执行代码和数据,它们可以在运行时被多个程序加载,而不是每个程序都...
### 使用Eclipse构建与调试Pentaho 2.0 #### 概述 本文档将详细介绍如何在Eclipse集成开发环境中设置开发环境,包括如何连接到Pentaho Subversion仓库、检出Pentaho项目、构建这些项目以及使用独立的Java应用...
Debugging Heap Corruption in Visual C++ Debugging Heap Corruption in Visual C++ 是一篇关于使用 Microsoft Debugging Tools for Windows 调试 Visual C++ 堆腐败的文章。堆腐败是指在堆中分配的内存被意外地...
**Chapter 4: Working with Source Code in Eclipse** - **Editing and Formatting**: Techniques for editing and formatting source code efficiently using Eclipse's built-in tools. - **Code Navigation**: ...
JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all. Installation Download JD-Eclipse ZIP ...
**DWARF调试信息详解** DWARF是一种广泛使用的源代码级别的调试信息格式,它...通过阅读《Debugging using DWARF.pdf》这样的文档,开发者可以深入理解这一强大的调试格式,从而更好地利用它来优化和调试自己的代码。
“Fundamentals_in_debugging_nRF5x_systems - Hard Fault on nRF52.pdf”这一标题明确指出了文档的主要内容是关于nRF5x系统(特别是nRF52系列)的基本调试技术,并着重于解释硬故障(Hard Fault)的问题。...
This article will use a sample MFC/C++ application to demonstrate the capabilities of the new Visual Studio 2008 debugger, specifically, debugging threads.
In Advanced Apple Debugging and Reverse Engineering, you’ll come to realize debugging is an enjoyable process to help you better understand software. Not only will you learn to find bugs faster, but...
R语言的调试重要性不言而喻,视频为RStudio中的调试方法说明
4. **JavaScript Debugging (JSDT Debugger)**:Eclipse的JSDT Debugger允许开发者设置断点、步进执行代码、查看变量值,从而有效调试JavaScript应用。这对于解决复杂问题和优化代码至关重要。 5. **Eclipse ...
In this chapter, you’ll explore how to inspect your LLDB Python scripts using the Python pdb module, which is used for debugging Python scripts. 19. Script Bridging Classes and Hierarchy You’ve ...
In Advanced Apple Debugging and Reverse Engineering, you’ll come to realize debugging is an enjoyable process to help you better understand software. Not only will you learn to find bugs faster, but...
Adtributo是一款在广告系统中进行收入调试的工具,主要解决广告系统中收入下降的问题。该系统的主要功能包括数据异常检测、根因分析、维度归因等。 首先,Adtributo可以帮助我们检测和分析广告系统中的数据异常。...
### 《调试的艺术:使用GDB、DDD及Eclipse》 #### 书籍概述 《调试的艺术:使用GDB、DDD及Eclipse》是一本由Norman Matloff与Peter Jay Salzman合著的专业书籍,旨在帮助程序员掌握高效调试技巧。本书不仅深入介绍...
Debugging Tools for Windows 是一套强大的开发和调试工具,主要用于对Windows操作系统进行深入的故障排查和性能分析。这个工具集包含了多种实用程序,如WinDbg、KD、CDB、NTSD等,它们都是针对不同场景的专业调试器...
- **调试模式**:同样,选择“Debug As” > “Plug-in Debugging”可以在Eclipse内调试插件。 5. **导入插件(importPlugin)** "importPlugin"可能指的是一个具体的插件或者导入插件的过程。在Eclipse中,导入...
4. **透视图(Perspective)**:透视图定义了Eclipse窗口中显示的视图和编辑器布局,例如Java透视图、调试透视图和XML透视图,可以根据不同的开发任务选择适合的视角。 5. **编辑器(Editor)**:编辑器用于编写...