简体   繁体   English

如何在 IntelliJ IDEA 中编辑和调试 OAF java 代码

[英]How to edit and debug OAF java code in IntelliJ IDEA

I agree that JDeveloper provides some unique ADF-specific functionality, but when it comes to work with java code, IntelliJ IDEA works better for me.我同意 JDeveloper 提供了一些独特的 ADF 特定功能,但是在使用 java 代码时,IntelliJ IDEA 更适合我。 Can I move java-related operations to IDEA?我可以将 java 相关的操作移到 IDEA 中吗?

Setup设置

  1. Create IDEA project from existing sources, setup source folders and connect libraries.从现有源创建 IDEA 项目,设置源文件夹并连接库。

来自现有资源的 IDEA 项目 IDEA 项目模块 IDEA 项目库

  1. Setup IDEA run configuration.设置 IDEA 运行配置。 "Listen to remote JWM" means that IDEA will act as a server and Jdev will connect to it as soon as it starts running. “Listen to remote JWM”意味着IDEA将充当服务器,Jdev一开始运行就会连接到它。 It is good if you need to debug processRequest() method - debugger must be connected immediately.如果您需要调试 processRequest() 方法,那很好 - 必须立即连接调试器。 I chose "JDK 1.4.x" because it looks closer to VM parameters which Jdev uses when it starts debugging (you can look at those is Jdev log while debugging).我选择“JDK 1.4.x”是因为它看起来更接近 Jdev 在开始调试时使用的 VM 参数(您可以在调试时查看那些是 Jdev 日志)。

IDEA 运行配置

  1. Setup Jdev as a client.将 Jdev 设置为客户端。 Append VM options from IDEA to your existing options.从 IDEA 到现有选项的 Append VM 选项。

jdev运行配置

Running跑步

To start debugging, first, run IDEA run configuration with green bug button, and second, run Jdev with green play button.要开始调试,首先,使用绿色的bug按钮运行 IDEA 运行配置,其次,使用绿色的播放按钮运行 Jdev。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM