Debugging a PolicyCenter server using a shared memory connection
About this task
Use a shared memory connection to connect Studio to a PolicyCenter server running on the same computer. You must manually start the server in the proper debug mode, and create the proper debug configuration in Studio.
Procedure
-
Start the PolicyCenter server.
-
Start
the server using the following command:
gwb runServer --debug-shmem --no-suspend -
Towards
the beginning of the server console message output, look for the label
debug-shmem:, and then the text that is similar to the following:Listening for transport dt_shmem at address:javaAddress - Make a note of the string provided for javaAddress.
-
Start
the server using the following command:
-
Create the debug configuration in
Studio.
- In Studio, click .
-
In the
Run/Debug
Configurations dialog, click Add New
Configuration
,
and then click Remote.
- In the Name text box, type a name for the debug configuration. For example, server-shmem.
- Next to Transport, click Shared memory.
- Next to Debugger mode, click Attach.
- In the Shared Memory Address text box, type the javaAddress that you noted when you started the server.
- Click OK.
-
Connect the Studio debugger to the
PolicyCenter server using the
shared memory connection.
- In Studio, in the Select Run/Debug Configuration drop-down list, select the debug configuration that you created.
- Click configName’, where configName is the name of the debug configuration that you created.
Results
The debugger connects to the PolicyCenter server, and debug messages appear in the Debug tool window in Studio.
