You can configure the XDB XA Switch module to trace error conditions by enabling the XATrace option in the xdb.ini file as follows:
[Trace] XATrace=filename
Where filename is the full path to and filename of a file used to collect trace information. Each entry in this file contains a timestamp, the error message generated at that time, and possibly some diagnostic information. For example, following entry might be produced by an incorrect XA open string:
XA PID = 7336 : 2011-08-29 15:27:04.247000 : Error parsing connection string : LOC = MYLOC, UID=MFIABC, XDBPWD='xxxxxxxx' Reason = Invalid token XDBPWD at position 26