invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

Trace Settings

A trace records what a product does, for a question to Invantive Support or for an analysis of one's own. Three settings decide about it: whether trace is active, whether the trace is also written to a file, and the folder of the trace files. They can be set in the window Preferences, in a script, on the command line and in the environment. The first three are available from release 27.0; up to and including release 26.0 only the environment variables exist.

A change made in the window or by a script is in effect at once, without a restart, and lasts until the product closes. It is not kept: at the next start the environment variables and the options of the command line decide again, so a trace which was forgotten does not run on. The settings are those of one process: Microsoft Excel with Invantive Control and Microsoft Word with Invantive Composition each have their own.

Trace to file implies trace. Switching trace to file on switches trace on as well, and switching trace off closes the trace file.

In the Window Preferences

The window "Preferences" has a pane "Trace" in Invantive Query Tool, Invantive Data Loader, Invantive Runtime, Invantive Studio, Invantive Estate, Invantive Business, Invantive Control for Excel and Invantive Composition for Word. The multi-platform editions of Invantive Query Tool, Invantive Data Loader and Invantive Runtime have the pane from release 28.0. The pane is shown to a user with the right itgen_trace, the right of the trace window. It holds:

  • "Trace Active": whether trace is active.
  • "Trace to File Active": whether the trace is also written to a file in the trace folder.
  • "Trace Folder": the folder of the trace files as a full path, starting with a drive or a server. An empty field stands for the default folder. The folder is applied when the field is left or Enter is pressed. A folder which is not a full path is refused with itgentsm001; a folder which can not be made or written is reported and changes nothing.
  • "Open Trace Folder": open the folder in the file manager.
  • "Trace File": the trace file which is written now, to copy into a message for support.

A click on a box is applied at once; "OK" and "Cancel" only close the window. When the folder changes while a trace file is open, that file is completed and closed, and the trace continues in a new file in the new folder.

In Invantive Query Tool Multi-Platform the Trace panel shows from release 28.0 whether the trace also goes to a file, and its button "Trace Settings" opens the pane.

Invantive Data Hub has no window: its Preferences menu has an item "Trace" with the same settings. Invantive Authenticator has the first three settings in its settings window, where they are applied when the settings are saved.

In a Script

The statement local trace of Invantive Script shows and changes the settings from a script, such as around the one step of a job which is under investigation. See Set Trace.

On the Command Line

Every product with a command line accepts three options, which switch the trace on from the start of the product, so the start itself is traced:

  • /trace: switch trace on.
  • /tracetofile: write the trace to a file as well, which also switches trace on.
  • /tracefolder: the folder of the trace files as a full path, which also switches trace to file on. A folder which is not a full path ends the start with itgentsm009.

The options add to the environment variables: a variable which already switches something on stays in effect. See the page "Command Line Options" of the product, such as Command Line Options of Invantive Data Hub.

In the Environment

The following environment variables are read at the start of every product, on all platforms:

  • INVANTIVE_TRACE_ACTIVE: true switches trace on. Default false.
  • INVANTIVE_TRACE_TO_FILE: true writes the trace to a file as well. Default false.
  • INVANTIVE_TRACE_FOLDER: the folder of the trace files. Without it the trace files are written to the default trace folder, the folder Trace of the configuration folder; see Folders.

A change made in the window, by a script or by an option sets the three variables of the running process to what is in effect, so a program started by the product inherits it.

What Is Written

The trace files are described in Trace Files, with what to watch when a trace is kept or sent: a trace holds the statements which were executed and the values which were bound.