Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Attach to Virtual Machine

You can debug a Java application by attaching to an existing Java process.

However, the Java process requires a specific startup option specifying the Sparx Systems Java Agent. The format of the command line option is:



-agentpath:"c:\program files\sparx systems\ea\SSJavaProfiler75"

The example below is for attaching to the Tomcat Webserver. Select the Attach to process radio button, and then the keyword Attach is all that you have to enter. This keyword causes the debugger to prompt you for a process at runtime.


The Show Console checkbox has no effect when attaching to an existing virtual machine.


No run time variables are necessary when attaching as these are specified as startup parameters to the process.