RPC HELP DEBUG How To
How to Debug Your Application
Beside the normal debugging facilities provided by Delphi, you can also invoke a debug mode so that you can step through your code on the client side and your RPC code on the VistA M Server side simultaneously.
To do this:
1. On the client side, set the DebugMode property on the TRPCBroker component to True. When the TRPCBroker component connects with this property set to True, you will get a dialog window indicating your workstation IP address and the port number.
2. At this point, switch over to the VistA M Server, and set any break points in the routines being called in order to help isolate the problem. Then issue the M debug command (e.g., ZDEBUG in DSM).
3. Start the following VistA M Server process:
>D EN^XWBTCP
You will be prompted for the workstation IP address and the port number. After entering the information, switch over to the client application and click on the OK button of the dialog window.
4. You can now step through the code on your client, and simultaneously step through the code on the VistA M Server side for any RPCs that your client calls.