Using the Microsoft Transaction Server (MTS)
If you design your component to support MTS transactions, you use both the MTS and a client executable to debug your component’s code.
To configure MTS debugging
-
On the Windows NT Server on which you have MTS installed, shut down the server processes. To do this, right-click My Computer on the Windows NT desktop to display a shortcut menu, and then click Shutdown Server Process.
-
In the Visual J++ environment, click the Project menu, then click <Project> Properties, where <Project> is the name of your component project.
-
Click the Launch tab, and then click Custom.
-
In the Program box, type the path to the MTx.exe. By default, this executable resides in your Windows NT System32 directory.
-
In the Arguments box, type /p:”MTS Package Name”, where Package Name is the name of the MTS package containing your component. Also, make sure that there are no spaces in this argument.
-
Set a breakpoint in your component code.
-
On the Debug menu, click Start.
-
Manually start the client executable that calls into your component. When the client calls into the section of code in which you’ve set a breakpoint, execution halts, and you can step through your component code.