Created On: 02 June 2011
Problem:
The Consolidated Tracing Facility (CTF) has been enhanced in Visual COBOL for Visual Studio to work with managed code applications. How does one set up this tracing in a managed code project?
Resolution:
If you are using the .NET environment, instead of setting the MFTRACE_CONFIG variable you can configure CTF tracing in an app.config file in the same folder as its associated app.exe file. The configuration statements must be inserted in an section in the as CDATA. For example: mftrace.dest = binfilemftrace.emitter.binfile#location = c:\logsmftrace.level.mf.rts = infomftrace.comp.mf.rts#pgm = truemftrace.comp.mf.rts#pgmload = truemftrace.comp.mf.rts#syspgm = true <]]>