Debugging remote server requests
When you are debugging a Web object that makes an Object Request Broker (ORB) call to a remote WebSphere Application Server, you are prompted with the Attach to New Server dialog box when program execution reaches the point at which the request is made. The dialog box indicates the host name on which the requested application server is running. To skip the request, select the Skip radio button and click OK. To debug the request, do the following:
Select the Attach radio button. Enter the application server JVM debug port number in the JVM debug port field. When you install a WebSphere Application Server, the value of this port defaults to 7777. Enter this value if you have not changed this default value. If the request contains JavaScript that was developed in the Bean Scripting Framework, select the Enable JavaScript debugging check box and then enter the Bean Scripting Framework debug port in the BSF Debug Port field. When you install a WebSphere Application Server, the value of this port defaults to 4444. Enter this value if you have not changed this default value.
If the Enable JavaScript debugging check box is not selected, JavaScript debugging will not be enabled and the BSF Debug Port field will be unavailable.
To attach to the application server and debug the request, click OK.Note: You cannot debug a request unless step-by-step debugging is enabled or you have set a breakpoint in the application that is being called. For information about step-by-step debug mode, see the related topics below.
If you choose to attach to the new server, the debugger will connect to the server and it will be displayed in the Debug view as a second process under debug control. After you have finished debugging the request, disconnect from it by doing the following:
- In the Debug view, select the server process.
- Do one of the following:
- Click the Disconnect push button (
).
- Right-click and choose Disconnect from the pop-up menu.
Related concepts
Step-by-step debugging
Related tasks
Enabling and disabling step-by-step debug mode
Stepping into methods