CA Plex: Java Debugging
search cancel

CA Plex: Java Debugging

book

Article ID: 93527

calendar_today

Updated On:

Products

CA Plex

Issue/Introduction

In Plex, how can the java debugger be used?

Environment

CA Plex 7.x

Resolution

THE INFORMATION BELOW IS ALSO IN THE ATTACHED WORD DOCUMENT, WITH IMAGES.

Debug Plex generated Java application: 

- Plex IDE - Gen/Build Java application 
- Open Eclipse IDE 
o Create a new Java project for Generated application. 
o Copy the generated code - all files from ‘\<localModel>\<GenFolder>\SRC’ folder. 
 Paste the contents into Eclipse project ‘Src’ folder. 
o Add Plex Java runtime library - ObRun.jar reference to the project. 
o Goto top level function to launch Java application (e.g. AA1F in below screenshot) and set the arguments for launching the application. 
 If the application has been run from Plex IDE, there will be a .bat file to launch the application with following entry. 

 From above screenshot , it is clear that batch file is trying to run the Plex runtime ObLaunch class by giving two command line arguments and they are - 
• The function to be executed in Plex generated application 
• Location of the client properties file. 
 Right click on the top level function (.Java file) to be launched and click Run Configurations option from Run As Option and it will open a popup window as shown below. 
• Update the details accordingly as mentioned above (e.g. SampleJavaPNL.AA1F Path="C:\ProgramData\CA\Plex\7.2.1\OBJAVA" in provided screenshot). 

 Now, Right click on top level function (.Java file) to be launched and click Debug Configurations option from Debug As Option 
• Then click on Debug button at the bottom of the opened config Window. 
 This will launch the application in Debug mode. 
 Set debug break points in generated code as desired and continue debugging the application process. 
Following links may help in general Eclipse debugging perspective: 
Debugging the Eclipse IDE for Java Developers 
Java Debugging with Eclipse - Tutorial

Attachments

1558536322813Java_application_debugging.docx get_app