DbgServicesOptions Object

Applies to TestComplete 15.70, last modified on December 17, 2024

Description

The DbgServicesOptions object provides scripting interfaces to the DbgServices plugin options. To obtain the object in scripts, use the DbgServices.Options property.

Note: The changes you made to DbgServices options in scripts are not persistent. That is, the changes exist only during the current test run, they are not saved to the DbgServices Options of your test project.

Members

Example

The code below demonstrates how you can check the value of the Enable events option of the DbgServices plugin.

JavaScript, JScript

function DbgServicesOptionsExample()
{
  if (DbgServices.Options.EnableEvents)
    Log.Message("The Enable Events option is enabled.")
  else
    Log.Message("The Enable Events option is disabled.");
}

Python

def DbgServicesOptionsExample():
  if DbgServices.Options.EnableEvents:
    Log.Message("The Enable Events option is enabled.")
  else:
    Log.Message("The Enable Events option is disabled.")

VBScript

Sub DbgServicesOptionsExample
  If DbgServices.Options.EnableEvents Then
    Log.Message("The Enable Events option is enabled.")
  Else
    Log.Message("The Enable Events option is disabled.")
  End If
End Sub

DelphiScript

procedure DbgServicesOptionsExample;
begin
  if DbgServices.Options.EnableEvents then
    Log.Message('The Enable Events option is enabled.')
  else
    Log.Message('The Enable Events option is disabled.');
end;

C++Script, C#Script

function DbgServicesOptionsExample()
{
  if (DbgServices["Options"]["EnableEvents"])
    Log["Message"]("The Enable Events option is enabled.")
  else
    Log["Message"]("The Enable Events option is disabled.");
}

See Also

Tracing Events and Exceptions With Debug Services
Project Properties - Debug Services Options

Highlight search results