DbgServices.Options Property

Applies to TestComplete 14.70, last modified on April 22, 2021

Description

This property returns a program object that provides a scripting interface to the options of the DbgServices plugin.

Declaration

DbgServices.Options

Read-Only Property The DbgServicesOptions object

Applies To

The property is applied to the following object:

Property Value

The DbgServicesOptions object that provides a scripting interface to the options of the DbgServices plugin.

Example

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

JavaScript, JScript

function DbgServicesOptionsExample()
{
  // Gets access to the options of the DbgServices
  // plugin
  var Opt = DbgServices.Options;
  var Res = Opt.EnableEvents;
  
  // Checks whether the Enable events option is enabled
  if (Res)
    Log.Message("The Enable Events option is enabled.")
  else
    Log.Message("The Enable Events option is disabled.");
  
}

Python

def DbgServicesOptionsExample():
  # Gets access to the options of the DbgServices
  # plugin
  Opt = DbgServices.Options
  Res = Opt.EnableEvents  
  # Checks whether the Enable events option is enabled
  if Res:
    Log.Message("The Enable Events option is enabled.") 
  else:
    Log.Message("The Enable Events option is disabled.")

VBScript

Sub DbgServicesOptionsExample

  ' Gets access to the options of the DbgServices
  ' plugin
  Set Opt = DbgServices.Options
  Res = Opt.EnableEvents
  
  ' Checks whether the Enable events option is enabled
  If Res Then
    Log.Message("The Enable Events option is enabled.")
  Else
    Log.Message("The Enable Events option is disabled.")
  End If
  
End Sub

DelphiScript

function DbgServicesOptionsExample;
var Opt, Res;
begin

  // Gets access to the options of the DbgServices
  // plugin
  Opt := DbgServices.Options;
  Res := Opt.EnableEvents;
  
  // Checks whether the Enable events option is enabled
  if Res 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()
{
  // Gets access to the options of the DbgServices
  // plugin
  var Opt = DbgServices["Options"];
  var Res = Opt["EnableEvents"];
  
  // Checks whether the Enable events option is enabled
  if (Res)
    Log["Message"]("The Enable Events option is enabled.")
  else
    Log["Message"]("The Enable Events option is disabled.");
  
}

See Also

DbgServicesOptions Object
Default Project Properties - Debug Services Options
Tracing Events and Exceptions With Debug Services

Highlight search results