skip to main content
Developing ADO.NET Applications : Diagnostic Support : Tracing Method Calls : Using Environment Variables
 

Using Environment Variables

Using environment variables to enable tracing means that you do not have to modify your application. If you change the value of an environment variable, you must restart the application for the new value to take effect.
To enable and control tracing, set the following environment variables:
 
DDTek_Trace_File
Specifies the path and name of the trace file. The initial default is \OpenAccessTrace.txt.
DDTek_Recreate_Trace
When set to 1, re-creates the trace file each time the application restarts. When set to 0 (the initial default), the trace file is appended.
DDTek_Enable_Trace
When set to 1 or higher, enables tracing. When set to 0 (the initial default), tracing is disabled.