<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=RPC_HELP_DEBUG_How_To</id>
	<title>RPC HELP DEBUG How To - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://vistapedia.com/index.php?action=history&amp;feed=atom&amp;title=RPC_HELP_DEBUG_How_To"/>
	<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_DEBUG_How_To&amp;action=history"/>
	<updated>2026-05-10T14:03:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://vistapedia.com/index.php?title=RPC_HELP_DEBUG_How_To&amp;diff=16823&amp;oldid=prev</id>
		<title>Kdtop: Created page with &quot; RPC Broker Help Home &lt;h2&gt;How to Debug Your Application&lt;/h2&gt; Beside the normal debugging facilities provided by Delphi, you can also invoke a debug mode so...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vistapedia.com/index.php?title=RPC_HELP_DEBUG_How_To&amp;diff=16823&amp;oldid=prev"/>
		<updated>2015-07-07T11:21:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/RPC_Broker_Help&quot; title=&quot;RPC Broker Help&quot;&gt; RPC Broker Help Home&lt;/a&gt; &amp;lt;h2&amp;gt;How to Debug Your Application&amp;lt;/h2&amp;gt; Beside the normal debugging facilities provided by Delphi, you can also invoke a debug mode so...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[RPC_Broker_Help| RPC Broker Help Home]]&lt;br /&gt;
&amp;lt;h2&amp;gt;How to Debug Your Application&amp;lt;/h2&amp;gt;&lt;br /&gt;
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.&lt;br /&gt;
	&lt;br /&gt;
To do this:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.&amp;#039;&amp;#039;&amp;#039; On the client side, set the [[RPC_HELP_TRPCBroker_DebugMode|DebugMode]] property on the [[RPC_HELP_TRPCBroker|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.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2.&amp;#039;&amp;#039;&amp;#039; 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).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3.&amp;#039;&amp;#039;&amp;#039; Start the following VistA M Server process:&lt;br /&gt;
&lt;br /&gt;
    &amp;gt;D EN^XWBTCP&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4.&amp;#039;&amp;#039;&amp;#039; 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.&lt;/div&gt;</summary>
		<author><name>Kdtop</name></author>
	</entry>
</feed>