Friday, April 15, 2011

How to debug a jar file in JDeveloper

I need to debug a jar file used by a SOA project in JDev. Here is a way to configure the debugging environment.

I use two installation of JDev to debug. One installation is used as development and will be kept stable. The other is used as test environment and maybe refreshed frequently based on the new build of JDev.

Prerequisite:
  • Two installations of JDeveloper, JDev A and JDev B.
  • JDev A has the project which has the source code.
  • JDev B has the SOA project using the jar file built from JDev A. The jar file has been placed in the patches dir located in $dir/jdeveloper/jdev/lib
Configuration Steps:
  • In JDev A, right click the project name->Project Properties->Run/Debug/Profile->select Default->Edit
  • Place the jdev.conf (of JDev B) file path in the Default Run Target edit box.



  • click on icon to start the JDev B instance.

No comments:

Post a Comment