Debugging a Java side when using shared memory

Q: I’m running a .NET application that calls Java through shared memory. Can I debug the Java side while doing this?

A: Yes! You have two choices. One is to temporarily switch from shared memory to TCP/binary, then start up the Java side in its own debugger and debug it in the usual way.

You can also debug while using shared memory as follows:

Alter the .NET-side configuration by adding the following jvmOption (note that the jvmOptions number could be different in your application):


Then, start up the application and attach a Java debugger to the process in the manner prescribed by the particular Java development environment that you’re using.