ITcHmiSrvExtAsyncDebugHost Interface

Provides an interface to wait for a debugger to be attached to the current process.
The provided methods only wait for a debugger to be attached to the current process if DebugConfigurationEnabled is true, which is the default when building TwinCAT HMI server extensions with the Debug configuration.
To enable the Debug configuration at runtime, call EnableDebugConfiguration, otherwise the other methods have no effect.


Namespace: TcHmiSrv.Core
Assembly: TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 3.1.7447.0+85f9b473a1dd11b8f3e5c9a182fd1901975e46f9

Syntax

C#

public interface ITcHmiSrvExtAsyncDebugHost

The ITcHmiSrvExtAsyncDebugHost type exposes the following members.

Properties

 

Name

Description

ITcHmiSrvExtAsyncDebugHost Interface 1:

DebugConfigurationEnabled

Gets a value that indicates whether the debug configuration is enabled so that a debugger can be attached to the current process.

Methods

 

Name

Description

ITcHmiSrvExtAsyncDebugHost Interface 2:

EnableDebugConfiguration

Enables the debug configuration for the current process if not enabled. This allows a debugger to be attached to the current process.
This method should only be called when debugging a TwinCAT HMI server extension that was explicitly not built with the Debug configuration, to prevent accidental remaining debug calls to one of the methods that wait for a debugger to be attached to the current process in a release version of a TwinCAT HMI server extension.

ITcHmiSrvExtAsyncDebugHost Interface 3:

WaitForDebugger

Waits for a debugger to be attached to the current process.

ITcHmiSrvExtAsyncDebugHost Interface 4:

WaitForDebugger(Boolean)

Waits for a debugger to be attached to the current process.

ITcHmiSrvExtAsyncDebugHost Interface 5:

WaitForDebugger(CancellationToken)

Waits for a debugger to be attached to the current process.

ITcHmiSrvExtAsyncDebugHost Interface 6:

WaitForDebugger(Boolean, CancellationToken)

Waits for a debugger to be attached to the current process.

ITcHmiSrvExtAsyncDebugHost Interface 7:

WaitForDebuggerAsync

Waits for a debugger to be attached to the current process as an asynchronous operation.

ITcHmiSrvExtAsyncDebugHost Interface 8:

WaitForDebuggerAsync(Boolean)

Waits for a debugger to be attached to the current process as an asynchronous operation.

ITcHmiSrvExtAsyncDebugHost Interface 9:

WaitForDebuggerAsync(CancellationToken)

Waits for a debugger to be attached to the current process as an asynchronous operation.

ITcHmiSrvExtAsyncDebugHost Interface 10:

WaitForDebuggerAsync(Boolean, CancellationToken)

Waits for a debugger to be attached to the current process as an asynchronous operation.

Version Information

Supported in: 3.1.7447.0, 2.3.7447.0, 1.10.7447.0

Reference

TcHmiSrv.Core Namespace

Copyright © Beckhoff Automation GmbH & Co. KG