Tracing IBM MQ classes for .NET Framework clients using an application configuration file
If you are using IBM® MQ classes for .NET Framework, you can generate trace for the IBM MQ .NET redistributable managed client and stand-alone IBM MQ .NET client by using an application configuration file.
About this task
These steps for generating trace apply to the IBM MQ .NET redistributable managed client as well as the stand-alone IBM MQ .NET client and are for IBM MQ classes for .NET Framework only.
You must use the application configuration file and an IBM MQ specific trace configuration file because, since there is no full IBM MQ client installation, the standard tools that are used for starting and stopping trace, strmqtrc and endmqtrc, are not available.
The application configuration file is not supported in IBM MQ classes for .NET (.NET Standard and .NET 6 libraries). To enable trace for IBM MQ classes for .NET (.NET Standard and .NET 6 libraries), you use the MQDOTNET_TRACE_ON environment variable. A value of -1 enables default level tracing. Any other integer value, greater than 0, enables detailed tracing. Setting this environment variable to any other value does not enable trace.